Bug 1399499 - Add additional margin-top to the tabs toolbar on Windows 7 per Photon spec. r=nhnt11
authorJohann Hofmann <jhofmann@mozilla.com>
Fri, 15 Sep 2017 01:30:08 +0200
changeset 433271 134474e7c8a93b2565502b4a751a8ed0a0819512
parent 433270 5dc35eb2c70b5e60e334e9b8a779dc5dd273608a
child 433272 092944affb617ed74cd494a8feb7ac99fba2100a
push id1567
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 12:36:05 +0000
treeherdermozilla-release@e512c14a0406 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnhnt11
bugs1399499
milestone57.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 1399499 - Add additional margin-top to the tabs toolbar on Windows 7 per Photon spec. r=nhnt11 MozReview-Commit-ID: E3lWYq29eTQ
browser/themes/windows/browser.css
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -73,16 +73,24 @@
   display: none;
 }
 
 :root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
 :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
   margin-top: var(--space-above-tabbar);
 }
 
+/* Add 4px extra margin on top of the tabs toolbar on Windows 7. */
+@media (-moz-os-version: windows-win7) {
+  :root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
+  :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
+    margin-top: calc(var(--space-above-tabbar) + 4px);
+  }
+}
+
 #navigator-toolbox,
 #navigator-toolbox > toolbar {
   -moz-appearance: none;
 }
 
 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
   background-color: var(--toolbar-bgcolor);
   background-image: var(--toolbar-bgimage);