Bug 1191966 part 2 - Avoid adding margin-top on tabs toolbar when in fullscreen mode. r?dao draft
authorXidorn Quan <me@upsuper.org>
Mon, 23 May 2016 14:24:36 +1000
changeset 371189 2db79bdde33f0fe5af8cff4c1d6dd9df2dd62449
parent 371188 ddd0d82cc2abfc5208c0bb4580191c4136122c20
child 521946 8357d15edfef7c9348d5a0535c8adeb0c1d1e7cf
push id19276
push userxquan@mozilla.com
push dateThu, 26 May 2016 05:38:09 +0000
reviewersdao
bugs1191966
milestone49.0a1
Bug 1191966 part 2 - Avoid adding margin-top on tabs toolbar when in fullscreen mode. r?dao MozReview-Commit-ID: GU0CsOufvKE
browser/themes/windows/browser.css
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -86,18 +86,18 @@
    are not autohiding the menubar. */
 #toolbar-menubar:not([autohide="true"]) + #TabsToolbar > .titlebar-placeholder[type="caption-buttons"] {
   display: none;
 }
 
 /* We want a 4px gap between the TabsToolbar and the toolbar-menubar when the
    toolbar-menu is displayed, and a 16px gap when it is not. 1px is taken care
    of by the (light) outer shadow of the tab, the remaining 3/15 are these margins. */
-#toolbar-menubar:not([autohide=true]) ~ #TabsToolbar,
-#toolbar-menubar[autohide=true]:not([inactive]) ~ #TabsToolbar {
+#toolbar-menubar:not([autohide=true]) ~ #TabsToolbar:not([inFullscreen]),
+#toolbar-menubar[autohide=true]:not([inactive]) ~ #TabsToolbar:not([inFullscreen]) {
   margin-top: 3px;
 }
 
 #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen])[chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
 #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
   margin-top: var(--space-above-tabbar);
 }