Bug 870849 - Gap between the tab-strip and top of titlebar is too large when in restored mode, r=dao

--HG--
extra : rebase_source : c3721bdeb5c02360587e284ffa496a1ab637d09f
This commit is contained in:
Gijs Kruitbosch 2013-05-23 16:33:47 +02:00
parent 51a43f63f1
commit 4c90400b13
2 changed files with 14 additions and 9 deletions

View File

@ -26,15 +26,15 @@
-moz-box-flex: 1; /* make menu items expand to fill toolbar height */
}
#main-window[tabsintitlebar][sizemode="normal"] #toolbar-menubar[autohide="true"][inactive="true"]:not([customizing="true"]) {
visibility: hidden;
/* 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([inactive]) {
margin-bottom: 3px;
}
#main-window[sizemode="normal"] #toolbar-menubar,
/* We want a 4px gap between the TabsToolbar and the toolbar-menubar when the
toolbar-menu is displayed in either restored or maximized mode. */
#main-window:not([sizemode="fullscreen"]) #toolbar-menubar:-moz-any(:not([autohide="true"]), :not([inactive="true"])) {
margin-bottom: 4px;
#main-window[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] {
margin-bottom: 15px;
}
#toolbar-menubar:not([autohide="true"]) {

View File

@ -272,15 +272,20 @@ toolbar[customizing="true"][hidden="true"] {
%ifdef XP_MACOSX
toolbar[type="menubar"] {
visibility: collapse;
min-height: 0 !important;
border: 0 !important;
}
%else
toolbar[type="menubar"][autohide="true"] {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-menubar-autohide");
overflow: hidden;
}
toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) {
visibility: collapse;
min-height: 0 !important;
height: 0 !important;
-moz-appearance: none !important;
border-style: none !important;
}
%endif