Skip to content

Commit

Permalink
Fix: Tabbar Height - Makes non fixed #476
Browse files Browse the repository at this point in the history
It may also affect the compatibility with the old browser.
  • Loading branch information
black7375 committed Sep 28, 2022
1 parent da8e4c2 commit 2564a0a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
20 changes: 11 additions & 9 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,18 @@
}
}
/*= Titlebar Container Size at maximized #384 ================================*/
@supports -moz-bool-pref("userChrome.compatibility.os.windows_maximized") {
@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) {
@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;
}
@supports -moz-bool-pref("userChrome.compatibility.os.windows_maximized") {
:root[tabsintitlebar][sizemode="maximized"] #titlebar {
/* -moz-default-appearance: -moz-window-titlebar */
appearance: none !important;
padding-top: 8px;
}
}
Expand Down
11 changes: 6 additions & 5 deletions src/compatibility/_os.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,13 @@ $_os_linuxDefaultShadow: 0 0 4px rgba(128, 128, 142, 0.5);
}

/*= Titlebar Container Size at maximized #384 ================================*/
@include Option("userChrome.compatibility.os.windows_maximized") {
@include OS($win) {
:root[tabsintitlebar][sizemode="maximized"] #titlebar {
/* -moz-default-appearance: -moz-window-titlebar */
appearance: none !important;
@include OS($win) {
:root[tabsintitlebar][sizemode="maximized"] #titlebar {
// Prevent #476 FF v105 above
/* -moz-default-appearance: -moz-window-titlebar */
appearance: none !important;

@include Option("userChrome.compatibility.os.windows_maximized") {
// Prevent sideeffect #370
padding-top: 8px; // Don't use margin-top for reserved fullscreen animation
}
Expand Down

0 comments on commit 2564a0a

Please sign in to comment.