X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdownloads%2FallDownloadsViewOverlay.css;h=2ebb1b115288f4b4a45a9a80f2a7a8921dab48d3;hb=0282321df83ade4f66b3f44bbee1a2519485571a;hp=e8ceebb9d65e8d179bb3fd14800347ecd9f758a8;hpb=db1c5db107950e750d8c3cf3a6ac106ec0cc606e;p=themes.git diff --git a/LCARStrek/browser/downloads/allDownloadsViewOverlay.css b/LCARStrek/browser/downloads/allDownloadsViewOverlay.css index e8ceebb9..2ebb1b11 100644 --- a/LCARStrek/browser/downloads/allDownloadsViewOverlay.css +++ b/LCARStrek/browser/downloads/allDownloadsViewOverlay.css @@ -4,6 +4,9 @@ /* === 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 { @@ -17,20 +20,16 @@ #downloadsRichListBox > richlistitem.download { height: var(--downloads-item-height); - padding: 5px 8px; } .downloadTypeIcon { - margin-top: 8px; - margin-inline-end: 12px; - margin-bottom: 8px; - margin-inline-start: 0; + margin: 8px 13px; width: 32px; height: 32px; } .downloadBlockedBadge { - margin: 0 4px; + margin: 0 5px; background: url("chrome://browser/skin/downloads/download-blocked.svg") top right / 16px no-repeat; } @@ -46,93 +45,99 @@ richlistitem.download[verdict="Uncommon"] .downloadBlockedBadge { background-image: url("chrome://browser/skin/info.svg"); } +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; + filter: url("chrome://global/skin/filters.svg#fill"); + fill: currentColor; } -/*** Button icons ***/ - -.downloadButton.downloadIconCancel { - -moz-image-region: rect(0px, 16px, 16px, 0px); +.downloadButton > .button-box > .button-text { + display: none; } -richlistitem.download:hover > .downloadButton.downloadIconCancel, -richlistitem.download:hover > .downloadButton.downloadIconCancel:hover, -richlistitem.download:hover > .downloadButton.downloadIconCancel:active { - -moz-image-region: rect(0px, 32px, 16px, 16px); +.downloadButton:hover > .button-box { + background-color: #A09090; + color: #000000; } -.downloadButton.downloadIconShow { - -moz-image-region: rect(16px, 16px, 32px, 0px); +.downloadButton:hover:active > .button-box { + background-color: #FF9F00; } -richlistitem.download:hover > .downloadButton.downloadIconShow, -richlistitem.download:hover > .downloadButton.downloadIconShow:hover, -richlistitem.download:hover > .downloadButton.downloadIconShow:active { - -moz-image-region: rect(16px, 32px, 32px, 16px); +richlistitem.download[selected] > .downloadButtonArea > .downloadButton:hover > .button-box { + background-color: #FFCF00; + color: #000000; } -.downloadButton.downloadIconRetry { - -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.downloadIconRetry, -richlistitem.download:hover > .downloadButton.downloadIconRetry:hover, -richlistitem.download:hover > .downloadButton.downloadIconRetry:active { - -moz-image-region: rect(32px, 32px, 48px, 16px); +/*** Button icons ***/ + +.downloadIconCancel > .button-box > .button-icon { + list-style-image: url("chrome://browser/skin/panel-icons.svg#cancel"); } -richlistitem.download[selected] > .downloadButton.downloadIconCancel, -richlistitem.download[selected]:hover > .downloadButton.downloadIconCancel, -richlistitem.download[selected]:hover > .downloadButton.downloadIconCancel:hover, -richlistitem.download[selected]:hover > .downloadButton.downloadIconCancel:active { - -moz-image-region: rect(0px, 32px, 16px, 16px); +.downloadIconShow > .button-box > .button-icon { + list-style-image: url("chrome://browser/skin/panel-icons.svg#folder"); } -richlistitem.download[selected] > .downloadButton.downloadIconShow, -richlistitem.download[selected]:hover > .downloadButton.downloadIconShow, -richlistitem.download[selected]:hover > .downloadButton.downloadIconShow:hover, -richlistitem.download[selected]:hover > .downloadButton.downloadIconShow:active { - -moz-image-region: rect(16px, 32px, 32px, 16px); +.downloadIconRetry > .button-box > .button-icon { + list-style-image: url("chrome://browser/skin/panel-icons.svg#retry"); } -richlistitem.download[selected] > .downloadButton.downloadIconRetry, -richlistitem.download[selected]:hover > .downloadButton.downloadIconRetry, -richlistitem.download[selected]:hover > .downloadButton.downloadIconRetry:hover, -richlistitem.download[selected]:hover > .downloadButton.downloadIconRetry: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; }