/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /* === BEGIN allDownloadsViewOverlay.inc.css === */ /* In the original, this is at the end of the file as a preprocessor-include */ @import url("progressmeter.inc.css"); /*** View and outer controls ***/ #downloadsRichListBox { /** The default listbox appearance comes with an unwanted margin. **/ -moz-appearance: none; margin: 0; border: none; } /*** List items ***/ #downloadsRichListBox > richlistitem.download { height: var(--downloads-item-height); } .downloadTypeIcon { margin: 8px 13px; width: 32px; height: 32px; } .downloadBlockedBadge { margin: 0 5px; background: url("chrome://browser/skin/downloads/download-blocked.svg") top right / 16px no-repeat; } .downloadBlockedBadge:-moz-locale-dir(rtl) { background-position-x: left; } richlistitem.download[verdict="PotentiallyUnwanted"] .downloadBlockedBadge { background-image: url("chrome://browser/skin/warning.svg"); } richlistitem.download[verdict="Uncommon"] .downloadBlockedBadge { background-image: url("chrome://browser/skin/info.svg"); } richlistitem.download > toolbarseparator { display: none; } .downloadTarget { margin: 0; } .downloadDetails { opacity: 0.7; font-size: 95%; /* Use calc() to keep the height consistent with .downloadTarget, so that the progress bar can be vertically centered. */ margin: 4px 0 calc(1em / 0.95 - 1em); } .downloadDetailsNormal, .downloadDetailsHover, .downloadOpenFile, .downloadShowMoreInfo, .downloadButtonLabels { display: none; } .downloadButton { -moz-box-align: center; background: transparent; min-width: 0; min-height: 0; margin: 0; border: none; color: inherit; padding: 0 18px; } .downloadButton > .button-box { -moz-appearance: none; padding: 2px !important; border-radius: 50%; } .downloadButton > .button-box > .button-icon { width: 16px; height: 16px; margin: 0; -moz-context-properties: fill; fill: currentColor; } .downloadButton > .button-box > .button-text { display: none; } .downloadButton:hover > .button-box { background-color: #A09090; color: #000000; } .downloadButton:hover:active > .button-box { background-color: #FF9F00; } richlistitem.download[selected] > .downloadButtonArea > .downloadButton:hover > .button-box { background-color: #FFCF00; color: #000000; } richlistitem.download[selected] > .downloadButtonArea > .downloadButton:hover:active > .button-box { background-color: #FF9F00; color: #000000; } /*** Button icons ***/ .downloadIconCancel > .button-box > .button-icon { list-style-image: url("chrome://browser/skin/panel-icon-cancel.svg"); } .downloadIconShow > .button-box > .button-icon { list-style-image: url("chrome://browser/skin/panel-icon-folder.svg"); } .downloadIconRetry > .button-box > .button-icon { list-style-image: url("chrome://browser/skin/panel-icon-retry.svg"); } /*** Progressmeter ***/ /* %include progressmeter.inc.css - this happens as @import at the start of the file */ /* === END allDownloadsViewOverlay.inc.css === */ /*** List items ***/ :root { --downloads-item-height: 6em; }