Bug 1065429 - fix tabbar border on yosemite, r=mconley
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Tue, 30 Sep 2014 12:55:27 +0100
changeset 208032 dcf3bfa8deaee2c6cb090f7a00df7b1e89cd93a6
parent 208031 88f608a55a0a01add1fb4f231f13445451a51d1d
child 208033 4abd3a660b4a99c6cd2495e57a91ab286968eda0
push id27572
push userkwierso@gmail.com
push dateTue, 30 Sep 2014 23:59:29 +0000
treeherdermozilla-central@6c824fbb73e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1065429
milestone35.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 1065429 - fix tabbar border on yosemite, r=mconley
browser/themes/osx/browser.css
--- a/browser/themes/osx/browser.css
+++ b/browser/themes/osx/browser.css
@@ -156,16 +156,29 @@ toolbarseparator {
   border-top: 1px solid hsla(0,0%,0%,.3);
   background-clip: padding-box;
   margin-top: -@tabToolbarNavbarOverlap@;
   /* Position the toolbar above the bottom of background tabs */
   position: relative;
   z-index: 1;
 }
 
+/* Always draw a border on Yosemite to ensure the border is well-defined there
+ * (the default border is too light). */
+@media (-moz-mac-yosemite-theme) {
+  #main-window[tabsintitlebar] #TabsToolbar:not([collapsed="true"]) + #nav-bar:not(:-moz-lwtheme) {
+    border-top: 1px solid hsla(0,0%,0%,.2);
+    background-clip: padding-box;
+    margin-top: -@tabToolbarNavbarOverlap@;
+    /* Position the toolbar above the bottom of background tabs */
+    position: relative;
+    z-index: 1;
+  }
+}
+
 #nav-bar-customization-target {
   padding: 4px;
 }
 
 #PersonalToolbar {
   padding: 0 4px 4px;
 }