mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-25 22:26:11 +00:00
fix: Fix compact mode native radius and separtion for windows, b=no-bug, c=compact-mode
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
diff --git a/browser/themes/windows/browser.css b/browser/themes/windows/browser.css
|
||||
index 4485369284ee762bc8b35afb84fec0874a831fff..7096e2e5d50cda99b62a2aa7118fea6371e76b85 100644
|
||||
index 4485369284ee762bc8b35afb84fec0874a831fff..6a1ad15f657437aa4ef98fda63ae921a378f7310 100644
|
||||
--- a/browser/themes/windows/browser.css
|
||||
+++ b/browser/themes/windows/browser.css
|
||||
@@ -31,7 +31,6 @@
|
||||
@@ -10,13 +10,14 @@ index 4485369284ee762bc8b35afb84fec0874a831fff..7096e2e5d50cda99b62a2aa7118fea63
|
||||
}
|
||||
|
||||
/* Using a semitransparent background preserves the tinting from the backdrop.
|
||||
@@ -60,14 +59,12 @@
|
||||
@@ -60,14 +59,13 @@
|
||||
}
|
||||
|
||||
/* This is needed for Windows 10, see bug 1961257 */
|
||||
-@media (-moz-windows-accent-color-in-titlebar) {
|
||||
- :root[customtitlebar][sizemode="normal"] #navigator-toolbox {
|
||||
+ :root[customtitlebar][sizemode="normal"] #browser {
|
||||
+ --zen-sidebar-compact-top-offset: 1px;
|
||||
border-top: 0.5px solid ActiveBorder;
|
||||
&:-moz-window-inactive {
|
||||
border-top-color: InactiveBorder;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
&,
|
||||
&::before,
|
||||
&::after {
|
||||
border-radius: calc(var(--zen-native-inner-radius) + var(--zen-element-separation) / 4 - var(--zen-compact-mode-no-padding-radius-fix, 0px));
|
||||
border-radius: calc(var(--zen-native-inner-radius) - var(--zen-compact-mode-no-padding-radius-fix, 0px));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,10 @@
|
||||
bottom: var(--zen-compact-float);
|
||||
padding: 0 var(--zen-compact-float) !important;
|
||||
:root[zen-single-toolbar='true'] & {
|
||||
top: calc(var(--zen-compact-float) / 2);
|
||||
/* We add an extra offset since windows users have a border top
|
||||
* in the window in order to compensate how windows renders the
|
||||
* titlebar */
|
||||
top: calc(var(--zen-compact-float) / 2 + var(--zen-sidebar-compact-top-offset, 0px));
|
||||
height: calc(100% - var(--zen-compact-float));
|
||||
}
|
||||
:root:not([zen-single-toolbar='true']) & {
|
||||
|
||||
Reference in New Issue
Block a user