X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdownloads%2Fdownloads.css;h=e1be297a0e59997febf4ad29dfb450a04393b674;hp=a59e09757d7929f3a6593ae8a0073880450638c2;hb=b1d1a8bbaca0a31b2c2581911368b6892d447718;hpb=c8618eaacf7389abc4d9f467d4981ebc1398c300 diff --git a/LCARStrek/browser/downloads/downloads.css b/LCARStrek/browser/downloads/downloads.css index a59e0975..e1be297a 100644 --- a/LCARStrek/browser/downloads/downloads.css +++ b/LCARStrek/browser/downloads/downloads.css @@ -4,6 +4,9 @@ /* === BEGIN downloads.inc.css === */ +/* In the original, this is at the end of the file as a preprocessor-include */ +@import url("progressmeter.inc.css"); + /*** Panel and outer controls ***/ #downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent { @@ -18,10 +21,8 @@ #downloadsListBox { background-color: transparent; - padding: 0; color: inherit; margin: 0; - border: none; } #emptyDownloads { @@ -128,8 +129,6 @@ richlistitem[type="download"]:hover > toolbarseparator, } #downloadsSummary { - padding: 0 12px; - cursor: pointer; -moz-user-focus: normal; } @@ -146,36 +145,26 @@ richlistitem[type="download"]:hover > toolbarseparator, #downloadsSummary, richlistitem[type="download"] { height: var(--downloads-item-height); - padding-inline-end: 0; - color: inherit; } richlistitem[type="download"] { - margin: 0; border-bottom: 1px solid var(--panel-separator-color); background: transparent; - padding: 0; + color: inherit; } richlistitem[type="download"]:last-child { border-bottom: none; } -richlistitem[type="download"] > .downloadMainArea { - padding: 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; } @@ -205,26 +194,23 @@ richlistitem[type="download"][verdict="Uncommon"] .downloadBlockedBadge { font-size of .downloadContainer's parent, we use calc to go from the smaller font-size back to the original font-size. */ -#downloadsSummaryDetails, .downloadContainer { font-size: calc(100% * var(--downloads-item-font-size-factor)); + margin-inline-end: 13px; } #downloadsSummaryDescription, .downloadTarget { - margin-bottom: var(--downloads-item-target-margin-bottom); - cursor: inherit; -} - -.downloadTarget { + margin: 0; font-size: calc(100% / var(--downloads-item-font-size-factor)); } #downloadsSummaryDetails, .downloadDetails { - margin-top: var(--downloads-item-details-margin-top); opacity: var(--downloads-item-details-opacity); - 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 / var(--downloads-item-font-size-factor) - 1em); } richlistitem[type="download"][verdict] > toolbarseparator { @@ -236,8 +222,8 @@ richlistitem[type="download"][verdict] > toolbarseparator { margin: 0; /* border: none; */ background: transparent; - padding: 8px; - color: #A09090; + padding: 0; + color: inherit; } .downloadButton > .button-box > .button-icon { @@ -253,21 +239,16 @@ richlistitem[type="download"][verdict] > toolbarseparator { padding: 0; } -richlistitem[type="download"][state="1"][exists]:hover > .downloadMainArea, -richlistitem[type="download"]:not([verdict]):hover > .downloadButtonArea { - background-color: var(--arrowpanel-dimmed); -} - richlistitem[type="download"][state="1"][exists] .downloadMainArea:hover, richlistitem[type="download"]:not([verdict]) > .downloadButtonArea:hover, richlistitem[type="download"][verdict]:hover { - background-color: var(--arrowpanel-dimmed-further); + background-color: var(--arrowpanel-dimmed); } richlistitem[type="download"][state="1"][exists] > .downloadMainArea:hover:active, richlistitem[type="download"]:not([verdict]) > .downloadButtonArea:hover:active, richlistitem[type="download"][verdict]:hover:active { - background-color: var(--arrowpanel-dimmed-even-further); + background-color: var(--arrowpanel-dimmed-further); } richlistitem[type="download"][showingsubview] { @@ -284,10 +265,6 @@ richlistitem[type="download"][verdict="Malware"][showingsubview] { color: #000000; } -richlistitem[type="download"][verdict="Malware"]:hover > .downloadButtonArea > .downloadButton { - color: inherit; -} - /*** Button icons ***/ .downloadIconCancel > .button-box > .button-icon { @@ -367,19 +344,13 @@ richlistitem[type="download"][verdict="Malware"]:hover > .downloadButtonArea > . -moz-margin-end: 16px; } +/*** Progressmeter ***/ +/* %include progressmeter.inc.css - this happens as @import at the start of the file */ + /* === END downloads.inc.css === */ /*** Panel and outer controls ***/ -#downloadsSummary { -} - -#downloadsSummary:hover { -} - -#downloadsSummary:hover:active { -} - #downloadsPanel[keyfocus] #downloadsSummary:focus, #downloadsPanel[keyfocus] .downloadsPanelFooterButton:focus { outline: 1px #008484 dotted; @@ -408,10 +379,8 @@ richlistitem[type="download"][showingsubview][verdict="Malware"] { /*** List items and similar elements in the summary ***/ :root { - --downloads-item-height: 7em; + --downloads-item-height: 5.5em; --downloads-item-font-size-factor: 0.9; - --downloads-item-target-margin-bottom: 6px; - --downloads-item-details-margin-top: 0; --downloads-item-details-opacity: 0.6; }