Bug 1511208 - Make .ctrlTab-preview override the default button:hover color on Linux. r=bgrins
authorDão Gottwald <dao@mozilla.com>
Thu, 29 Nov 2018 23:29:32 +0000
changeset 505324 b81d44f829c9c9fcb3335fc7b0fa44f183f2b786
parent 505323 085d2cbcd92b3356aabb67ab019c157afe1f9007
child 505325 2e6cbbc4c53e3c0cc762b8c716d5e6370a11bd17
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1511208
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1511208 - Make .ctrlTab-preview override the default button:hover color on Linux. r=bgrins Differential Revision: https://phabricator.services.mozilla.com/D13484
browser/themes/shared/ctrlTab.inc.css
--- a/browser/themes/shared/ctrlTab.inc.css
+++ b/browser/themes/shared/ctrlTab.inc.css
@@ -17,17 +17,18 @@
   padding: 20px 10px 10px;
 %ifndef XP_MACOSX
   font-weight: bold;
 %endif
 }
 
 .ctrlTab-preview {
   -moz-appearance: none;
-  color: inherit;
+  /* !important overrides the :hover color from button.css on Linux */
+  color: inherit !important;
   margin: 0;
   text-shadow: 0 0 1px hsl(0,0%,12%), 0 0 2px hsl(0,0%,12%);
 }
 
 .ctrlTab-canvas > html|img,
 .ctrlTab-canvas > html|canvas {
   min-width: inherit;
   max-width: inherit;
@@ -67,17 +68,16 @@
   margin: -10px -10px 0;
 }
 
 #ctrlTab-showAll:not(:focus) > .ctrlTab-preview-inner {
   background-color: rgba(255,255,255,.2);
 }
 
 .ctrlTab-preview:focus > .ctrlTab-preview-inner {
-  color: white;
   background-color: rgba(0,0,0,.75);
   text-shadow: none;
   border-color: #45a1ff;
 }
 
 .ctrlTab-label {
   text-align: center;
 }