third and last part of syncing LCARStrek with Firefox 52 browser windows theme changes
[themes.git] / LCARStrek / browser / downloads / downloads.css
index a59e09757d7929f3a6593ae8a0073880450638c2..e1be297a0e59997febf4ad29dfb450a04393b674 100644 (file)
@@ -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 {
 
 #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;
 }