mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Use var for zen compact float.
This commit is contained in:
@@ -28,21 +28,22 @@
|
||||
|
||||
#navigator-toolbox {
|
||||
--zen-toolbox-max-width: 54px !important;
|
||||
--zen-compact-float: calc(var(--zen-element-separation) + 1px);
|
||||
position: absolute;
|
||||
height: calc(100% - var(--zen-element-separation) * 2);
|
||||
z-index: 9;
|
||||
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
||||
right: calc(100% - var(--zen-element-separation));
|
||||
top: var(--zen-element-separation);
|
||||
bottom: var(--zen-element-separation);
|
||||
opacity: 0;
|
||||
padding-left: calc(var(--zen-element-separation) + 2px) !important;
|
||||
padding-left: var(--zen-compact-float) !important;
|
||||
padding-bottom: 0 !important;
|
||||
padding-top: 0 !important;
|
||||
|
||||
#browser:has(#navigator-toolbox[zen-right-side='true']) & {
|
||||
padding-left: unset !important;
|
||||
padding-right: calc(var(--zen-element-separation) + 2px) !important;
|
||||
left: calc(100% - var(--zen-element-separation) + 1px);
|
||||
padding-right: var(--zen-compact-float) !important;
|
||||
left: calc(100% - var(--zen-element-separation));
|
||||
right: unset;
|
||||
}
|
||||
}
|
||||
@@ -52,14 +53,13 @@
|
||||
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
|
||||
border-radius: calc(var(--zen-border-radius) + 2px);
|
||||
border: 1px solid var(--zen-colors-border);
|
||||
border-left-width: 0;
|
||||
padding: var(--zen-toolbox-padding) !important;
|
||||
position: relative;
|
||||
}
|
||||
/* Mark: toolbox as collapsed */
|
||||
#navigator-toolbox:not(#navigator-toolbox:is(#navigator-toolbox[zen-expanded='true'])) {
|
||||
max-width: calc(var(--zen-toolbox-max-width) + var(--zen-element-separation) + 2px) !important;
|
||||
min-width: calc(var(--zen-toolbox-max-width) + var(--zen-element-separation) + 2px) !important;
|
||||
max-width: calc(var(--zen-toolbox-max-width) + var(--zen-compact-float)) !important;
|
||||
min-width: calc(var(--zen-toolbox-max-width) + var(--zen-compact-float)) !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox:hover,
|
||||
|
Reference in New Issue
Block a user