From 3d35562c1b88344bf62eaacfa8e913d6f11ace26 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 29 Jul 2020 23:14:42 +0300 Subject: [PATCH] Adjust toolbox top margins to work better with higher dpi --- chrome/autohide_toolbox.css | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/chrome/autohide_toolbox.css b/chrome/autohide_toolbox.css index 7bae8f8..4d022c1 100644 --- a/chrome/autohide_toolbox.css +++ b/chrome/autohide_toolbox.css @@ -12,15 +12,14 @@ See the above repository for updates as well as full license text. */ @media (-moz-os-version: windows-win10){ - :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 10px !important; } - :root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ margin-top: -2px } + :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 9px !important; } + :root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ margin-top: -1px } @media screen and (min-resolution: 1.25dppx){ - :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 9px !important; } + :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 8px !important; } } @media screen and (min-resolution: 1.5dppx){ :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 8px !important; } - :root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ margin-top: -1px } } @media screen and (min-resolution: 2dppx){ :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 7px !important; } @@ -57,7 +56,7 @@ See the above repository for updates as well as full license text. */ opacity: 0; } -:root[sizemode="maximized"] #navigator-toolbox:not(:focus-within):not(:hover){ transform: rotateX(89.5deg) } +:root[sizemode="maximized"] #navigator-toolbox:not(:focus-within):not(:hover){ transform: rotateX(89deg) } /* Don't apply transform before window has been fully created */ :root:not([sessionrestored]) #navigator-toolbox{ transform:none !important }