X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdownloads%2Fdownloads.css;h=ce1c7b914eece6b67784c241bcc7797bae2efff4;hp=e1be297a0e59997febf4ad29dfb450a04393b674;hb=1b1f3d099d79ff3f7e081b2702a1076c6cd627c4;hpb=b1d1a8bbaca0a31b2c2581911368b6892d447718 diff --git a/LCARStrek/browser/downloads/downloads.css b/LCARStrek/browser/downloads/downloads.css index e1be297a..ce1c7b91 100644 --- a/LCARStrek/browser/downloads/downloads.css +++ b/LCARStrek/browser/downloads/downloads.css @@ -82,52 +82,14 @@ richlistitem[type="download"] > toolbarseparator { padding-inline-end: 10px; } -#downloadsPanel[hasdownloads] #downloadsFooterButtons:not(.downloadsHideDropmarker) > #downloadsHistory { - padding-inline-start: 68px; -} - -toolbarseparator.downloadsDropmarkerSplitter { - margin: 7px 0; -} - richlistitem[type="download"] > toolbarseparator { margin: 10px 0; } -richlistitem[type="download"]:hover > toolbarseparator, -#downloadsFooter:hover toolbarseparator.downloadsDropmarkerSplitter, -#downloadsFooter[showingdropdown] toolbarseparator { +richlistitem[type="download"]:hover > toolbarseparator { margin: 0; } -.downloadsDropmarker { - padding: 0 21px; -} - -.downloadsDropmarker > .button-box > hbox { - display: none; -} - -.downloadsDropmarker > .button-box > .button-menu-dropmarker { - display: -moz-box; - padding: 0; - margin: 0; -} - -.downloadsDropmarker > .button-box > .button-menu-dropmarker > .dropmarker-icon { - width: 16px; - height: 16px; -/* list-style-image: url("chrome://browser/skin/downloads/menubutton-dropmarker.svg"); - filter: url("chrome://browser/skin/filters.svg#fill"); - fill: currentColor;*/ -} - -/* Override default icon size which is too small for this dropdown */ -.downloadsDropmarker > .button-box > .button-menu-dropmarker { - width: 16px; - height: 16px; -} - #downloadsSummary { -moz-user-focus: normal; } @@ -213,6 +175,48 @@ richlistitem[type="download"][verdict="Uncommon"] .downloadBlockedBadge { margin: 4px 0 calc(1em / var(--downloads-item-font-size-factor) - 1em); } +/* The following rules control which message is shown under the name of the + download, using a set of elements that share the class ".downloadDetails". + At any given time, only one of these elements is displayed. We use a set of + rules to hide the elements that shouldn't be displayed in each case. */ + +/* The full status message is only displayed in the Downloads View. */ +.downloadDetailsFull { + display: none; +} + +/* When hovering the mouse pointer over the item, instead of the normal message + we display a more detailed one. */ +richlistitem[type="download"]:hover > .downloadMainArea > .downloadContainer > .downloadDetailsNormal, +richlistitem[type="download"]:not(:hover) > .downloadMainArea > .downloadContainer > .downloadDetailsHover { + display: none; +} + +/* When hovering the action button in particular, instead of the usual hover + message we display the command associated with the button. */ +richlistitem[type="download"].downloadHoveringButton > .downloadMainArea > .downloadContainer > .downloadDetailsHover, +richlistitem[type="download"]:not(.downloadHoveringButton) > .downloadMainArea > .downloadContainer > .downloadButtonLabels { + display: none; +} + +/* When hovering the main area of a finished download whose target exists, + instead of the usual hover message we display the "Open File" command. */ +richlistitem[type="download"][state="1"][exists] > .downloadMainArea:hover > .downloadContainer > .downloadDetailsHover, +richlistitem[type="download"]:not([state="1"]) > .downloadMainArea > .downloadContainer > .downloadOpenFile, +richlistitem[type="download"]:not([exists]) > .downloadMainArea > .downloadContainer > .downloadOpenFile, +.downloadMainArea:not(:hover) > .downloadContainer > .downloadOpenFile { + display: none; +} + +/* When hovering items blocked by Application Reputation, instead of the other + hover messages we display the "Show more information" label. */ +richlistitem[type="download"][verdict] > .downloadMainArea > .downloadContainer > .downloadDetailsHover, +richlistitem[type="download"][verdict] > .downloadMainArea > .downloadContainer > .downloadButtonLabels, +richlistitem[type="download"]:not([verdict]) > .downloadMainArea > .downloadContainer > .downloadShowMoreInfo, +richlistitem[type="download"]:not(:hover) > .downloadMainArea > .downloadContainer > .downloadShowMoreInfo { + display: none; +} + richlistitem[type="download"][verdict] > toolbarseparator { visibility: hidden; } @@ -230,7 +234,7 @@ richlistitem[type="download"][verdict] > toolbarseparator { width: 16px; height: 16px; margin: 1px; - filter: url("chrome://browser/skin/filters.svg#fill"); + filter: url("chrome://global/skin/filters.svg#fill"); fill: currentColor; } @@ -397,7 +401,7 @@ richlistitem[type="download"][verdict="PotentiallyUnwanted"] .blockedIcon { } richlistitem[type="download"][verdict="Uncommon"] .blockedIcon { - list-style-image: url("chrome://global/skin/icons/information-32.png"); + list-style-image: url("chrome://global/skin/icons/info.svg"); } @media (-moz-windows-default-theme) {