Bug 1756656 - Remove ifdefs from ctrlTab.inc.css r=Gijs
authorSarah Clements <sclements@mozilla.com>
Thu, 10 Mar 2022 11:56:40 +0000
changeset 610202 f90fa65015dc50e3b49e14e6167cd9996dd845fe
parent 610201 9585dc5df3a79719f002bc496e2266653f699f23
child 610203 26fd063a944baba97710991b37416d26029ac9e9
push id39395
push usersmolnar@mozilla.com
push dateThu, 10 Mar 2022 17:23:56 +0000
treeherdermozilla-central@446c2fcf0c0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1756656
milestone100.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 1756656 - Remove ifdefs from ctrlTab.inc.css r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D140531
browser/themes/shared/ctrlTab.inc.css
--- a/browser/themes/shared/ctrlTab.inc.css
+++ b/browser/themes/shared/ctrlTab.inc.css
@@ -1,26 +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/. */
 
 /* Ctrl-Tab */
 
 #ctrlTab-panel {
   appearance: none;
-%ifdef XP_MACOSX
-  -moz-window-shadow: none;
-%endif
   --panel-background: hsla(0,0%,40%,.85);
   --panel-color: white;
   --panel-border-color: transparent;
   --panel-padding: 20px 10px 10px;
-%ifndef XP_MACOSX
-  font-weight: bold;
-%endif
+}
+
+@media (-moz-platform: macos) {
+  #ctrlTab-panel {
+    -moz-window-shadow: none;
+  }
+}
+
+@media not (-moz-platform: macos) {
+  #ctrlTab-panel {
+    font-weight: bold;
+  }
 }
 
 .ctrlTab-preview,
 #ctrlTab-showAll {
   appearance: none;
   color: inherit;
   /* remove the :-moz-focusring outline from button.css on Windows */
   outline: none !important;