From 3ad2c75c42110c2da7f3d3ee606c9f8fd314b447 Mon Sep 17 00:00:00 2001 From: bmFtZQ <62812711+bmFtZQ@users.noreply.github.com> Date: Tue, 20 Apr 2021 17:20:55 +0800 Subject: [PATCH] fix windows 7 and 8 bugs --- chrome/global/global.css | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/chrome/global/global.css b/chrome/global/global.css index 2f370cd..24ec393 100644 --- a/chrome/global/global.css +++ b/chrome/global/global.css @@ -1,3 +1,16 @@ +@media not (-moz-os-version: windows-win7) { + @media not (-moz-os-version: windows-win8) { + :root[windowtype="navigator:browser"] { + background-color: var(--lwt-accent-color) !important; + appearance: none !important; + } + + :root:not(:-moz-lwtheme) #navigator-toolbox { + background-color: transparent !important; + } + } +} + @media (-moz-windows-compositor) { @media not (-moz-os-version: windows-win7) { @media not (-moz-os-version: windows-win8) { @@ -46,6 +59,21 @@ } } +@media (-moz-os-version: windows-win7), (-moz-os-version: windows-win8) { + :root[tabsintitlebar] .titlebar-buttonbox-container { + height: calc(32px + var(--space-above-tabbar)) !important; + margin: 0 !important; + } + + :root[windowtype="navigator:browser"]:not([style*="image"]) { + background-color: #0000 !important; + } + + :root[lwtheme]:not([style*="image"]) .tabbrowser-tab { + background-color: var(--lwt-accent-color) !important; + } +} + #navigator-toolbox :-moz-any(toolbar, #nav-bar-customization-target):not(#toolbar-menubar) { -moz-box-align: center !important; } @@ -275,6 +303,10 @@ appearance: none !important; } +#sidebar-box { + background-color: var(--sidebar-background-color) !important; +} + .sidebar-placesTree, #viewButton { color: #000 !important;