diff --git a/chrome/combined_tabs_and_main_toolbars.css b/chrome/combined_tabs_and_main_toolbars.css index f275efd..8ce9574 100644 --- a/chrome/combined_tabs_and_main_toolbars.css +++ b/chrome/combined_tabs_and_main_toolbars.css @@ -28,7 +28,7 @@ See the above repository for updates as well as full license text. */ :root[uidensity="compact"] #navigator-toolbox{ --tab-min-height: 32px } @media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){ - :root[sizemode="maximized"] > body > box{ margin-top: 8px } + :root[tabsintitlebar][sizemode="maximized"] > body > box{ margin-top: 8px } } #navigator-toolbox{ diff --git a/chrome/hide_tabs_with_one_tab.css b/chrome/hide_tabs_with_one_tab.css index 7ce30df..9c426f9 100644 --- a/chrome/hide_tabs_with_one_tab.css +++ b/chrome/hide_tabs_with_one_tab.css @@ -49,7 +49,7 @@ See the above repository for updates as well as full license text. */ } /* Extra top padding in maximized window */ @media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){ - :root[sizemode="maximized"] #navigator-toolbox{ padding-top:7px !important; } + :root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ padding-top:7px !important; } } /* Fix window controls not being clickable */ :root[tabsintitlebar] #toolbar-menubar[autohide="true"][inactive]{ diff --git a/chrome/hide_tabs_with_one_tab_w_window_controls.css b/chrome/hide_tabs_with_one_tab_w_window_controls.css index 021ae99..104a3c6 100644 --- a/chrome/hide_tabs_with_one_tab_w_window_controls.css +++ b/chrome/hide_tabs_with_one_tab_w_window_controls.css @@ -56,7 +56,7 @@ Window controls will be all wrong without it } /* Extra top padding in maximized window */ @media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){ - :root[sizemode="maximized"] #navigator-toolbox{ padding-top:7px !important; } + :root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ padding-top:7px !important; } } /* Window controls in nav-bar */ :root:not([customizing]) #toolbar-menubar[inactive]{ diff --git a/chrome/multi-row_tabs_below_content.css b/chrome/multi-row_tabs_below_content.css index 310c5f1..129258e 100644 --- a/chrome/multi-row_tabs_below_content.css +++ b/chrome/multi-row_tabs_below_content.css @@ -26,7 +26,7 @@ See the above repository for updates as well as full license text. */ --multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */ } @media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){ - :root[sizemode="maximized"]{ --multirow-top-padding: 8px } + :root[tabsintitlebar][sizemode="maximized"]{ --multirow-top-padding: 8px } } :root[uidensity="compact"]{--multirow-toolbar-height: 34px} :root{ border-top-width: 0px !important } @@ -53,7 +53,6 @@ See the above repository for updates as well as full license text. */ margin-right: 138px; /* width == 100vw - margins */ width: calc(100vw - 168px); - top: var(--multirow-top-padding); } :root[inFullscreen] #TabsToolbar > #window-controls{ diff --git a/chrome/overlay_menubar.css b/chrome/overlay_menubar.css index 0215070..5d48d02 100644 --- a/chrome/overlay_menubar.css +++ b/chrome/overlay_menubar.css @@ -14,7 +14,9 @@ See the above repository for updates as well as full license text. */ #toolbar-menubar[autohide="true"][inactive="true"]{ height: 0px !important; } -:root[tabsintitlebar][sizemode="maximized"] #toolbar-menubar{ top: 8px; } +@media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){ + :root[tabsintitlebar][sizemode="maximized"] #toolbar-menubar{ top: 8px; } +} #toolbar-menubar > spacer{ flex-grow: 1 } #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ display: none } diff --git a/chrome/show_navbar_on_focus_only.css b/chrome/show_navbar_on_focus_only.css index 667caa3..bbf74b8 100644 --- a/chrome/show_navbar_on_focus_only.css +++ b/chrome/show_navbar_on_focus_only.css @@ -12,17 +12,19 @@ See the above repository for updates as well as full license text. */ /* -moz-appearance: none on titlebar breaks window margins, so re-adjust that */ @media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){ - :root[sizemode="maximized"]:not([inDOMFullscreen]){ margin-top: 8px !important; } + :root[sizemode="maximized"]{ margin-top: 8px !important; } @media screen and (min-resolution: 1.25dppx){ - :root[sizemode="maximized"]:not([inDOMFullscreen]){ margin-top: 7px !important; } + :root[sizemode="maximized"]{ margin-top: 7px !important; } } @media screen and (min-resolution: 1.5dppx){ - :root[sizemode="maximized"]:not([inDOMFullscreen]){ margin-top: 6px !important; } + :root[sizemode="maximized"]{ margin-top: 6px !important; } } @media screen and (min-resolution: 2dppx){ - :root[sizemode="maximized"]:not([inDOMFullscreen]){ margin-top: 5px !important; } + :root[sizemode="maximized"]{ margin-top: 5px !important; } } + :root:not([tabsintitlebar]), + :root[inDOMFullscreen]{ margin-top: 0 !important; } } #urlbar-container{ margin-top: 1px } :root[sessionrestored] #nav-bar:not([customizing]){ diff --git a/chrome/tabs_below_content.css b/chrome/tabs_below_content.css index f034f72..afef55b 100644 --- a/chrome/tabs_below_content.css +++ b/chrome/tabs_below_content.css @@ -33,7 +33,7 @@ linux_gtk_window_control_patch.css :root[tabsintitlebar="true"]:not([inFullscreen]) #toolbar-menubar[autohide="false"] .titlebar-buttonbox-container{ height: 100%; } :root[tabsintitlebar="true"]:not([inFullscreen]) #toolbar-menubar[autohide="false"] .titlebar-button{ padding: 2px 17px !important; } -@media (-moz-os-version: windows-win10){ +@media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){ #titlebar{ -moz-appearance: none !important; } /* Counteract -moz-appearance when maximized */ :root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ padding-top: 8px !important; } diff --git a/chrome/toolbars_below_content.css b/chrome/toolbars_below_content.css index acf137f..321a203 100644 --- a/chrome/toolbars_below_content.css +++ b/chrome/toolbars_below_content.css @@ -12,10 +12,12 @@ See the above repository for updates as well as full license text. */ #titlebar{ -moz-appearance: none !important; } - @media (-moz-os-version: windows-win10){ + @media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){ /* Next two variables are used by autohide_menubar.css */ #toolbar-menubar{ --uc-menubar-extra-margin: 0px } - :root[sizemode="maximized"] #toolbar-menubar{ --uc-menubar-extra-margin: 8px } + :root[tabsintitlebar][sizemode="maximized"] #toolbar-menubar{ + --uc-menubar-extra-margin: 8px + } :root[sizemode="maximized"][tabsintitlebar] :where(#browser,#customization-container,#toolbar-menubar){ margin-top: 8px } }