|
5 | 5 | */
|
6 | 6 | /* All overrides for compact mode go here */
|
7 | 7 |
|
8 |
| -:root { |
9 |
| - --zen-compact-mode-offset: 0.1px; |
10 |
| - |
11 |
| - @media not (-moz-platform: macos) { |
12 |
| - &[sizemode='maximized'][zen-right-side='true'] { |
13 |
| - --zen-compact-mode-offset: 1px; |
14 |
| - } |
15 |
| - } |
16 |
| -} |
17 |
| - |
18 | 8 | :root[zen-compact-mode='true']:not([customizing]):not([inDOMFullscreen='true']) {
|
19 | 9 | %include ../tabs/zen-tabs/vertical-tabs-topbuttons-fix.css
|
20 | 10 | @media -moz-pref('zen.view.compact.hide-tabbar') or -moz-pref('zen.view.use-single-toolbar') {
|
|
54 | 44 |
|
55 | 45 | #navigator-toolbox {
|
56 | 46 | --zen-toolbox-max-width: 48px !important;
|
57 |
| - --zen-compact-float: var(--zen-element-separation); |
| 47 | + --zen-compact-float: max(var(--zen-element-separation), 4px); |
58 | 48 |
|
59 | 49 | /* Initial padding for when we are animating */
|
60 | 50 | padding: 0 0 0 var(--zen-toolbox-padding) !important;
|
61 | 51 |
|
| 52 | + & #urlbar { |
| 53 | + visibility: visible; |
| 54 | + } |
| 55 | + |
62 | 56 | &:not([animate='true']) {
|
63 | 57 | position: fixed;
|
64 | 58 | z-index: 10;
|
|
69 | 63 | top: 0;
|
70 | 64 | bottom: var(--zen-element-separation);
|
71 | 65 | padding: 0 var(--zen-compact-float) !important;
|
72 |
| - visibility: hidden; |
73 | 66 |
|
74 | 67 | :root[zen-single-toolbar='true'] & {
|
75 | 68 | top: calc(var(--zen-element-separation) / 2);
|
|
125 | 118 | outline-offset: -1px;
|
126 | 119 | min-width: var(--zen-toolbox-min-width);
|
127 | 120 | box-shadow: var(--zen-big-shadow);
|
| 121 | + transition: visibility 0.15s; /* Same as the toolbox */ |
| 122 | + visibility: hidden; |
128 | 123 |
|
129 | 124 | :root[zen-sidebar-expanded='true'] & {
|
130 | 125 | width: calc(var(--zen-sidebar-width) + var(--zen-toolbox-padding));
|
|
144 | 139 | * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_display/Containing_block#identifying_the_containing_block */
|
145 | 140 | }
|
146 | 141 |
|
147 |
| - & #urlbar[open][zen-floating-urlbar='true'] { |
148 |
| - transition: left 0.05s ease; |
149 |
| - visibility: visible; |
150 |
| - } |
151 |
| - |
152 | 142 | &::before {
|
153 | 143 | content: '';
|
154 | 144 | position: absolute;
|
|
175 | 165 | #navigator-toolbox:has(
|
176 | 166 | *:is([panelopen='true'], [open='true'], #urlbar:focus-within):not(#urlbar[zen-floating-urlbar='true']):not(tab):not(.zen-compact-mode-ignore)
|
177 | 167 | ) {
|
178 |
| - visibility: visible; |
179 |
| - |
180 | 168 | &:not([animate='true']) {
|
181 | 169 | --zen-compact-mode-func: linear(
|
182 | 170 | 0 0%,
|
|
291 | 279 | right var(--zen-compact-mode-time) var(--zen-compact-mode-func);
|
292 | 280 |
|
293 | 281 | &:not([supress-primary-adjustment='true']) {
|
| 282 | + & #titlebar { |
| 283 | + transition: none; |
| 284 | + visibility: visible; |
| 285 | + } |
| 286 | + |
294 | 287 | left: calc(var(--zen-element-separation) / -2);
|
295 | 288 | :root[zen-right-side='true'] & {
|
296 | 289 | right: calc(var(--zen-element-separation) / -2);
|
|
0 commit comments