X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdownloads%2FallDownloadsViewOverlay.css;h=7a1a40ae129c1220f229728980d0266a00ef2704;hp=d87aa7e42ea2f12626694fa9486f42ddc9122251;hb=9a225e4b44ec04c62ddff63f06c913d67e705711;hpb=7327c957c10aeaccf57a457a9950ac380a326f29 diff --git a/LCARStrek/browser/downloads/allDownloadsViewOverlay.css b/LCARStrek/browser/downloads/allDownloadsViewOverlay.css index d87aa7e4..7a1a40ae 100644 --- a/LCARStrek/browser/downloads/allDownloadsViewOverlay.css +++ b/LCARStrek/browser/downloads/allDownloadsViewOverlay.css @@ -4,8 +4,10 @@ /* === BEGIN allDownloadsViewOverlay.inc.css === */ -/*** View and outer controls ***/ +/* 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. **/ @@ -18,116 +20,124 @@ #downloadsRichListBox > richlistitem.download { height: var(--downloads-item-height); - padding: 5px 8px; } .downloadTypeIcon { - -moz-margin-end: 8px; - -moz-margin-start: 8px; - /* explicitly size the icon, so size doesn't vary on hidpi systems */ - height: 32px; + 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"); } -.blockedIcon { - list-style-image: url("chrome://global/skin/icons/alert-error.gif"); +richlistitem.download > toolbarseparator { + display: none; } .downloadTarget { - margin-bottom: 3px; - cursor: inherit; + margin: 0; } .downloadDetails { opacity: 0.7; font-size: 95%; - cursor: inherit; + /* 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: 3px; + margin: 0; border: none; - padding: 5px; - list-style-image: url("chrome://browser/skin/downloads/buttons.png"); + color: inherit; + padding: 0 18px; } -/* === END allDownloadsViewOverlay.inc.css === */ - -/*** List items ***/ - -:root { - --downloads-item-height: 6em; +.downloadButton > .button-box { + -moz-appearance: none; + padding: 2px !important; + border-radius: 50%; } -/*** Highlighted list items ***/ - -richlistitem.download:not([selected]):hover { - border-radius: 3px; - background-color: #794900; - color: #FFCF00; - cursor: pointer; +.downloadButton > .button-box > .button-icon { + width: 16px; + height: 16px; + margin: 0; + -moz-context-properties: fill; + fill: currentColor; } -/*** Button icons ***/ - -.downloadButton.downloadConfirmBlock, -.downloadButton.downloadCancel { - -moz-image-region: rect(0px, 16px, 16px, 0px); +.downloadButton > .button-box > .button-text { + display: none; } -richlistitem.download:hover > .downloadButton.downloadConfirmBlock, -richlistitem.download:hover > .downloadButton.downloadConfirmBlock:hover, -richlistitem.download:hover > .downloadButton.downloadConfirmBlock:active, -richlistitem.download:hover > .downloadButton.downloadCancel, -richlistitem.download:hover > .downloadButton.downloadCancel:hover, -richlistitem.download:hover > .downloadButton.downloadCancel:active { - -moz-image-region: rect(0px, 32px, 16px, 16px); +.downloadButton:hover > .button-box { + background-color: #A09090; + color: #000000; } -.downloadButton.downloadShow { - -moz-image-region: rect(16px, 16px, 32px, 0px); +.downloadButton:hover:active > .button-box { + background-color: #FF9F00; } -richlistitem.download:hover > .downloadButton.downloadShow, -richlistitem.download:hover > .downloadButton.downloadShow:hover, -richlistitem.download:hover > .downloadButton.downloadShow:active { - -moz-image-region: rect(16px, 32px, 32px, 16px); +richlistitem.download[selected] > .downloadButtonArea > .downloadButton:hover > .button-box { + background-color: #FFCF00; + color: #000000; } -.downloadButton.downloadRetry { - -moz-image-region: rect(32px, 16px, 48px, 0px); +richlistitem.download[selected] > .downloadButtonArea > .downloadButton:hover:active > .button-box { + background-color: #FF9F00; + color: #000000; } -richlistitem.download:hover > .downloadButton.downloadRetry, -richlistitem.download:hover > .downloadButton.downloadRetry:hover, -richlistitem.download:hover > .downloadButton.downloadRetry:active { - -moz-image-region: rect(32px, 32px, 48px, 16px); +/*** Button icons ***/ + +.downloadIconCancel > .button-box > .button-icon { + list-style-image: url("chrome://browser/skin/panel-icon-cancel.svg"); } -richlistitem.download[selected] > .downloadButton.downloadConfirmBlock, -richlistitem.download[selected]:hover > .downloadButton.downloadConfirmBlock, -richlistitem.download[selected]:hover > .downloadButton.downloadConfirmBlock:hover, -richlistitem.download[selected]:hover > .downloadButton.downloadConfirmBlock:active, -richlistitem.download[selected] > .downloadButton.downloadCancel, -richlistitem.download[selected]:hover > .downloadButton.downloadCancel, -richlistitem.download[selected]:hover > .downloadButton.downloadCancel:hover, -richlistitem.download[selected]:hover > .downloadButton.downloadCancel:active { - -moz-image-region: rect(0px, 32px, 16px, 16px); +.downloadIconShow > .button-box > .button-icon { + list-style-image: url("chrome://browser/skin/panel-icon-folder.svg"); } -richlistitem.download[selected] > .downloadButton.downloadShow, -richlistitem.download[selected]:hover > .downloadButton.downloadShow, -richlistitem.download[selected]:hover > .downloadButton.downloadShow:hover, -richlistitem.download[selected]:hover > .downloadButton.downloadShow:active { - -moz-image-region: rect(16px, 32px, 32px, 16px); +.downloadIconRetry > .button-box > .button-icon { + list-style-image: url("chrome://browser/skin/panel-icon-retry.svg"); } -richlistitem.download[selected] > .downloadButton.downloadRetry, -richlistitem.download[selected]:hover > .downloadButton.downloadRetry, -richlistitem.download[selected]:hover > .downloadButton.downloadRetry:hover, -richlistitem.download[selected]:hover > .downloadButton.downloadRetry:active { - -moz-image-region: rect(32px, 32px, 48px, 16px); +/*** 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; }