Bug 1301384 - Part 1 - Remove special styling for the Downloads Summary on Windows 7 and earlier. r=seanlee draft
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Thu, 08 Sep 2016 11:25:24 +0100
changeset 411673 d66991270e4cbb01f1cb0f7a21fa41a4270c2bb6
parent 410066 8c9c4e816e86f903c1d820f3f29715dc070a5a4a
child 530784 bfa60f1163adb3a19cd59dd12354dc6473285d5e
push id28952
push userpaolo.mozmail@amadzone.org
push dateThu, 08 Sep 2016 13:16:41 +0000
reviewersseanlee
bugs1301384
milestone51.0a1
Bug 1301384 - Part 1 - Remove special styling for the Downloads Summary on Windows 7 and earlier. r=seanlee MozReview-Commit-ID: 89ixKxNDHmT
browser/themes/shared/downloads/allDownloadsViewOverlay.inc.css
browser/themes/shared/downloads/downloads.inc.css
browser/themes/windows/downloads/downloads.css
--- a/browser/themes/shared/downloads/allDownloadsViewOverlay.inc.css
+++ b/browser/themes/shared/downloads/allDownloadsViewOverlay.inc.css
@@ -62,23 +62,21 @@
 }
 
 @item@[verdict="Uncommon"] .downloadBlockedBadge {
   background-image: url("chrome://browser/skin/info.svg");
 }
 
 .downloadTarget {
   margin-bottom: 3px;
-  cursor: inherit;
 }
 
 .downloadDetails {
   opacity: 0.7;
   font-size: 95%;
-  cursor: inherit;
 }
 
 .downloadButton {
   -moz-appearance: none;
   background: transparent;
   min-width: 0;
   min-height: 0;
   margin: 3px;
--- a/browser/themes/shared/downloads/downloads.inc.css
+++ b/browser/themes/shared/downloads/downloads.inc.css
@@ -140,17 +140,16 @@ toolbarseparator.downloadsDropmarkerSpli
 /* Override default icon size which is too small for this dropdown */
 .downloadsDropmarker > .button-box > .button-menu-dropmarker {
   width: 16px;
   height: 16px;
 }
 
 #downloadsSummary {
   padding: 0 12px;
-  cursor: pointer;
   -moz-user-focus: normal;
 }
 
 #downloadsSummary > .downloadTypeIcon {
   list-style-image: url("chrome://browser/skin/downloads/download-summary.png");
 }
 
 %ifdef XP_MACOSX
@@ -233,28 +232,26 @@ richlistitem[type="download"]:last-child
 #downloadsSummaryDetails,
 .downloadContainer {
   font-size: calc(100% * var(--downloads-item-font-size-factor));
 }
 
 #downloadsSummaryDescription,
 .downloadTarget {
   margin-bottom: var(--downloads-item-target-margin-bottom);
-  cursor: inherit;
 }
 
 .downloadTarget {
   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;
 }
 
 .downloadButton {
   -moz-appearance: none;
   min-width: 0;
   min-height: 0;
   margin: 3px;
   border: none;
--- a/browser/themes/windows/downloads/downloads.css
+++ b/browser/themes/windows/downloads/downloads.css
@@ -1,55 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 %include ../../shared/downloads/downloads.inc.css
 
 /*** Panel and outer controls ***/
 
-#downloadsSummary {
-  background-color: hsla(210,4%,10%,.04);
-  box-shadow: 0 1px 0 hsla(210,4%,10%,.08) inset;
-  transition-duration: 150ms;
-  transition-property: background-color;
-}
-
-#downloadsSummary:hover {
-  background-color: hsla(210,4%,10%,.05);
-}
-
-#downloadsSummary:hover:active {
-  background-color: hsla(210,4%,10%,.1);
-  box-shadow: 0 2px 0 0 hsla(210,4%,10%,.1) inset;
-}
-
-@media (-moz-os-version: windows-xp),
-       (-moz-os-version: windows-vista),
-       (-moz-os-version: windows-win7) {
-  @media (-moz-windows-default-theme) {
-    #downloadsSummary,
-    #downloadsSummary:hover,
-    #downloadsSummary:hover:active {
-      background-color: #f1f5fb;
-      box-shadow: 0px 1px 2px rgb(204,214,234) inset;
-      transition-duration: 0s;
-      cursor: pointer;
-    }
-
-    @media (-moz-os-version: windows-xp) {
-      #downloadsSummary,
-      #downloadsSummary:hover,
-      #downloadsSummary:hover:active {
-        background-color: hsla(216,45%,88%,.98);
-      }
-    }
-  }
-}
-
 @keyfocus@ #downloadsSummary:focus,
 @keyfocus@ .downloadsPanelFooterButton:focus {
   outline: 1px -moz-dialogtext dotted;
   outline-offset: -1px;
 }
 
 @keyfocus@ #downloadsSummary:focus {
   outline-offset: -5px;