From 87334f4d890fbcf927e8435cb36f73e697d26a3b Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Mon, 13 Jun 2022 01:20:45 +0900 Subject: [PATCH] Fix: Compatibility - Titlebar padding at windows #370 #384 #413 --- css/leptonChrome.css | 18 +++++++++++++----- src/compatibility/_os.scss | 11 +++++++++++ src/compatibility/_theme.scss | 5 ----- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 5649f85..d552be7 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -68,11 +68,6 @@ margin-left: -1px; } - /*= Titlebar Container Size at photon-style compact maximized #384 ===========*/ - :root[tabsintitlebar][sizemode="maximized"] #titlebar { - appearance: unset !important; - } - /*= Disabled menu background color ===========================================*/ menuitem[disabled="true"], menu[disabled="true"] { @@ -321,6 +316,19 @@ } } } + /*= Titlebar Container Size at maximized #384 ================================*/ + @media (-moz-os-version: windows-win7), + (-moz-platform: windows-win7), + (-moz-os-version: windows-win8), + (-moz-platform: windows-win8), + (-moz-os-version: windows-win10), + (-moz-platform: windows-win10) { + :root[tabsintitlebar][sizemode="maximized"] #titlebar { + /* -moz-default-appearance: -moz-window-titlebar */ + appearance: none !important; + padding-top: 8px; + } + } } /*= Others - Compatibility ===================================================*/ @supports -moz-bool-pref("userChrome.compatibility.panel_cutoff") { diff --git a/src/compatibility/_os.scss b/src/compatibility/_os.scss index 52ee851..2137dc7 100644 --- a/src/compatibility/_os.scss +++ b/src/compatibility/_os.scss @@ -179,3 +179,14 @@ $_os_linuxDefaultShadow: 0 0 4px rgba(128, 128, 142, 0.5); } } } + +/*= Titlebar Container Size at maximized #384 ================================*/ +@include OS($win) { + :root[tabsintitlebar][sizemode="maximized"] #titlebar { + /* -moz-default-appearance: -moz-window-titlebar */ + appearance: none !important; + + // Prevent sideeffect #370 + padding-top: 8px; // Don't use margin-top for reserved fullscreen animation + } +} diff --git a/src/compatibility/_theme.scss b/src/compatibility/_theme.scss index e8c3691..e30c33f 100644 --- a/src/compatibility/_theme.scss +++ b/src/compatibility/_theme.scss @@ -37,11 +37,6 @@ margin-left: -1px; } -/*= Titlebar Container Size at photon-style compact maximized #384 ===========*/ -:root[tabsintitlebar][sizemode="maximized"] #titlebar { - appearance: unset !important; -} - /*= Disabled menu background color ===========================================*/ menuitem, menu {