Bug 1456522 - Stop making the tabs toolbar transparent when there's no title bar behind it, i.e. in fullscreen mode. r?stransky
MozReview-Commit-ID: DuKPGXKqtnD
--- a/browser/themes/linux/browser.css
+++ b/browser/themes/linux/browser.css
@@ -645,22 +645,22 @@ notification[value="translation"] menuli
@media (-moz-gtk-csd-available) {
:root[tabsintitlebar] > #titlebar:-moz-lwtheme {
visibility: hidden;
}
:root[tabsintitlebar] #titlebar-content:-moz-lwtheme {
visibility: visible;
}
+ :root[tabsintitlebar] > #titlebar {
+ -moz-appearance: -moz-window-titlebar-maximized;
+ }
:root[tabsintitlebar][sizemode="normal"] > #titlebar {
-moz-appearance: -moz-window-titlebar;
}
- :root[tabsintitlebar][sizemode="maximized"] > #titlebar {
- -moz-appearance: -moz-window-titlebar-maximized;
- }
/* Add extra space to titlebar for dragging */
:root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar,
:root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar {
padding-top: var(--space-above-tabbar);
}
/* Private browsing and accessibility indicators */
@@ -669,17 +669,18 @@ notification[value="translation"] menuli
:root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .private-browsing-indicator,
:root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .accessibility-indicator {
padding-top: calc(-1 * var(--space-above-tabbar));
}
/* Make #TabsToolbar transparent as we style underlying #titlebar with
* -moz-window-titlebar (Gtk+ theme).
*/
- :root[tabsintitlebar] #TabsToolbar,
+ :root[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #TabsToolbar,
+ :root[tabsintitlebar][sizemode="maximized"] #TabsToolbar,
:root[tabsintitlebar] #toolbar-menubar {
-moz-appearance: none;
}
/* The button box must appear on top of the navigator-toolbox in order for
* click and hover mouse events to work properly for the button in the restored
* window state. Otherwise, elements in the navigator-toolbox, like the menubar,
* can swallow those events.