Fix: Compatibility - Titlebar padding at windows #370 #384 #413

This commit is contained in:
alstjr7375 2022-06-13 01:20:45 +09:00
parent 272fda96a4
commit 87334f4d89
3 changed files with 24 additions and 10 deletions

View file

@ -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") {

View file

@ -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
}
}

View file

@ -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 {