Bug 1130850 - Fix outdated plugin notification bar text color. r=Unfocused, a=lmandel
authorDrew Willcoxon <adw@mozilla.com>
Wed, 04 Mar 2015 14:38:41 -0800
changeset 250306 5d0326e1f387
parent 250305 58b004077c10
child 250307 b06724f2ed0a
push id4542
push userryanvm@gmail.com
push date2015-03-09 19:13 +0000
treeherdermozilla-beta@46392e569cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused, lmandel
bugs1130850
milestone37.0
Bug 1130850 - Fix outdated plugin notification bar text color. r=Unfocused, a=lmandel
toolkit/themes/linux/global/notification.css
toolkit/themes/osx/global/notification.css
toolkit/themes/windows/global/notification.css
--- a/toolkit/themes/linux/global/notification.css
+++ b/toolkit/themes/linux/global/notification.css
@@ -1,56 +1,45 @@
 /* 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/. */
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
-notification,
-.messageText > .text-link {
-  color: InfoText !important;
-}
-
 notification {
+  color: InfoText;
   background-color: InfoBackground;
   text-shadow: none;
 }
 
-notification[type="info"],
-notification[type="info"] .messageText > .text-link {
-  color: -moz-DialogText !important;
-}
-
 notification[type="info"] {
+  color: -moz-DialogText;
   background-color: -moz-Dialog;
 }
 
-notification[type="critical"],
-notification[type="critical"] .messageText > .text-link {
-  color: white !important;
-}
-
 notification[type="critical"] {
+  color: white;
   background-image: linear-gradient(rgb(212,0,0), rgb(152,0,0));
 }
 
-.messageText > .text-link {
-  text-decoration: underline;
-}
-
 .notification-inner {
   padding-top: 1px;
   padding-bottom: 1px;
 }
 
 .messageText {
   margin-top: 0 !important;
   margin-bottom: 0 !important;
 }
 
+.messageText > .text-link {
+  color: inherit !important;
+  text-decoration: underline;
+}
+
 .messageImage {
   width: 16px;
   height: 16px;
   -moz-margin-start: 6px;
   -moz-margin-end: 1px;
 }
 
 /* Default icons for notifications */
--- a/toolkit/themes/osx/global/notification.css
+++ b/toolkit/themes/osx/global/notification.css
@@ -5,50 +5,39 @@
 %include shared.inc
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
 notification {
   padding: 3px 3px 4px;
   text-shadow: none;
 }
 
-notification[type="info"],
-notification[type="info"] .messageText > .text-link {
-  color: rgba(255,255,255,0.95) !important;
-}
-
 notification[type="info"] {
+  color: rgba(255,255,255,0.95);
   background: url("chrome://global/skin/notification/info-bar-background.png") #404040 repeat-x top left;
   border-top: 1px solid #707070;
   border-bottom: 1px solid #2a2a2a;
 }
 
-notification[type="warning"],
-notification[type="warning"] .messageText > .text-link {
-  color: rgba(0,0,0,0.95) !important;
-}
-
 notification[type="warning"] {
+  color: rgba(0,0,0,0.95);
   background: url("chrome://global/skin/notification/warning-bar-background.png") #ffc703 repeat-x top left;
   border-top: 1px solid #ffe970;
   border-bottom: 1px solid #bf8a01;
 }
 
-notification[type="critical"],
-notification[type="critical"] .messageText > .text-link {
-  color: rgba(255,255,255,0.95) !important;
-}
-
 notification[type="critical"] {
+  color: rgba(255,255,255,0.95);
   background: url("chrome://global/skin/notification/critical-bar-background.png") #980000 repeat-x top left;
   border-top: 1px solid #e35959;
   border-bottom: 1px solid #5d0000;
 }
 
 .messageText > .text-link {
+  color: inherit !important;
   text-decoration: underline;
 }
 
 .messageImage {
   width: 16px;
   height: 16px;
   margin: 0 4px;
 }
--- a/toolkit/themes/windows/global/notification.css
+++ b/toolkit/themes/windows/global/notification.css
@@ -1,43 +1,32 @@
 /* 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/. */
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
-notification,
-.messageText > .text-link {
-  color: InfoText !important;
-}
-
 notification {
+  color: InfoText;
   background-color: InfoBackground;
   text-shadow: none;
 }
 
-notification[type="info"],
-notification[type="info"] .messageText > .text-link {
-  color: -moz-DialogText !important;
-}
-
 notification[type="info"] {
+  color: -moz-DialogText;
   background-color: -moz-Dialog;
 }
 
-notification[type="critical"],
-notification[type="critical"] .messageText > .text-link {
-  color: white !important;
-}
-
 notification[type="critical"] {
+  color: white;
   background-image: linear-gradient(rgb(212,0,0), rgb(152,0,0));
 }
 
 .messageText > .text-link {
+  color: inherit !important;
   text-decoration: underline;
 }
 
 .messageImage {
   width: 16px;
   height: 16px;
   -moz-margin-start: 6px;
   -moz-margin-end: 1px;