From 90b02dc14bb29162d3dfb9ad452ff0fd1ca009c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Mon, 3 Dec 2018 17:03:21 +0000 Subject: [PATCH] Bug 1511496 - Let the autohiding menu bar match the tab bar's height. r=mconley Differential Revision: https://phabricator.services.mozilla.com/D13595 --HG-- extra : moz-landing-system : lando --- browser/themes/windows/browser.css | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/browser/themes/windows/browser.css b/browser/themes/windows/browser.css index 6ab4903a8f5e..ff8c43baccc2 100644 --- a/browser/themes/windows/browser.css +++ b/browser/themes/windows/browser.css @@ -101,6 +101,19 @@ } } +@media not (-moz-os-version: windows-win7) { + @media not (-moz-os-version: windows-win8) { + /* On Windows 10, when temporarily showing the menu bar, make it at least as + * tall as the tab bar such that the window controls don't appear to move up. */ + :root[tabsintitlebar] #toolbar-menubar[autohide="true"] { + height: calc(var(--tab-min-height) - @navbarTabsShadowSize@); + } + :root[tabsintitlebar][sizemode="normal"] #toolbar-menubar[autohide="true"] { + height: calc(var(--tab-min-height) + var(--space-above-tabbar) - @navbarTabsShadowSize@); + } + } +} + :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar > .toolbar-items, :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .toolbar-items { padding-top: var(--space-above-tabbar); @@ -956,9 +969,8 @@ notification[value="translation"] { /* End customization mode */ -/* Prevent titlebar items (window caption buttons, private browsing indicator, - * accessibility indicator, etc) from overlapping the nav bar's shadow on the - * tab bar. */ +/* Prevent window controls from overlapping the nav bar's shadow on the tab + * bar. */ #TabsToolbar > .titlebar-buttonbox-container { margin-bottom: @navbarTabsShadowSize@; }