Bug 1501560 - Port bug 1501235 to TB: Move menubar autohide code from xul.css to messenger.css. r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Wed, 24 Oct 2018 09:17:05 +0200
changeset 33550 a3783aedb7814e69b3c0ccf4e7b7daa4327a8838
parent 33549 73ea8939f5e07e17edab0670f4b15f3d60037312
child 33551 fc3bc776f223d2244dd3a596b11460d826860d65
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersjorgk
bugs1501560, 1501235
Bug 1501560 - Port bug 1501235 to TB: Move menubar autohide code from xul.css to messenger.css. r=jorgk
mail/base/content/messenger.css
--- a/mail/base/content/messenger.css
+++ b/mail/base/content/messenger.css
@@ -238,16 +238,28 @@ splitmenu {
 #titlebar-spacer {
   pointer-events: none;
 }
 
 .button-appmenu {
   -moz-binding: url("chrome://messenger/content/mailWidgets.xml#appmenu-vertical") !important;
 }
 
+%ifndef XP_MACOSX
+toolbar[type="menubar"][autohide="true"] {
+  overflow: hidden;
+}
+
+toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) {
+  min-height: 0 !important;
+  height: 0 !important;
+  -moz-appearance: none !important;
+}
+%endif
+
 /* Preferences */
 
 preftab,
 preftab:root /* override :root */ {
   -moz-binding: url("chrome://messenger/content/preferences/aboutPreferences.xml#preftab");
   -moz-box-orient: vertical;
 }