@shellui/core 0.7.0-alpha.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +24 -7
- package/src/components/ui/drawer.tsx +47 -30
- package/src/components/ui/sheet.tsx +18 -12
- package/src/components/ui/shell-divider.spec.tsx +63 -0
- package/src/components/ui/shell-divider.tsx +20 -0
- package/src/components/ui/sidebar.tsx +26 -12
- package/src/components/ui/tooltip.tsx +4 -2
- package/src/features/admin/AdminView.tsx +9 -6
- package/src/features/auth/components/LoginButton.spec.tsx +203 -0
- package/src/features/auth/components/LoginButton.tsx +77 -28
- package/src/features/auth/components/LoginButtonIcons.tsx +4 -8
- package/src/features/chromeActions/ChromeActionsHost.tsx +5 -1
- package/src/features/chromeActions/computeActionInsets.ts +7 -4
- package/src/features/layouts/OverlayShell.tsx +58 -40
- package/src/features/layouts/appbar/AppBarItemIcon.spec.tsx +45 -0
- package/src/features/layouts/appbar/AppBarItemIcon.tsx +19 -0
- package/src/features/layouts/appbar/AppBarLayout.tsx +115 -110
- package/src/features/layouts/appbar/appBarOverflow.spec.ts +27 -0
- package/src/features/layouts/appbar/appBarOverflow.ts +42 -0
- package/src/features/layouts/chrome/CollapsedDesktopTitlebar.tsx +13 -24
- package/src/features/layouts/chrome/ContentDragOverlay.tsx +5 -6
- package/src/features/layouts/chrome/DesktopChrome.tsx +37 -0
- package/src/features/layouts/chrome/DesktopHistoryButtons.tsx +15 -4
- package/src/features/layouts/chrome/MacStrip.tsx +33 -0
- package/src/features/layouts/chrome/constants.ts +36 -8
- package/src/features/layouts/chrome/index.ts +8 -0
- package/src/features/layouts/chrome/stripDragMap.ts +35 -0
- package/src/features/layouts/chrome/stripNoDrag.spec.tsx +103 -0
- package/src/features/layouts/chrome/useScrollHideChrome.ts +3 -8
- package/src/features/layouts/chrome/viewport.ts +11 -4
- package/src/features/layouts/floating/FloatingBottomDock.tsx +263 -43
- package/src/features/layouts/floating/FloatingLayout.tsx +14 -8
- package/src/features/layouts/floating/FloatingSidebar.tsx +178 -81
- package/src/features/layouts/floating/computeFloatingInsets.ts +22 -4
- package/src/features/layouts/floating/moreSections.spec.ts +28 -0
- package/src/features/layouts/floating/moreSections.ts +31 -0
- package/src/features/layouts/floating/useFloatingChrome.ts +3 -1
- package/src/features/layouts/floating/useSoftKeyboard.spec.ts +39 -0
- package/src/features/layouts/floating/useSoftKeyboard.ts +82 -0
- package/src/features/layouts/fullscreen/FullscreenLayout.spec.tsx +68 -0
- package/src/features/layouts/fullscreen/FullscreenLayout.tsx +47 -10
- package/src/features/layouts/sidebar/NavigationContent.tsx +17 -9
- package/src/features/layouts/sidebar/SidebarIcons.tsx +70 -9
- package/src/features/layouts/sidebar/SidebarInner.spec.tsx +149 -0
- package/src/features/layouts/sidebar/SidebarInner.tsx +103 -43
- package/src/features/layouts/sidebar/SidebarLayout.tsx +24 -17
- package/src/features/layouts/windows/DesktopDots.tsx +76 -0
- package/src/features/layouts/windows/WindowsLayout.tsx +265 -160
- package/src/features/layouts/windows/deskDots.spec.ts +54 -0
- package/src/features/layouts/windows/deskDots.ts +314 -0
- package/src/features/overlays/ResponsiveModal.tsx +5 -3
- package/src/features/overlays/overlaySize.spec.ts +56 -16
- package/src/features/overlays/overlaySize.ts +114 -31
- package/src/features/overlays/phoneDrawerAnchoring.spec.ts +187 -0
- package/src/features/overlays/useOverlayReportedSize.ts +8 -3
- package/src/features/theme/applyTheme.ts +8 -0
- package/src/features/theme/navContrast.spec.ts +49 -0
- package/src/features/theme/navContrast.ts +108 -0
- package/src/i18n/translations/en/common.json +26 -0
- package/src/i18n/translations/fr/common.json +26 -0
- package/src/index.css +1156 -77
- package/src/service-worker/devCaches.spec.ts +32 -0
- package/src/service-worker/devCaches.ts +27 -0
- package/src/service-worker/sw-dev.ts +23 -23
package/src/index.css
CHANGED
|
@@ -95,6 +95,109 @@
|
|
|
95
95
|
--shellui-inset-accent-foreground: var(--sidebar-foreground);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
/*
|
|
99
|
+
* Shell chrome tokens (layouts redesign). Every value is a theme token or a
|
|
100
|
+
* color-mix of tokens. They stay on :root / .dark so they resolve on <html>,
|
|
101
|
+
* where applyThemeToDocument writes the theme vars inline.
|
|
102
|
+
*/
|
|
103
|
+
:root {
|
|
104
|
+
--shellui-ease: cubic-bezier(0.32, 0.72, 0, 1);
|
|
105
|
+
--shellui-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
|
|
106
|
+
--shellui-r-row: max(0px, calc(var(--radius) - 1px));
|
|
107
|
+
--shellui-r-card: calc(var(--radius) + 6px);
|
|
108
|
+
--shellui-r-float: min(calc(var(--radius) * 2), 1.25rem);
|
|
109
|
+
--shellui-r-pill: calc(var(--radius) * 999);
|
|
110
|
+
--shellui-nav-fg: color-mix(in oklch, var(--sidebar-foreground) 88%, transparent);
|
|
111
|
+
--shellui-nav-icon: color-mix(in oklch, var(--sidebar-foreground) 66%, transparent);
|
|
112
|
+
--shellui-nav-label: color-mix(in oklch, var(--sidebar-foreground) 58%, transparent);
|
|
113
|
+
--shellui-nav-hover: var(--sidebar-accent);
|
|
114
|
+
--shellui-nav-hover-inset: color-mix(in oklch, var(--sidebar-foreground) 7%, transparent);
|
|
115
|
+
--shellui-nav-active: var(--sidebar-primary);
|
|
116
|
+
--shellui-nav-active-fg: var(--sidebar-primary-foreground);
|
|
117
|
+
--shellui-nav-indicator: var(--sidebar-primary);
|
|
118
|
+
--shellui-hairline: color-mix(in oklch, var(--sidebar-border) 80%, transparent);
|
|
119
|
+
--shellui-dock-capsule: color-mix(in oklch, var(--sidebar-primary) 24%, transparent);
|
|
120
|
+
--shellui-dock-dim: color-mix(in oklch, var(--sidebar-foreground) 62%, transparent);
|
|
121
|
+
--shellui-glass: color-mix(in oklch, var(--sidebar) 72%, transparent);
|
|
122
|
+
--shellui-glass-solid: color-mix(in oklch, var(--sidebar) 97%, transparent);
|
|
123
|
+
--shellui-glass-edge: color-mix(in oklch, var(--sidebar-border) 70%, transparent);
|
|
124
|
+
--shellui-glass-hi: color-mix(in oklch, white 38%, transparent);
|
|
125
|
+
--shellui-glass-shadow:
|
|
126
|
+
0 1px 0 var(--shellui-glass-hi) inset, 0 8px 28px color-mix(in oklch, black 12%, transparent),
|
|
127
|
+
0 1px 3px color-mix(in oklch, black 8%, transparent);
|
|
128
|
+
--shellui-win-shadow:
|
|
129
|
+
0 1px 2px color-mix(in oklch, black 8%, transparent),
|
|
130
|
+
0 20px 44px -14px color-mix(in oklch, black 26%, transparent);
|
|
131
|
+
--shellui-win-shadow-idle:
|
|
132
|
+
0 1px 2px color-mix(in oklch, black 6%, transparent),
|
|
133
|
+
0 10px 24px -12px color-mix(in oklch, black 16%, transparent);
|
|
134
|
+
--shellui-desk-dot: color-mix(in oklch, var(--foreground) 15%, transparent);
|
|
135
|
+
--shellui-desk-wash: color-mix(in oklch, var(--primary) 12%, transparent);
|
|
136
|
+
--shellui-scrim: color-mix(in oklch, black 38%, transparent);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.dark {
|
|
140
|
+
--shellui-glass: color-mix(in oklch, var(--sidebar) 70%, transparent);
|
|
141
|
+
--shellui-glass-hi: color-mix(in oklch, white 10%, transparent);
|
|
142
|
+
--shellui-glass-shadow:
|
|
143
|
+
0 1px 0 var(--shellui-glass-hi) inset, 0 12px 36px color-mix(in oklch, black 42%, transparent),
|
|
144
|
+
0 1px 4px color-mix(in oklch, black 24%, transparent);
|
|
145
|
+
--shellui-win-shadow:
|
|
146
|
+
0 1px 2px color-mix(in oklch, black 30%, transparent),
|
|
147
|
+
0 24px 52px -14px color-mix(in oklch, black 60%, transparent);
|
|
148
|
+
--shellui-win-shadow-idle:
|
|
149
|
+
0 1px 2px color-mix(in oklch, black 24%, transparent),
|
|
150
|
+
0 12px 28px -12px color-mix(in oklch, black 40%, transparent);
|
|
151
|
+
--shellui-desk-dot: color-mix(in oklch, var(--foreground) 11%, transparent);
|
|
152
|
+
--shellui-desk-wash: color-mix(in oklch, var(--primary) 9%, transparent);
|
|
153
|
+
--shellui-dock-capsule: color-mix(in oklch, var(--sidebar-primary) 26%, transparent);
|
|
154
|
+
--shellui-scrim: color-mix(in oklch, black 55%, transparent);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/*
|
|
158
|
+
* Contrast guard: applyTheme sets data-shellui-nav-contrast="low" when the
|
|
159
|
+
* solid active pill falls under 4.5:1. Active rows switch to a tinted pill.
|
|
160
|
+
*/
|
|
161
|
+
:root {
|
|
162
|
+
--shellui-nav-active-icon: var(--shellui-nav-active-fg);
|
|
163
|
+
}
|
|
164
|
+
html[data-shellui-nav-contrast='low'] {
|
|
165
|
+
--shellui-nav-active: color-mix(in oklch, var(--sidebar-primary) 20%, transparent);
|
|
166
|
+
--shellui-nav-active-fg: var(--sidebar-foreground);
|
|
167
|
+
--shellui-nav-active-icon: var(--sidebar-primary);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Glass falls back to a near solid fill when transparency is unwanted or unsupported. */
|
|
171
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
172
|
+
:root {
|
|
173
|
+
--shellui-glass: var(--shellui-glass-solid);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
177
|
+
:root {
|
|
178
|
+
--shellui-glass: var(--shellui-glass-solid);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Shared glass surface: floating chrome, taskbar, start menu, phone dock. */
|
|
183
|
+
.shellui-glass {
|
|
184
|
+
background: var(--shellui-glass);
|
|
185
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
186
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
187
|
+
border: 1px solid var(--shellui-glass-edge);
|
|
188
|
+
box-shadow: var(--shellui-glass-shadow);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Chrome focus: inset ring, no detached halo on tinted chrome backgrounds. */
|
|
192
|
+
.shellui-chrome-focus:focus-visible,
|
|
193
|
+
[data-shellui-chrome-focus] :is(a, button, [role='tab'], [role='menuitem']):focus-visible {
|
|
194
|
+
outline: 2px solid var(--sidebar-ring);
|
|
195
|
+
outline-offset: -2px;
|
|
196
|
+
box-shadow: none;
|
|
197
|
+
--tw-ring-shadow: 0 0 transparent;
|
|
198
|
+
--tw-ring-offset-shadow: 0 0 transparent;
|
|
199
|
+
}
|
|
200
|
+
|
|
98
201
|
/*
|
|
99
202
|
* Padding only — never fold these into shell height. Use for chrome clearance
|
|
100
203
|
* (titlebar, sheet edges, home indicator). The shell itself is sized by
|
|
@@ -114,6 +217,54 @@
|
|
|
114
217
|
);
|
|
115
218
|
}
|
|
116
219
|
|
|
220
|
+
/*
|
|
221
|
+
* Floating drawers: every drawer, sheet and phone bottom sheet sits a gap away
|
|
222
|
+
* from the window edge (8px on phones, 12px from 768px), plus the safe area.
|
|
223
|
+
* Radii follow the theme radius, so --radius: 0 gives square panels.
|
|
224
|
+
*/
|
|
225
|
+
:root {
|
|
226
|
+
--shellui-drawer-gap: 8px;
|
|
227
|
+
--shellui-drawer-radius: var(--shellui-r-float);
|
|
228
|
+
--shellui-sheet-radius: calc(var(--shellui-r-float) * 1.5);
|
|
229
|
+
--shellui-drawer-border: var(--border);
|
|
230
|
+
--shellui-drawer-shadow: var(--shellui-win-shadow);
|
|
231
|
+
--shellui-drawer-top: calc(var(--shellui-drawer-gap) + var(--shellui-safe-area-top));
|
|
232
|
+
--shellui-drawer-right: calc(var(--shellui-drawer-gap) + var(--shellui-safe-area-right));
|
|
233
|
+
--shellui-drawer-bottom: calc(var(--shellui-drawer-gap) + var(--shellui-safe-area-bottom));
|
|
234
|
+
--shellui-drawer-left: calc(var(--shellui-drawer-gap) + var(--shellui-safe-area-left));
|
|
235
|
+
--shellui-drawer-max-width: calc(
|
|
236
|
+
100vw - var(--shellui-drawer-left) - var(--shellui-drawer-right)
|
|
237
|
+
);
|
|
238
|
+
--shellui-drawer-max-height: calc(
|
|
239
|
+
var(--shellui-app-height) - var(--shellui-drawer-top) - var(--shellui-drawer-bottom)
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
@media (min-width: 768px) {
|
|
243
|
+
:root {
|
|
244
|
+
--shellui-drawer-gap: 12px;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
/* macOS desktop: drawers clear the 32px strip and the default traffic lights. */
|
|
248
|
+
html[data-shellui-mac-chrome],
|
|
249
|
+
html[data-shellui-overlay-chrome] {
|
|
250
|
+
--shellui-drawer-top: calc(var(--shellui-mac-titlebar-h) + var(--shellui-drawer-gap));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/*
|
|
254
|
+
* Shared divider for the shell panels, per the layouts redesign kit
|
|
255
|
+
* (shell.css `.sbx .foot`, `.fside .head` / `.fside .foot`, `.startm .sh` /
|
|
256
|
+
* `.startm .sf`): a full-width 1px --shellui-hairline with no margin of its own.
|
|
257
|
+
* Inside a padded container, cancel the padding with negative inline margins
|
|
258
|
+
* (e.g. -mx-2) so it still runs edge to edge. Menus keep the shadcn separator
|
|
259
|
+
* (kit `.menu hr`: full bleed, --border).
|
|
260
|
+
*/
|
|
261
|
+
.shellui-divider {
|
|
262
|
+
flex-shrink: 0;
|
|
263
|
+
height: 1px;
|
|
264
|
+
border: 0;
|
|
265
|
+
background: var(--shellui-hairline);
|
|
266
|
+
}
|
|
267
|
+
|
|
117
268
|
/*
|
|
118
269
|
* Content padding that clears the notch / home indicator, then keeps the
|
|
119
270
|
* configured inset beyond that edge. Override with --shellui-safe-pad-x / -y.
|
|
@@ -138,30 +289,18 @@
|
|
|
138
289
|
--shellui-inset-right: 0px;
|
|
139
290
|
--shellui-inset-bottom: 0px;
|
|
140
291
|
--shellui-inset-left: 0px;
|
|
141
|
-
--shellui-floating-sidebar-radius:
|
|
292
|
+
--shellui-floating-sidebar-radius: var(--shellui-r-float);
|
|
142
293
|
/* Any positive --radius → huge radius (pill); 0 → square. */
|
|
143
294
|
--shellui-floating-mobile-radius: calc(var(--radius) * 999);
|
|
144
295
|
}
|
|
145
296
|
|
|
146
297
|
.shellui-floating-glass {
|
|
147
298
|
color: var(--sidebar-foreground);
|
|
148
|
-
background:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
color-mix(in oklch, white 16%, transparent) 100%
|
|
154
|
-
),
|
|
155
|
-
/* Frost from sidebar surface so chrome tracks theme, not raw background grey */
|
|
156
|
-
color-mix(in oklch, var(--sidebar) 82%, transparent);
|
|
157
|
-
backdrop-filter: blur(40px) saturate(160%);
|
|
158
|
-
-webkit-backdrop-filter: blur(40px) saturate(160%);
|
|
159
|
-
border: 1px solid color-mix(in oklch, var(--sidebar-border) 80%, transparent);
|
|
160
|
-
box-shadow:
|
|
161
|
-
0 1px 0 color-mix(in oklch, white 40%, transparent) inset,
|
|
162
|
-
0 -1px 0 color-mix(in oklch, black 6%, transparent) inset,
|
|
163
|
-
0 10px 32px color-mix(in oklch, black 14%, transparent),
|
|
164
|
-
0 2px 6px color-mix(in oklch, black 6%, transparent);
|
|
299
|
+
background: var(--shellui-glass);
|
|
300
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
301
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
302
|
+
border: 1px solid var(--shellui-glass-edge);
|
|
303
|
+
box-shadow: var(--shellui-glass-shadow);
|
|
165
304
|
}
|
|
166
305
|
|
|
167
306
|
.shellui-floating-sidebar-panel .shellui-floating-glass,
|
|
@@ -174,27 +313,10 @@
|
|
|
174
313
|
border-radius: 0;
|
|
175
314
|
}
|
|
176
315
|
|
|
177
|
-
.dark .shellui-floating-glass {
|
|
178
|
-
background:
|
|
179
|
-
linear-gradient(
|
|
180
|
-
145deg,
|
|
181
|
-
color-mix(in oklch, white 16%, transparent) 0%,
|
|
182
|
-
color-mix(in oklch, white 4%, transparent) 45%,
|
|
183
|
-
color-mix(in oklch, white 9%, transparent) 100%
|
|
184
|
-
),
|
|
185
|
-
color-mix(in oklch, var(--sidebar) 78%, transparent);
|
|
186
|
-
border-color: color-mix(in oklch, var(--sidebar-border) 90%, transparent);
|
|
187
|
-
box-shadow:
|
|
188
|
-
0 1px 0 color-mix(in oklch, white 12%, transparent) inset,
|
|
189
|
-
0 -1px 0 color-mix(in oklch, black 30%, transparent) inset,
|
|
190
|
-
0 14px 40px color-mix(in oklch, black 40%, transparent),
|
|
191
|
-
0 2px 8px color-mix(in oklch, black 22%, transparent);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
316
|
/* Desktop floating nav rows / chrome controls: match capped sidebar radius. */
|
|
195
317
|
.shellui-floating-sidebar-panel .shellui-floating-nav-item,
|
|
196
318
|
.shellui-floating-sidebar-panel .shellui-floating-nav-control {
|
|
197
|
-
border-radius: var(--shellui-floating-sidebar-radius);
|
|
319
|
+
border-radius: min(var(--shellui-floating-sidebar-radius), 10px);
|
|
198
320
|
}
|
|
199
321
|
|
|
200
322
|
/* Phone/tablet floating dock + pill FAB: binary radius (0 theme → square). */
|
|
@@ -351,7 +473,7 @@ html[data-shellui-chrome-hidden='true']
|
|
|
351
473
|
content: '';
|
|
352
474
|
position: absolute;
|
|
353
475
|
inset: 0;
|
|
354
|
-
border-radius:
|
|
476
|
+
border-radius: var(--shellui-r-card) var(--shellui-r-card) 0 0;
|
|
355
477
|
border: 1px solid var(--border);
|
|
356
478
|
border-bottom-width: 0;
|
|
357
479
|
box-shadow: 0 0 0 100vmax var(--shellui-inset-chrome);
|
|
@@ -837,10 +959,10 @@ html.shellui-theme-switching
|
|
|
837
959
|
* Do not set `transform: none` — enter/exit slide and swipe-dismiss own transform.
|
|
838
960
|
* Morph transitions omit `transform` so keyframes / drag aren’t fought. */
|
|
839
961
|
[data-dialog-content][data-presentation='sheet'] {
|
|
840
|
-
left:
|
|
841
|
-
right:
|
|
962
|
+
left: var(--shellui-drawer-left);
|
|
963
|
+
right: var(--shellui-drawer-right);
|
|
842
964
|
top: auto;
|
|
843
|
-
bottom:
|
|
965
|
+
bottom: var(--shellui-drawer-bottom);
|
|
844
966
|
transition-property:
|
|
845
967
|
width, height, max-width, max-height, border-radius, left, right, top, bottom, padding;
|
|
846
968
|
transition-duration: 220ms;
|
|
@@ -933,7 +1055,7 @@ html.shellui-theme-switching
|
|
|
933
1055
|
@keyframes responsive-modal-sheet-in {
|
|
934
1056
|
from {
|
|
935
1057
|
opacity: 1;
|
|
936
|
-
transform: translateY(100%);
|
|
1058
|
+
transform: translateY(calc(100% + var(--shellui-drawer-bottom) + 48px));
|
|
937
1059
|
}
|
|
938
1060
|
to {
|
|
939
1061
|
opacity: 1;
|
|
@@ -947,7 +1069,7 @@ html.shellui-theme-switching
|
|
|
947
1069
|
}
|
|
948
1070
|
to {
|
|
949
1071
|
opacity: 1;
|
|
950
|
-
transform: translateY(100%);
|
|
1072
|
+
transform: translateY(calc(100% + var(--shellui-drawer-bottom) + 48px));
|
|
951
1073
|
}
|
|
952
1074
|
}
|
|
953
1075
|
|
|
@@ -1050,7 +1172,7 @@ html.shellui-theme-switching
|
|
|
1050
1172
|
}
|
|
1051
1173
|
@keyframes sheet-content-in-left {
|
|
1052
1174
|
from {
|
|
1053
|
-
transform: translateX(-100%);
|
|
1175
|
+
transform: translateX(calc(-100% - var(--shellui-drawer-left) - 48px));
|
|
1054
1176
|
}
|
|
1055
1177
|
to {
|
|
1056
1178
|
transform: translateX(0);
|
|
@@ -1061,12 +1183,12 @@ html.shellui-theme-switching
|
|
|
1061
1183
|
transform: translateX(0);
|
|
1062
1184
|
}
|
|
1063
1185
|
to {
|
|
1064
|
-
transform: translateX(-100%);
|
|
1186
|
+
transform: translateX(calc(-100% - var(--shellui-drawer-left) - 48px));
|
|
1065
1187
|
}
|
|
1066
1188
|
}
|
|
1067
1189
|
@keyframes sheet-content-in-right {
|
|
1068
1190
|
from {
|
|
1069
|
-
transform: translateX(100%);
|
|
1191
|
+
transform: translateX(calc(100% + var(--shellui-drawer-right) + 48px));
|
|
1070
1192
|
}
|
|
1071
1193
|
to {
|
|
1072
1194
|
transform: translateX(0);
|
|
@@ -1077,12 +1199,12 @@ html.shellui-theme-switching
|
|
|
1077
1199
|
transform: translateX(0);
|
|
1078
1200
|
}
|
|
1079
1201
|
to {
|
|
1080
|
-
transform: translateX(100%);
|
|
1202
|
+
transform: translateX(calc(100% + var(--shellui-drawer-right) + 48px));
|
|
1081
1203
|
}
|
|
1082
1204
|
}
|
|
1083
1205
|
@keyframes sheet-content-in-top {
|
|
1084
1206
|
from {
|
|
1085
|
-
transform: translateY(-100%);
|
|
1207
|
+
transform: translateY(calc(-100% - var(--shellui-drawer-top) - 48px));
|
|
1086
1208
|
}
|
|
1087
1209
|
to {
|
|
1088
1210
|
transform: translateY(0);
|
|
@@ -1093,12 +1215,12 @@ html.shellui-theme-switching
|
|
|
1093
1215
|
transform: translateY(0);
|
|
1094
1216
|
}
|
|
1095
1217
|
to {
|
|
1096
|
-
transform: translateY(-100%);
|
|
1218
|
+
transform: translateY(calc(-100% - var(--shellui-drawer-top) - 48px));
|
|
1097
1219
|
}
|
|
1098
1220
|
}
|
|
1099
1221
|
@keyframes sheet-content-in-bottom {
|
|
1100
1222
|
from {
|
|
1101
|
-
transform: translateY(100%);
|
|
1223
|
+
transform: translateY(calc(100% + var(--shellui-drawer-bottom) + 48px));
|
|
1102
1224
|
}
|
|
1103
1225
|
to {
|
|
1104
1226
|
transform: translateY(0);
|
|
@@ -1109,7 +1231,7 @@ html.shellui-theme-switching
|
|
|
1109
1231
|
transform: translateY(0);
|
|
1110
1232
|
}
|
|
1111
1233
|
to {
|
|
1112
|
-
transform: translateY(100%);
|
|
1234
|
+
transform: translateY(calc(100% + var(--shellui-drawer-bottom) + 48px));
|
|
1113
1235
|
}
|
|
1114
1236
|
}
|
|
1115
1237
|
|
|
@@ -1154,6 +1276,78 @@ html.shellui-theme-switching
|
|
|
1154
1276
|
pointer-events: none;
|
|
1155
1277
|
}
|
|
1156
1278
|
|
|
1279
|
+
/*
|
|
1280
|
+
* Floating drawers (vaul). Offsets, radius, border and shadow live on the
|
|
1281
|
+
* drawerContentByDirection classes. The closed position adds the edge offset
|
|
1282
|
+
* plus 48px so no strip of panel or shadow stays on screen as it slides.
|
|
1283
|
+
*/
|
|
1284
|
+
[data-drawer-content][data-drawer-direction='right'] {
|
|
1285
|
+
--initial-transform: calc(100% + var(--shellui-drawer-right) + 48px);
|
|
1286
|
+
}
|
|
1287
|
+
[data-drawer-content][data-drawer-direction='left'] {
|
|
1288
|
+
--initial-transform: calc(100% + var(--shellui-drawer-left) + 48px);
|
|
1289
|
+
}
|
|
1290
|
+
[data-drawer-content][data-drawer-direction='top'] {
|
|
1291
|
+
--initial-transform: calc(100% + var(--shellui-drawer-top) + 48px);
|
|
1292
|
+
}
|
|
1293
|
+
[data-drawer-content][data-drawer-direction='bottom'] {
|
|
1294
|
+
--initial-transform: calc(100% + var(--shellui-drawer-bottom) + 48px);
|
|
1295
|
+
}
|
|
1296
|
+
/* vaul paints a 200% ::after past the anchored edge; it would fill the gap. */
|
|
1297
|
+
[data-drawer-content]::after {
|
|
1298
|
+
content: none !important;
|
|
1299
|
+
}
|
|
1300
|
+
/* macOS desktop: the scrim starts under the 32px strip so the lights and window drag keep working. */
|
|
1301
|
+
html[data-shellui-mac-chrome] [data-drawer-overlay],
|
|
1302
|
+
html[data-shellui-overlay-chrome] [data-drawer-overlay] {
|
|
1303
|
+
top: var(--shellui-mac-titlebar-h);
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
@keyframes shellui-drawer-fade-in {
|
|
1307
|
+
from {
|
|
1308
|
+
opacity: 0;
|
|
1309
|
+
}
|
|
1310
|
+
to {
|
|
1311
|
+
opacity: 1;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
@keyframes shellui-drawer-fade-out {
|
|
1315
|
+
from {
|
|
1316
|
+
opacity: 1;
|
|
1317
|
+
}
|
|
1318
|
+
to {
|
|
1319
|
+
opacity: 0;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
/* Reduced motion: drawers and sheets fade in place instead of sliding. !important beats vaul's injected slide rules. */
|
|
1324
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1325
|
+
[data-drawer-content] {
|
|
1326
|
+
--initial-transform: 0px;
|
|
1327
|
+
transition: none !important;
|
|
1328
|
+
}
|
|
1329
|
+
[data-drawer-content][data-state='open'] {
|
|
1330
|
+
animation: shellui-drawer-fade-in 150ms ease-out both !important;
|
|
1331
|
+
}
|
|
1332
|
+
[data-drawer-content][data-state='closed'] {
|
|
1333
|
+
animation: shellui-drawer-fade-out 120ms ease-in both !important;
|
|
1334
|
+
}
|
|
1335
|
+
[data-sheet-content][data-side][data-state='open'] {
|
|
1336
|
+
animation: shellui-drawer-fade-in 150ms ease-out both;
|
|
1337
|
+
}
|
|
1338
|
+
[data-sheet-content][data-side][data-state='closed'] {
|
|
1339
|
+
animation: shellui-drawer-fade-out 120ms ease-in both;
|
|
1340
|
+
}
|
|
1341
|
+
[data-dialog-content][data-presentation='sheet'][data-state='open'][data-enter-motion] {
|
|
1342
|
+
animation: shellui-drawer-fade-in 150ms ease-out;
|
|
1343
|
+
}
|
|
1344
|
+
[data-dialog-content][data-presentation='sheet'][data-state='closed']:not(
|
|
1345
|
+
[data-dismiss='swipe']
|
|
1346
|
+
) {
|
|
1347
|
+
animation: shellui-drawer-fade-out 120ms ease-in forwards;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1157
1351
|
/* Cookie consent dialog (bottom-left) animations */
|
|
1158
1352
|
@keyframes cookie-dialog-content-in {
|
|
1159
1353
|
from {
|
|
@@ -1288,6 +1482,12 @@ html.shellui-theme-switching
|
|
|
1288
1482
|
animation: auth-menu-out 0.12s cubic-bezier(0.4, 0, 1, 1) both;
|
|
1289
1483
|
pointer-events: none;
|
|
1290
1484
|
}
|
|
1485
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1486
|
+
[data-auth-menu-content][data-state],
|
|
1487
|
+
[data-shellui-auth-loading] .animate-pulse {
|
|
1488
|
+
animation: none;
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1291
1491
|
|
|
1292
1492
|
/* Tauri overlay titlebar: drag via data-tauri-drag-region; keep controls clickable. */
|
|
1293
1493
|
[data-shellui-drag-region],
|
|
@@ -1307,9 +1507,65 @@ html.shellui-theme-switching
|
|
|
1307
1507
|
-webkit-app-region: no-drag;
|
|
1308
1508
|
}
|
|
1309
1509
|
|
|
1510
|
+
/*
|
|
1511
|
+
* macOS strip (rules v2). The traffic lights stay at the AppKit default; the shell adapts
|
|
1512
|
+
* to them. Strip 32px, lights centre 16px, drag-only safe area 80px from the left edge.
|
|
1513
|
+
* In native fullscreen AppKit hides the lights and the safe area collapses to 12px.
|
|
1514
|
+
*/
|
|
1515
|
+
html {
|
|
1516
|
+
--shellui-mac-titlebar-h: 32px;
|
|
1517
|
+
--shellui-mac-lights-cy: 16px;
|
|
1518
|
+
--shellui-mac-lights-safe: 12px;
|
|
1519
|
+
--shellui-titlebar-height: var(--shellui-mac-titlebar-h);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1310
1522
|
html[data-shellui-overlay-chrome] {
|
|
1311
|
-
--shellui-
|
|
1312
|
-
--shellui-traffic-lights-width:
|
|
1523
|
+
--shellui-mac-lights-safe: 80px;
|
|
1524
|
+
--shellui-traffic-lights-width: 68px;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.shellui-mac-safe {
|
|
1528
|
+
width: var(--shellui-mac-lights-safe, 80px);
|
|
1529
|
+
transition: width 200ms ease;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1533
|
+
.shellui-mac-safe {
|
|
1534
|
+
transition: none;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/* Strip controls: 24px boxes, 16px icons, centred on the lights line. */
|
|
1539
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item {
|
|
1540
|
+
height: 24px;
|
|
1541
|
+
font-size: 13px;
|
|
1542
|
+
}
|
|
1543
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item svg,
|
|
1544
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item img {
|
|
1545
|
+
width: 15px;
|
|
1546
|
+
height: 15px;
|
|
1547
|
+
}
|
|
1548
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-end,
|
|
1549
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] [data-shellui-strip-end] button {
|
|
1550
|
+
height: 24px;
|
|
1551
|
+
min-width: 24px;
|
|
1552
|
+
}
|
|
1553
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-end,
|
|
1554
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] [data-shellui-strip-end] button.size-7 {
|
|
1555
|
+
width: 24px;
|
|
1556
|
+
}
|
|
1557
|
+
html[data-shellui-mac-chrome]
|
|
1558
|
+
[data-shellui-mac-strip]
|
|
1559
|
+
[data-shellui-strip-end]
|
|
1560
|
+
[data-slot='avatar'] {
|
|
1561
|
+
width: 22px;
|
|
1562
|
+
height: 22px;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
/* Inactive window: AppKit greys the lights, the strip text follows. */
|
|
1566
|
+
html[data-shellui-window-inactive] [data-shellui-mac-strip],
|
|
1567
|
+
html[data-shellui-window-inactive] [data-shellui-mac-strip] :is(button, a, span) {
|
|
1568
|
+
color: var(--shellui-nav-label);
|
|
1313
1569
|
}
|
|
1314
1570
|
|
|
1315
1571
|
/* Keep sidebar chrome above the full-width drag strip so Back / trigger stay clickable. */
|
|
@@ -1320,9 +1576,9 @@ html[data-shellui-overlay-chrome] [data-slot='sidebar-container'] {
|
|
|
1320
1576
|
/*
|
|
1321
1577
|
* Tablet / desktop: fixed shell sidebar sits below the layout safe-area strip.
|
|
1322
1578
|
* Only when the root (non-iframe) layout advertised the topbar via
|
|
1323
|
-
* data-shellui-safe-area-topbar.
|
|
1324
|
-
*
|
|
1325
|
-
*
|
|
1579
|
+
* data-shellui-safe-area-topbar. Drawers clear the inset through
|
|
1580
|
+
* --shellui-drawer-top, which already includes the safe area.
|
|
1581
|
+
* Height is 0 when env(safe-area-inset-top) is 0.
|
|
1326
1582
|
*/
|
|
1327
1583
|
@media (min-width: 768px) {
|
|
1328
1584
|
html[data-shellui-safe-area-topbar]
|
|
@@ -1334,31 +1590,16 @@ html[data-shellui-overlay-chrome] [data-slot='sidebar-container'] {
|
|
|
1334
1590
|
bottom: auto;
|
|
1335
1591
|
height: calc(var(--shellui-app-height, 100dvh) - var(--shellui-safe-area-top));
|
|
1336
1592
|
}
|
|
1337
|
-
|
|
1338
|
-
html[data-shellui-safe-area-topbar] [data-drawer-content][data-drawer-direction='left'],
|
|
1339
|
-
html[data-shellui-safe-area-topbar] [data-drawer-content][data-drawer-direction='right'] {
|
|
1340
|
-
top: var(--shellui-safe-area-top);
|
|
1341
|
-
bottom: 0;
|
|
1342
|
-
height: auto;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
/* Top drawer: sit below the safe-area band (no extra pt — offset replaces it). */
|
|
1346
|
-
html[data-shellui-safe-area-topbar] [data-drawer-content][data-drawer-direction='top'] {
|
|
1347
|
-
top: var(--shellui-safe-area-top);
|
|
1348
|
-
padding-top: 0;
|
|
1349
|
-
border-top-left-radius: 0.75rem;
|
|
1350
|
-
border-top-right-radius: 0.75rem;
|
|
1351
|
-
}
|
|
1352
1593
|
}
|
|
1353
1594
|
|
|
1354
|
-
/* Collapsed Tauri: full-width
|
|
1595
|
+
/* Collapsed Tauri: full-width 32px macOS strip; push sidebar + content below it. */
|
|
1355
1596
|
html[data-shellui-collapsed-titlebar]
|
|
1356
1597
|
[data-shellui-sidebar-layout]
|
|
1357
1598
|
> [data-slot='sidebar-wrapper']
|
|
1358
1599
|
> [data-slot='sidebar']
|
|
1359
1600
|
> [data-slot='sidebar-container'] {
|
|
1360
|
-
top: var(--shellui-titlebar-height,
|
|
1361
|
-
height: calc(var(--shellui-app-height, 100dvh) - var(--shellui-titlebar-height,
|
|
1601
|
+
top: var(--shellui-titlebar-height, 32px);
|
|
1602
|
+
height: calc(var(--shellui-app-height, 100dvh) - var(--shellui-titlebar-height, 32px));
|
|
1362
1603
|
}
|
|
1363
1604
|
|
|
1364
1605
|
html[data-shellui-collapsed-titlebar][data-shellui-safe-area-topbar]
|
|
@@ -1366,10 +1607,10 @@ html[data-shellui-collapsed-titlebar][data-shellui-safe-area-topbar]
|
|
|
1366
1607
|
> [data-slot='sidebar-wrapper']
|
|
1367
1608
|
> [data-slot='sidebar']
|
|
1368
1609
|
> [data-slot='sidebar-container'] {
|
|
1369
|
-
top: calc(var(--shellui-safe-area-top) + var(--shellui-titlebar-height,
|
|
1610
|
+
top: calc(var(--shellui-safe-area-top) + var(--shellui-titlebar-height, 32px));
|
|
1370
1611
|
height: calc(
|
|
1371
1612
|
var(--shellui-app-height, 100dvh) - var(--shellui-safe-area-top) -
|
|
1372
|
-
var(--shellui-titlebar-height,
|
|
1613
|
+
var(--shellui-titlebar-height, 32px)
|
|
1373
1614
|
);
|
|
1374
1615
|
}
|
|
1375
1616
|
|
|
@@ -1377,7 +1618,7 @@ html[data-shellui-collapsed-titlebar]
|
|
|
1377
1618
|
[data-shellui-sidebar-layout]:not([data-shellui-layout-variant='inset'])
|
|
1378
1619
|
> [data-slot='sidebar-wrapper']
|
|
1379
1620
|
> [data-slot='sidebar-inset'] {
|
|
1380
|
-
padding-top: var(--shellui-titlebar-height,
|
|
1621
|
+
padding-top: var(--shellui-titlebar-height, 32px);
|
|
1381
1622
|
}
|
|
1382
1623
|
|
|
1383
1624
|
/* Inset card keeps its own radius: sit the frame under the titlebar instead of
|
|
@@ -1386,7 +1627,7 @@ html[data-shellui-collapsed-titlebar]
|
|
|
1386
1627
|
[data-shellui-layout-variant='inset']
|
|
1387
1628
|
> [data-slot='sidebar-wrapper']
|
|
1388
1629
|
> [data-slot='sidebar-inset'] {
|
|
1389
|
-
margin-top: var(--shellui-titlebar-height,
|
|
1630
|
+
margin-top: var(--shellui-titlebar-height, 32px);
|
|
1390
1631
|
padding-top: 0;
|
|
1391
1632
|
}
|
|
1392
1633
|
|
|
@@ -1399,3 +1640,841 @@ html[data-shellui-safe-area-topbar] [data-shellui-collapsed-titlebar] {
|
|
|
1399
1640
|
[data-slot='sidebar-wrapper'][data-resizing] iframe {
|
|
1400
1641
|
pointer-events: none;
|
|
1401
1642
|
}
|
|
1643
|
+
|
|
1644
|
+
/*
|
|
1645
|
+
* Sidebar nav rows (sidebar and sidebar-inset, desktop column and mobile sheet).
|
|
1646
|
+
* `.shellui-nav` wraps SidebarContent and SidebarFooter in SidebarInner, so the
|
|
1647
|
+
* same rules reach the Sheet portal. Unlayered: wins over the shadcn utilities.
|
|
1648
|
+
*/
|
|
1649
|
+
.shellui-nav [data-sidebar='menu-button'] {
|
|
1650
|
+
height: 32px;
|
|
1651
|
+
padding-inline: 10px;
|
|
1652
|
+
gap: 10px;
|
|
1653
|
+
border-radius: var(--shellui-r-row);
|
|
1654
|
+
font-size: 13.5px;
|
|
1655
|
+
font-weight: 450;
|
|
1656
|
+
color: var(--shellui-nav-fg);
|
|
1657
|
+
transition:
|
|
1658
|
+
background-color 150ms var(--shellui-ease),
|
|
1659
|
+
color 150ms var(--shellui-ease);
|
|
1660
|
+
}
|
|
1661
|
+
.shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
|
|
1662
|
+
width: 16px;
|
|
1663
|
+
height: 16px;
|
|
1664
|
+
color: var(--shellui-nav-icon);
|
|
1665
|
+
transition: color 150ms var(--shellui-ease);
|
|
1666
|
+
}
|
|
1667
|
+
.shellui-nav [data-sidebar='menu-button']:hover,
|
|
1668
|
+
.shellui-nav [data-sidebar='menu-button']:active {
|
|
1669
|
+
background-color: var(--shellui-nav-hover);
|
|
1670
|
+
color: var(--sidebar-accent-foreground);
|
|
1671
|
+
}
|
|
1672
|
+
.shellui-nav [data-sidebar='menu-button']:hover .shellui-nav-icon {
|
|
1673
|
+
color: currentColor;
|
|
1674
|
+
}
|
|
1675
|
+
.shellui-nav [data-sidebar='menu-button'][data-active='true'],
|
|
1676
|
+
.shellui-nav [data-sidebar='menu-button'][data-active='true']:hover {
|
|
1677
|
+
background-color: var(--shellui-nav-active);
|
|
1678
|
+
color: var(--shellui-nav-active-fg);
|
|
1679
|
+
font-weight: 550;
|
|
1680
|
+
}
|
|
1681
|
+
.shellui-nav [data-sidebar='menu-button'][data-active='true'] .shellui-nav-icon {
|
|
1682
|
+
color: var(--shellui-nav-active-icon);
|
|
1683
|
+
}
|
|
1684
|
+
.shellui-nav [data-sidebar='menu-button']:focus-visible {
|
|
1685
|
+
outline: 2px solid var(--sidebar-ring);
|
|
1686
|
+
outline-offset: -2px;
|
|
1687
|
+
--tw-ring-shadow: 0 0 transparent;
|
|
1688
|
+
--tw-ring-offset-shadow: 0 0 transparent;
|
|
1689
|
+
}
|
|
1690
|
+
.shellui-nav .shellui-nav-label {
|
|
1691
|
+
height: auto;
|
|
1692
|
+
padding: 12px 10px 4px;
|
|
1693
|
+
font-size: 12px;
|
|
1694
|
+
font-weight: 600;
|
|
1695
|
+
text-transform: none;
|
|
1696
|
+
letter-spacing: 0;
|
|
1697
|
+
color: var(--shellui-nav-label);
|
|
1698
|
+
}
|
|
1699
|
+
.shellui-nav [data-sidebar='group'] {
|
|
1700
|
+
position: relative;
|
|
1701
|
+
}
|
|
1702
|
+
/* Collapsed rail: the hidden group label leaves a 24 x 1 px hairline (sidebar spec). */
|
|
1703
|
+
.group[data-collapsible='icon']
|
|
1704
|
+
.shellui-nav
|
|
1705
|
+
[data-sidebar='group']:has(.shellui-nav-label)::before {
|
|
1706
|
+
content: '';
|
|
1707
|
+
position: absolute;
|
|
1708
|
+
top: 4px;
|
|
1709
|
+
left: 50%;
|
|
1710
|
+
width: 24px;
|
|
1711
|
+
height: 1px;
|
|
1712
|
+
transform: translateX(-50%);
|
|
1713
|
+
background: var(--shellui-hairline);
|
|
1714
|
+
}
|
|
1715
|
+
.shellui-nav[data-shellui-nav-footer] {
|
|
1716
|
+
padding: 0 0 max(8px, var(--shellui-safe-area-bottom));
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
/* Rail: 2 px ring line on hover and while dragging. */
|
|
1720
|
+
[data-shellui-sidebar-layout] [data-sidebar='rail']:hover::after,
|
|
1721
|
+
[data-shellui-sidebar-layout]
|
|
1722
|
+
[data-slot='sidebar-wrapper'][data-resizing]
|
|
1723
|
+
[data-sidebar='rail']::after {
|
|
1724
|
+
background-color: var(--sidebar-ring);
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
/* Phones: sheet rows grow to touch size. */
|
|
1728
|
+
[data-mobile='true'] .shellui-nav [data-sidebar='menu-button'] {
|
|
1729
|
+
height: 44px;
|
|
1730
|
+
font-size: 15px;
|
|
1731
|
+
}
|
|
1732
|
+
[data-mobile='true'] .shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
|
|
1733
|
+
width: 18px;
|
|
1734
|
+
height: 18px;
|
|
1735
|
+
}
|
|
1736
|
+
[data-mobile='true'] .shellui-nav .shellui-nav-label {
|
|
1737
|
+
font-size: 12.5px;
|
|
1738
|
+
}
|
|
1739
|
+
[data-sheet-overlay]:has(+ [data-sidebar='sidebar'][data-mobile='true']) {
|
|
1740
|
+
background-color: var(--shellui-scrim);
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
/* Tauri desktop: denser rows, closer to native source lists. */
|
|
1744
|
+
@media (min-width: 768px) {
|
|
1745
|
+
html[data-shellui-host='tauri'] .shellui-nav [data-sidebar='menu-button'] {
|
|
1746
|
+
height: 30px;
|
|
1747
|
+
font-size: 13px;
|
|
1748
|
+
}
|
|
1749
|
+
html[data-shellui-host='tauri'] .shellui-nav .shellui-nav-label {
|
|
1750
|
+
font-size: 11.5px;
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1755
|
+
.shellui-nav [data-sidebar='menu-button'],
|
|
1756
|
+
.shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
|
|
1757
|
+
transition: none;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/*
|
|
1762
|
+
* Sidebar-inset: the column sits on the chrome tray, so hover uses a foreground
|
|
1763
|
+
* mix (accent is too close to the tray tint) and the active pill gets a 1 px lift.
|
|
1764
|
+
*/
|
|
1765
|
+
[data-shellui-layout-variant='inset'] .shellui-nav {
|
|
1766
|
+
--shellui-nav-hover: var(--shellui-nav-hover-inset);
|
|
1767
|
+
}
|
|
1768
|
+
[data-shellui-layout-variant='inset']
|
|
1769
|
+
.shellui-nav
|
|
1770
|
+
[data-sidebar='menu-button'][data-active='true'] {
|
|
1771
|
+
box-shadow: 0 1px 2px color-mix(in oklch, black 10%, transparent);
|
|
1772
|
+
}
|
|
1773
|
+
/* Inset: no footer hairline, the card edge already separates (sidebar-inset spec). */
|
|
1774
|
+
[data-shellui-layout-variant='inset']
|
|
1775
|
+
.shellui-nav[data-shellui-nav-footer]
|
|
1776
|
+
> [data-shellui-footer-divider] {
|
|
1777
|
+
background: transparent;
|
|
1778
|
+
}
|
|
1779
|
+
@media (min-width: 768px) {
|
|
1780
|
+
[data-shellui-layout-variant='inset'] [data-slot='sidebar-inset'] {
|
|
1781
|
+
border-radius: var(--shellui-r-card);
|
|
1782
|
+
box-shadow: 0 1px 2px color-mix(in oklch, black 5%, transparent);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
/*
|
|
1787
|
+
* App bar (app-bar and app-bar-inset): nav items, end buttons and menus.
|
|
1788
|
+
* Underline marks the active item; the inset bar uses a raised pill instead.
|
|
1789
|
+
*/
|
|
1790
|
+
.shellui-appbar-item,
|
|
1791
|
+
.shellui-appbar-end {
|
|
1792
|
+
position: relative;
|
|
1793
|
+
border-radius: var(--shellui-r-row);
|
|
1794
|
+
color: var(--shellui-dock-dim);
|
|
1795
|
+
transition:
|
|
1796
|
+
background-color 150ms var(--shellui-ease),
|
|
1797
|
+
color 150ms var(--shellui-ease);
|
|
1798
|
+
}
|
|
1799
|
+
.shellui-appbar-item {
|
|
1800
|
+
padding-inline: 10px;
|
|
1801
|
+
font-size: 13.5px;
|
|
1802
|
+
font-weight: 500;
|
|
1803
|
+
}
|
|
1804
|
+
.shellui-appbar-item:hover,
|
|
1805
|
+
.shellui-appbar-item[aria-expanded='true'],
|
|
1806
|
+
.shellui-appbar-end:hover {
|
|
1807
|
+
background-color: var(--shellui-nav-hover);
|
|
1808
|
+
color: var(--sidebar-foreground);
|
|
1809
|
+
}
|
|
1810
|
+
.shellui-appbar-item.is-active,
|
|
1811
|
+
.shellui-appbar-end.is-active {
|
|
1812
|
+
color: var(--sidebar-foreground);
|
|
1813
|
+
font-weight: 600;
|
|
1814
|
+
}
|
|
1815
|
+
.shellui-appbar-item.is-active::after {
|
|
1816
|
+
content: '';
|
|
1817
|
+
position: absolute;
|
|
1818
|
+
left: 10px;
|
|
1819
|
+
right: 10px;
|
|
1820
|
+
bottom: 0;
|
|
1821
|
+
height: 2px;
|
|
1822
|
+
border-radius: 2px;
|
|
1823
|
+
background: var(--shellui-nav-indicator);
|
|
1824
|
+
}
|
|
1825
|
+
.shellui-appbar-end.is-active {
|
|
1826
|
+
background-color: var(--shellui-nav-hover);
|
|
1827
|
+
}
|
|
1828
|
+
/*
|
|
1829
|
+
* Web bar (56px, 6px top pad, 1px border): the underline sits on the bar's bottom
|
|
1830
|
+
* border, half the leftover height below the item. Tauri keeps it at the item bottom.
|
|
1831
|
+
*/
|
|
1832
|
+
html:not([data-shellui-host='tauri'])
|
|
1833
|
+
[data-shellui-app-bar-layout]
|
|
1834
|
+
> header
|
|
1835
|
+
.shellui-appbar-item.is-active::after,
|
|
1836
|
+
html:not([data-shellui-host='tauri'])
|
|
1837
|
+
[data-shellui-mobile-chrome-stack]
|
|
1838
|
+
> header[data-layout]
|
|
1839
|
+
.shellui-appbar-item.is-active::after {
|
|
1840
|
+
bottom: calc((var(--shellui-appbar-item-h, 32px) - 49px) / 2 - 1px);
|
|
1841
|
+
}
|
|
1842
|
+
@media (max-width: 767px) {
|
|
1843
|
+
[data-shellui-app-bar-layout] .shellui-appbar-item {
|
|
1844
|
+
--shellui-appbar-item-h: 40px;
|
|
1845
|
+
height: 40px;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
.shellui-appbar-item:focus-visible,
|
|
1849
|
+
.shellui-appbar-end:focus-visible {
|
|
1850
|
+
outline: 2px solid var(--sidebar-ring);
|
|
1851
|
+
outline-offset: -2px;
|
|
1852
|
+
--tw-ring-shadow: 0 0 transparent;
|
|
1853
|
+
--tw-ring-offset-shadow: 0 0 transparent;
|
|
1854
|
+
}
|
|
1855
|
+
.shellui-appbar-menu {
|
|
1856
|
+
padding: 4px;
|
|
1857
|
+
border-radius: calc(var(--radius) + 2px);
|
|
1858
|
+
border: 1px solid var(--border);
|
|
1859
|
+
box-shadow:
|
|
1860
|
+
0 12px 32px -8px color-mix(in oklch, black 22%, transparent),
|
|
1861
|
+
0 2px 6px color-mix(in oklch, black 8%, transparent);
|
|
1862
|
+
}
|
|
1863
|
+
.shellui-appbar-menu .shellui-appbar-menu-item {
|
|
1864
|
+
min-height: 32px;
|
|
1865
|
+
font-size: 13.5px;
|
|
1866
|
+
border-radius: var(--shellui-r-row);
|
|
1867
|
+
}
|
|
1868
|
+
.shellui-appbar-menu .shellui-appbar-menu-item > :first-child:is(svg, img, span[aria-hidden]) {
|
|
1869
|
+
color: var(--muted-foreground);
|
|
1870
|
+
}
|
|
1871
|
+
.shellui-appbar-menu .shellui-appbar-menu-item.is-active {
|
|
1872
|
+
background-color: var(--accent);
|
|
1873
|
+
color: var(--accent-foreground);
|
|
1874
|
+
font-weight: 550;
|
|
1875
|
+
}
|
|
1876
|
+
.shellui-appbar-menu .shellui-appbar-menu-label {
|
|
1877
|
+
font-size: 12px;
|
|
1878
|
+
font-weight: 600;
|
|
1879
|
+
}
|
|
1880
|
+
@media (max-width: 767px) {
|
|
1881
|
+
.shellui-appbar-menu .shellui-appbar-menu-item {
|
|
1882
|
+
min-height: 44px;
|
|
1883
|
+
font-size: 15px;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
@media (min-width: 768px) {
|
|
1887
|
+
html[data-shellui-host='tauri'] .shellui-appbar-item {
|
|
1888
|
+
height: 30px;
|
|
1889
|
+
font-size: 13px;
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
[data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] {
|
|
1894
|
+
--shellui-nav-hover: var(--shellui-nav-hover-inset);
|
|
1895
|
+
}
|
|
1896
|
+
[data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] .shellui-appbar-item.is-active {
|
|
1897
|
+
background-color: var(--background);
|
|
1898
|
+
box-shadow:
|
|
1899
|
+
0 0 0 1px var(--border),
|
|
1900
|
+
0 1px 2px color-mix(in oklch, black 8%, transparent);
|
|
1901
|
+
}
|
|
1902
|
+
[data-shellui-app-bar-layout][data-shellui-layout-variant='inset']
|
|
1903
|
+
.shellui-appbar-item.is-active::after {
|
|
1904
|
+
content: none;
|
|
1905
|
+
}
|
|
1906
|
+
@media (min-width: 768px) {
|
|
1907
|
+
[data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] > main {
|
|
1908
|
+
border-radius: var(--shellui-r-card);
|
|
1909
|
+
box-shadow: 0 1px 2px color-mix(in oklch, black 5%, transparent);
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1914
|
+
.shellui-appbar-item,
|
|
1915
|
+
.shellui-appbar-end {
|
|
1916
|
+
transition: none;
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
/*
|
|
1921
|
+
* Floating layout: desktop glass sidebar rows, phone / tablet dock, More sheet.
|
|
1922
|
+
*/
|
|
1923
|
+
.shellui-floating-nav-item {
|
|
1924
|
+
font-size: 13.5px;
|
|
1925
|
+
font-weight: 450;
|
|
1926
|
+
color: var(--shellui-nav-fg);
|
|
1927
|
+
transition:
|
|
1928
|
+
background-color 150ms var(--shellui-ease),
|
|
1929
|
+
color 150ms var(--shellui-ease);
|
|
1930
|
+
}
|
|
1931
|
+
.shellui-floating-nav-item .shellui-nav-icon {
|
|
1932
|
+
color: var(--shellui-nav-icon);
|
|
1933
|
+
}
|
|
1934
|
+
.shellui-floating-nav-item:hover {
|
|
1935
|
+
background-color: var(--shellui-nav-hover);
|
|
1936
|
+
color: var(--sidebar-accent-foreground);
|
|
1937
|
+
}
|
|
1938
|
+
.shellui-floating-nav-item:hover .shellui-nav-icon {
|
|
1939
|
+
color: currentColor;
|
|
1940
|
+
}
|
|
1941
|
+
.shellui-floating-nav-item.is-active,
|
|
1942
|
+
.shellui-floating-nav-item.is-active:hover {
|
|
1943
|
+
background-color: var(--shellui-nav-active);
|
|
1944
|
+
color: var(--shellui-nav-active-fg);
|
|
1945
|
+
font-weight: 550;
|
|
1946
|
+
}
|
|
1947
|
+
.shellui-floating-nav-item.is-active .shellui-nav-icon {
|
|
1948
|
+
color: var(--shellui-nav-active-icon);
|
|
1949
|
+
}
|
|
1950
|
+
.shellui-floating-nav-item:focus-visible,
|
|
1951
|
+
.shellui-floating-nav-control:focus-visible {
|
|
1952
|
+
outline: 2px solid var(--sidebar-ring);
|
|
1953
|
+
outline-offset: -2px;
|
|
1954
|
+
}
|
|
1955
|
+
.shellui-floating-nav-label {
|
|
1956
|
+
font-size: 12px;
|
|
1957
|
+
font-weight: 600;
|
|
1958
|
+
text-transform: none;
|
|
1959
|
+
letter-spacing: 0;
|
|
1960
|
+
color: var(--shellui-nav-label);
|
|
1961
|
+
}
|
|
1962
|
+
@media (min-width: 768px) {
|
|
1963
|
+
html[data-shellui-host='tauri'] .shellui-floating-nav-item {
|
|
1964
|
+
height: 30px;
|
|
1965
|
+
font-size: 13px;
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
.shellui-dock-tab {
|
|
1970
|
+
color: var(--shellui-dock-dim);
|
|
1971
|
+
-webkit-tap-highlight-color: transparent;
|
|
1972
|
+
user-select: none;
|
|
1973
|
+
-webkit-user-select: none;
|
|
1974
|
+
-webkit-touch-callout: none;
|
|
1975
|
+
touch-action: manipulation;
|
|
1976
|
+
min-height: 48px;
|
|
1977
|
+
}
|
|
1978
|
+
.shellui-dock-tab:focus-visible {
|
|
1979
|
+
outline: none;
|
|
1980
|
+
--tw-ring-shadow: 0 0 transparent;
|
|
1981
|
+
--tw-ring-offset-shadow: 0 0 transparent;
|
|
1982
|
+
}
|
|
1983
|
+
.shellui-dock-tab .shellui-dock-label {
|
|
1984
|
+
font-size: 11px;
|
|
1985
|
+
line-height: 13px;
|
|
1986
|
+
font-weight: 500;
|
|
1987
|
+
letter-spacing: 0.01em;
|
|
1988
|
+
}
|
|
1989
|
+
[data-dock-align='center'] .shellui-dock-tab .shellui-dock-label {
|
|
1990
|
+
font-size: 12px;
|
|
1991
|
+
line-height: 15px;
|
|
1992
|
+
}
|
|
1993
|
+
.shellui-dock-capsule {
|
|
1994
|
+
width: 52px;
|
|
1995
|
+
height: 28px;
|
|
1996
|
+
flex-shrink: 0;
|
|
1997
|
+
border-radius: var(--shellui-floating-mobile-radius);
|
|
1998
|
+
transition:
|
|
1999
|
+
background-color 240ms var(--shellui-ease),
|
|
2000
|
+
transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
2001
|
+
}
|
|
2002
|
+
.shellui-dock-capsule .shellui-dock-glyph {
|
|
2003
|
+
width: 21px;
|
|
2004
|
+
height: 21px;
|
|
2005
|
+
}
|
|
2006
|
+
.shellui-dock-tab[data-state='active'] {
|
|
2007
|
+
color: var(--sidebar-foreground);
|
|
2008
|
+
}
|
|
2009
|
+
.shellui-dock-tab[data-state='active'] .shellui-dock-label {
|
|
2010
|
+
font-weight: 650;
|
|
2011
|
+
}
|
|
2012
|
+
.shellui-dock-tab[data-state='active'] .shellui-dock-capsule {
|
|
2013
|
+
background-color: var(--shellui-dock-capsule);
|
|
2014
|
+
}
|
|
2015
|
+
.shellui-dock-tab:active .shellui-dock-capsule {
|
|
2016
|
+
transform: scale(0.9);
|
|
2017
|
+
background-color: color-mix(in oklch, var(--sidebar-foreground) 10%, transparent);
|
|
2018
|
+
transition-duration: 90ms;
|
|
2019
|
+
transition-timing-function: ease-out;
|
|
2020
|
+
}
|
|
2021
|
+
.shellui-dock-tab:active {
|
|
2022
|
+
color: var(--sidebar-foreground);
|
|
2023
|
+
}
|
|
2024
|
+
.shellui-dock-tab:focus-visible .shellui-dock-capsule {
|
|
2025
|
+
outline: 2px solid var(--sidebar-ring);
|
|
2026
|
+
outline-offset: 1px;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
/* Phone More sheet (vaul). */
|
|
2030
|
+
.shellui-more-sheet {
|
|
2031
|
+
left: calc(8px + var(--shellui-safe-area-left));
|
|
2032
|
+
right: calc(8px + var(--shellui-safe-area-right));
|
|
2033
|
+
bottom: calc(8px + var(--shellui-safe-area-bottom));
|
|
2034
|
+
padding-top: 8px;
|
|
2035
|
+
border-radius: var(--shellui-sheet-radius);
|
|
2036
|
+
background: color-mix(in oklch, var(--sidebar) 92%, transparent);
|
|
2037
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2038
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2039
|
+
border: 1px solid var(--shellui-glass-edge);
|
|
2040
|
+
box-shadow: var(--shellui-glass-shadow);
|
|
2041
|
+
}
|
|
2042
|
+
.shellui-more-sheet-handle {
|
|
2043
|
+
width: 36px;
|
|
2044
|
+
height: 5px;
|
|
2045
|
+
margin-bottom: 6px;
|
|
2046
|
+
border-radius: 999px;
|
|
2047
|
+
background: color-mix(in oklch, var(--sidebar-foreground) 22%, transparent);
|
|
2048
|
+
}
|
|
2049
|
+
/* More sheet group label (sidebar sheet label size, 12.5px / 600). */
|
|
2050
|
+
.shellui-more-sheet-label {
|
|
2051
|
+
padding: 14px 12px 4px;
|
|
2052
|
+
font-size: 12.5px;
|
|
2053
|
+
font-weight: 600;
|
|
2054
|
+
color: var(--shellui-nav-label);
|
|
2055
|
+
}
|
|
2056
|
+
.shellui-more-sheet-row {
|
|
2057
|
+
min-height: 48px;
|
|
2058
|
+
padding-inline: 12px;
|
|
2059
|
+
border-radius: min(var(--shellui-r-float), 12px);
|
|
2060
|
+
font-size: 15.5px;
|
|
2061
|
+
color: var(--sidebar-foreground);
|
|
2062
|
+
-webkit-tap-highlight-color: transparent;
|
|
2063
|
+
}
|
|
2064
|
+
.shellui-more-sheet-row .shellui-dock-glyph {
|
|
2065
|
+
width: 20px;
|
|
2066
|
+
height: 20px;
|
|
2067
|
+
color: var(--shellui-nav-icon);
|
|
2068
|
+
}
|
|
2069
|
+
.shellui-more-sheet-row:active,
|
|
2070
|
+
.shellui-more-sheet-row:hover {
|
|
2071
|
+
background-color: var(--shellui-nav-hover);
|
|
2072
|
+
}
|
|
2073
|
+
.shellui-more-sheet-row[data-active='true'] {
|
|
2074
|
+
background-color: var(--shellui-dock-capsule);
|
|
2075
|
+
font-weight: 600;
|
|
2076
|
+
}
|
|
2077
|
+
.shellui-more-sheet-row:focus-visible {
|
|
2078
|
+
outline: 2px solid var(--sidebar-ring);
|
|
2079
|
+
outline-offset: -2px;
|
|
2080
|
+
}
|
|
2081
|
+
.shellui-more-sheet-account:empty {
|
|
2082
|
+
display: none;
|
|
2083
|
+
}
|
|
2084
|
+
/* Account row: 48 px in the mobile sidebar sheet, 56 px with a 32 px avatar in the More sheet. */
|
|
2085
|
+
[data-mobile='true'] .shellui-account-row {
|
|
2086
|
+
height: 3rem;
|
|
2087
|
+
}
|
|
2088
|
+
.shellui-more-sheet-account .shellui-account-row {
|
|
2089
|
+
height: 3.5rem;
|
|
2090
|
+
padding-inline: 0.75rem;
|
|
2091
|
+
font-size: 15px;
|
|
2092
|
+
}
|
|
2093
|
+
.shellui-more-sheet-account .shellui-account-row [data-shellui-account-initials],
|
|
2094
|
+
.shellui-more-sheet-account .shellui-account-row img {
|
|
2095
|
+
width: 2rem;
|
|
2096
|
+
height: 2rem;
|
|
2097
|
+
font-size: 12px;
|
|
2098
|
+
}
|
|
2099
|
+
/* vaul paints an ::after below bottom drawers; the sheet floats, so drop it. */
|
|
2100
|
+
.shellui-more-sheet::after {
|
|
2101
|
+
content: none !important;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
/* Soft keyboard open: dock and FAB step aside (same slide as scroll hide). */
|
|
2105
|
+
html[data-shellui-keyboard='open'] [data-shellui-floating-dock],
|
|
2106
|
+
html[data-shellui-keyboard='open']
|
|
2107
|
+
[data-shellui-chrome-actions-fab][data-shellui-floating-fab='true'] {
|
|
2108
|
+
translate: 0 120%;
|
|
2109
|
+
opacity: 0;
|
|
2110
|
+
pointer-events: none;
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
2114
|
+
.shellui-more-sheet {
|
|
2115
|
+
background: var(--shellui-glass-solid);
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
2119
|
+
.shellui-more-sheet {
|
|
2120
|
+
background: var(--shellui-glass-solid);
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2125
|
+
.shellui-floating-nav-item,
|
|
2126
|
+
.shellui-dock-capsule {
|
|
2127
|
+
transition: none;
|
|
2128
|
+
}
|
|
2129
|
+
.shellui-dock-tab:active .shellui-dock-capsule {
|
|
2130
|
+
transform: none;
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
/*
|
|
2135
|
+
* Windows layout: calm desktop, opaque cards, glass taskbar and start menu.
|
|
2136
|
+
*/
|
|
2137
|
+
[data-shellui-windows-layout] .shellui-desk-wash {
|
|
2138
|
+
background-image:
|
|
2139
|
+
radial-gradient(ellipse 90% 60% at 20% 112%, var(--shellui-desk-wash), transparent 62%),
|
|
2140
|
+
radial-gradient(
|
|
2141
|
+
ellipse 70% 50% at 80% 118%,
|
|
2142
|
+
color-mix(in oklch, var(--primary) 7%, transparent),
|
|
2143
|
+
transparent 64%
|
|
2144
|
+
);
|
|
2145
|
+
}
|
|
2146
|
+
/* Static dot grid: reduced motion, and the frame before the canvas mounts. */
|
|
2147
|
+
[data-shellui-desk-dots]:not([data-live])::before {
|
|
2148
|
+
content: '';
|
|
2149
|
+
position: absolute;
|
|
2150
|
+
inset: 0;
|
|
2151
|
+
background-image: radial-gradient(
|
|
2152
|
+
circle at center,
|
|
2153
|
+
var(--shellui-desk-dot) 1.1px,
|
|
2154
|
+
transparent 1.6px
|
|
2155
|
+
);
|
|
2156
|
+
background-size: 24px 24px;
|
|
2157
|
+
background-position: center 0;
|
|
2158
|
+
}
|
|
2159
|
+
.shellui-win {
|
|
2160
|
+
background: var(--card);
|
|
2161
|
+
color: var(--card-foreground);
|
|
2162
|
+
border: 1px solid var(--border);
|
|
2163
|
+
border-radius: calc(var(--radius) + 4px);
|
|
2164
|
+
box-shadow: var(--shellui-win-shadow-idle);
|
|
2165
|
+
}
|
|
2166
|
+
.shellui-win.is-focused {
|
|
2167
|
+
border-color: color-mix(in oklch, var(--border) 92%, var(--foreground));
|
|
2168
|
+
box-shadow: var(--shellui-win-shadow);
|
|
2169
|
+
}
|
|
2170
|
+
.shellui-win.is-flat {
|
|
2171
|
+
border: 0;
|
|
2172
|
+
border-radius: 0;
|
|
2173
|
+
box-shadow: none;
|
|
2174
|
+
}
|
|
2175
|
+
.shellui-win-titlebar {
|
|
2176
|
+
min-height: 36px;
|
|
2177
|
+
background: var(--card);
|
|
2178
|
+
border-bottom: 1px solid var(--border);
|
|
2179
|
+
font-size: 13px;
|
|
2180
|
+
font-weight: 600;
|
|
2181
|
+
}
|
|
2182
|
+
.shellui-win:not(.is-focused) .shellui-win-titlebar {
|
|
2183
|
+
color: var(--muted-foreground);
|
|
2184
|
+
font-weight: 550;
|
|
2185
|
+
}
|
|
2186
|
+
.shellui-win-tile {
|
|
2187
|
+
width: 18px;
|
|
2188
|
+
height: 18px;
|
|
2189
|
+
}
|
|
2190
|
+
.shellui-win-control {
|
|
2191
|
+
display: inline-flex;
|
|
2192
|
+
align-items: center;
|
|
2193
|
+
justify-content: center;
|
|
2194
|
+
width: 28px;
|
|
2195
|
+
height: 28px;
|
|
2196
|
+
border-radius: var(--shellui-r-row);
|
|
2197
|
+
color: var(--muted-foreground);
|
|
2198
|
+
cursor: pointer;
|
|
2199
|
+
transition:
|
|
2200
|
+
background-color 120ms var(--shellui-ease-out),
|
|
2201
|
+
color 120ms var(--shellui-ease-out);
|
|
2202
|
+
}
|
|
2203
|
+
.shellui-win-control:hover {
|
|
2204
|
+
background: var(--accent);
|
|
2205
|
+
color: var(--accent-foreground);
|
|
2206
|
+
}
|
|
2207
|
+
.shellui-win-control.shellui-win-close:hover {
|
|
2208
|
+
background: var(--destructive);
|
|
2209
|
+
color: var(--destructive-foreground, white);
|
|
2210
|
+
}
|
|
2211
|
+
.shellui-win.is-flat .shellui-win-control {
|
|
2212
|
+
width: 40px;
|
|
2213
|
+
height: 40px;
|
|
2214
|
+
}
|
|
2215
|
+
.shellui-win.is-flat .shellui-win-control svg {
|
|
2216
|
+
width: 18px;
|
|
2217
|
+
height: 18px;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
/*
|
|
2221
|
+
* The taskbar glass sits on a pseudo element: a backdrop-filter on the bar itself
|
|
2222
|
+
* would become the backdrop root of the start menu and stop its blur at the bar.
|
|
2223
|
+
*/
|
|
2224
|
+
.shellui-taskbar {
|
|
2225
|
+
color: var(--sidebar-foreground);
|
|
2226
|
+
}
|
|
2227
|
+
.shellui-taskbar::before {
|
|
2228
|
+
content: '';
|
|
2229
|
+
position: absolute;
|
|
2230
|
+
inset: 0;
|
|
2231
|
+
z-index: -1;
|
|
2232
|
+
background: var(--shellui-glass);
|
|
2233
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2234
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2235
|
+
border-top: 1px solid var(--shellui-glass-edge);
|
|
2236
|
+
pointer-events: none;
|
|
2237
|
+
}
|
|
2238
|
+
.shellui-windows-strip {
|
|
2239
|
+
background: var(--shellui-glass);
|
|
2240
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2241
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2242
|
+
border-bottom: 1px solid var(--shellui-glass-edge);
|
|
2243
|
+
}
|
|
2244
|
+
/* Centred on the window, text only: drag passes through to the strip. */
|
|
2245
|
+
.shellui-windows-strip-title {
|
|
2246
|
+
position: absolute;
|
|
2247
|
+
left: 50%;
|
|
2248
|
+
top: 50%;
|
|
2249
|
+
max-width: calc(100% - 2 * 180px);
|
|
2250
|
+
transform: translate(-50%, -50%);
|
|
2251
|
+
font-size: 12.5px;
|
|
2252
|
+
font-weight: 600;
|
|
2253
|
+
color: var(--sidebar-foreground);
|
|
2254
|
+
pointer-events: none;
|
|
2255
|
+
}
|
|
2256
|
+
.shellui-start {
|
|
2257
|
+
display: flex;
|
|
2258
|
+
align-items: center;
|
|
2259
|
+
gap: 8px;
|
|
2260
|
+
height: 38px;
|
|
2261
|
+
padding: 0 10px 0 7px;
|
|
2262
|
+
border-radius: var(--shellui-r-row);
|
|
2263
|
+
color: var(--sidebar-foreground);
|
|
2264
|
+
cursor: pointer;
|
|
2265
|
+
transition: background-color 120ms var(--shellui-ease-out);
|
|
2266
|
+
}
|
|
2267
|
+
.shellui-start :is(img, svg) {
|
|
2268
|
+
width: 24px;
|
|
2269
|
+
height: 24px;
|
|
2270
|
+
}
|
|
2271
|
+
.shellui-start:hover {
|
|
2272
|
+
background: var(--shellui-nav-hover-inset);
|
|
2273
|
+
}
|
|
2274
|
+
.shellui-start.is-open {
|
|
2275
|
+
background: color-mix(in oklch, var(--sidebar-foreground) 10%, transparent);
|
|
2276
|
+
}
|
|
2277
|
+
.shellui-start-name {
|
|
2278
|
+
font-size: 13.5px;
|
|
2279
|
+
font-weight: 600;
|
|
2280
|
+
}
|
|
2281
|
+
.shellui-task {
|
|
2282
|
+
position: relative;
|
|
2283
|
+
display: flex;
|
|
2284
|
+
align-items: center;
|
|
2285
|
+
gap: 8px;
|
|
2286
|
+
height: 38px;
|
|
2287
|
+
max-width: 160px;
|
|
2288
|
+
min-width: 0;
|
|
2289
|
+
padding: 0 10px;
|
|
2290
|
+
border-radius: var(--shellui-r-row);
|
|
2291
|
+
font-size: 13px;
|
|
2292
|
+
color: var(--sidebar-foreground);
|
|
2293
|
+
cursor: pointer;
|
|
2294
|
+
transition: background-color 120ms var(--shellui-ease-out);
|
|
2295
|
+
}
|
|
2296
|
+
.shellui-task:hover {
|
|
2297
|
+
background: var(--shellui-nav-hover-inset);
|
|
2298
|
+
}
|
|
2299
|
+
.shellui-task-list .shellui-task::after {
|
|
2300
|
+
content: '';
|
|
2301
|
+
position: absolute;
|
|
2302
|
+
left: 50%;
|
|
2303
|
+
bottom: 2px;
|
|
2304
|
+
width: 6px;
|
|
2305
|
+
height: 3px;
|
|
2306
|
+
border-radius: 3px;
|
|
2307
|
+
background: color-mix(in oklch, var(--sidebar-foreground) 40%, transparent);
|
|
2308
|
+
transform: translateX(-50%);
|
|
2309
|
+
transition:
|
|
2310
|
+
width 200ms var(--shellui-ease),
|
|
2311
|
+
background-color 200ms var(--shellui-ease);
|
|
2312
|
+
}
|
|
2313
|
+
.shellui-task.is-focused {
|
|
2314
|
+
background: color-mix(in oklch, var(--sidebar-foreground) 8%, transparent);
|
|
2315
|
+
font-weight: 600;
|
|
2316
|
+
}
|
|
2317
|
+
.shellui-task-list .shellui-task.is-focused::after {
|
|
2318
|
+
width: 16px;
|
|
2319
|
+
background: var(--shellui-nav-indicator);
|
|
2320
|
+
}
|
|
2321
|
+
.shellui-clock {
|
|
2322
|
+
color: var(--sidebar-foreground);
|
|
2323
|
+
border-left: 1px solid var(--shellui-hairline);
|
|
2324
|
+
}
|
|
2325
|
+
.shellui-clock-time {
|
|
2326
|
+
font-size: 12.5px;
|
|
2327
|
+
font-weight: 550;
|
|
2328
|
+
line-height: 1.2;
|
|
2329
|
+
}
|
|
2330
|
+
.shellui-clock-date {
|
|
2331
|
+
font-size: 11px;
|
|
2332
|
+
line-height: 1.2;
|
|
2333
|
+
color: color-mix(in oklch, var(--sidebar-foreground) 72%, transparent);
|
|
2334
|
+
}
|
|
2335
|
+
.shellui-taskbar[data-phone] .shellui-clock-date {
|
|
2336
|
+
display: none;
|
|
2337
|
+
}
|
|
2338
|
+
.shellui-taskbar[data-phone] .shellui-start-name {
|
|
2339
|
+
display: none;
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
.shellui-start-menu {
|
|
2343
|
+
background: color-mix(in oklch, var(--popover) 86%, transparent);
|
|
2344
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2345
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2346
|
+
border: 1px solid var(--shellui-glass-edge);
|
|
2347
|
+
border-radius: calc(var(--radius) + 6px);
|
|
2348
|
+
box-shadow: var(--shellui-glass-shadow);
|
|
2349
|
+
}
|
|
2350
|
+
.shellui-start-title {
|
|
2351
|
+
font-size: 14px;
|
|
2352
|
+
font-weight: 600;
|
|
2353
|
+
letter-spacing: -0.01em;
|
|
2354
|
+
}
|
|
2355
|
+
.shellui-start-hint {
|
|
2356
|
+
margin-top: 2px;
|
|
2357
|
+
font-size: 12.5px;
|
|
2358
|
+
}
|
|
2359
|
+
.shellui-start-label {
|
|
2360
|
+
font-size: 12px;
|
|
2361
|
+
font-weight: 600;
|
|
2362
|
+
text-transform: none;
|
|
2363
|
+
letter-spacing: 0;
|
|
2364
|
+
}
|
|
2365
|
+
.shellui-task.shellui-task-icon {
|
|
2366
|
+
width: 38px;
|
|
2367
|
+
justify-content: center;
|
|
2368
|
+
padding: 0;
|
|
2369
|
+
}
|
|
2370
|
+
.shellui-start-settings {
|
|
2371
|
+
display: inline-flex;
|
|
2372
|
+
width: 36px;
|
|
2373
|
+
height: 36px;
|
|
2374
|
+
flex: none;
|
|
2375
|
+
align-items: center;
|
|
2376
|
+
justify-content: center;
|
|
2377
|
+
border-radius: var(--shellui-r-row);
|
|
2378
|
+
color: var(--shellui-nav-icon);
|
|
2379
|
+
cursor: pointer;
|
|
2380
|
+
}
|
|
2381
|
+
.shellui-start-settings:hover {
|
|
2382
|
+
background: var(--shellui-nav-hover);
|
|
2383
|
+
color: var(--popover-foreground);
|
|
2384
|
+
}
|
|
2385
|
+
.shellui-start-row {
|
|
2386
|
+
display: flex;
|
|
2387
|
+
width: 100%;
|
|
2388
|
+
min-height: 44px;
|
|
2389
|
+
align-items: center;
|
|
2390
|
+
gap: 12px;
|
|
2391
|
+
padding: 6px 8px;
|
|
2392
|
+
border-radius: var(--shellui-r-row);
|
|
2393
|
+
text-align: left;
|
|
2394
|
+
color: var(--popover-foreground);
|
|
2395
|
+
cursor: pointer;
|
|
2396
|
+
transition: background-color 120ms var(--shellui-ease-out);
|
|
2397
|
+
}
|
|
2398
|
+
.shellui-start-row:hover {
|
|
2399
|
+
background: var(--accent);
|
|
2400
|
+
color: var(--accent-foreground);
|
|
2401
|
+
}
|
|
2402
|
+
.shellui-start-row.is-open {
|
|
2403
|
+
background: color-mix(in oklch, var(--accent) 50%, transparent);
|
|
2404
|
+
}
|
|
2405
|
+
.shellui-start-tile {
|
|
2406
|
+
display: flex;
|
|
2407
|
+
width: 28px;
|
|
2408
|
+
height: 28px;
|
|
2409
|
+
flex-shrink: 0;
|
|
2410
|
+
align-items: center;
|
|
2411
|
+
justify-content: center;
|
|
2412
|
+
border-radius: calc(var(--radius) - 2px);
|
|
2413
|
+
background: color-mix(in oklch, var(--muted) 70%, transparent);
|
|
2414
|
+
color: var(--foreground);
|
|
2415
|
+
box-shadow: 0 0 0 1px color-mix(in oklch, var(--border) 50%, transparent);
|
|
2416
|
+
}
|
|
2417
|
+
/* Phone: the start menu becomes a sheet above the taskbar. */
|
|
2418
|
+
.shellui-taskbar[data-phone] .shellui-start-menu {
|
|
2419
|
+
position: fixed;
|
|
2420
|
+
left: 8px;
|
|
2421
|
+
right: 8px;
|
|
2422
|
+
width: auto;
|
|
2423
|
+
bottom: calc(48px + var(--shellui-safe-area-bottom, 0px) + 8px);
|
|
2424
|
+
max-height: 70vh;
|
|
2425
|
+
margin: 0;
|
|
2426
|
+
}
|
|
2427
|
+
.shellui-taskbar[data-phone] .shellui-start-row {
|
|
2428
|
+
min-height: 48px;
|
|
2429
|
+
font-size: 15px;
|
|
2430
|
+
}
|
|
2431
|
+
/* Tauri density on desktop sized windows. */
|
|
2432
|
+
@media (min-width: 768px) {
|
|
2433
|
+
html[data-shellui-host='tauri'] .shellui-task {
|
|
2434
|
+
height: 36px;
|
|
2435
|
+
}
|
|
2436
|
+
html[data-shellui-host='tauri'] .shellui-start-row {
|
|
2437
|
+
min-height: 40px;
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
2441
|
+
.shellui-start-menu {
|
|
2442
|
+
background: var(--popover);
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2446
|
+
.shellui-task,
|
|
2447
|
+
.shellui-task::after,
|
|
2448
|
+
.shellui-start,
|
|
2449
|
+
.shellui-start-row,
|
|
2450
|
+
.shellui-win-control {
|
|
2451
|
+
transition: none;
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
/*
|
|
2456
|
+
* Fullscreen layout on phones: top pads by safe-area-top + 12px, sides and bottom
|
|
2457
|
+
* by their safe area. The 12px only applies when there is a top inset (the min()
|
|
2458
|
+
* term is 0 on a plain desktop browser).
|
|
2459
|
+
*/
|
|
2460
|
+
.shellui-fullscreen-safe {
|
|
2461
|
+
padding-top: calc(var(--shellui-safe-area-top) + min(12px, var(--shellui-safe-area-top) * 1000));
|
|
2462
|
+
padding-right: var(--shellui-safe-area-right);
|
|
2463
|
+
padding-bottom: var(--shellui-safe-area-bottom);
|
|
2464
|
+
padding-left: var(--shellui-safe-area-left);
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
/* Fullscreen layout (Tauri): a small glass group keeps history buttons legible on any content. */
|
|
2468
|
+
.shellui-history-glass {
|
|
2469
|
+
gap: 2px;
|
|
2470
|
+
padding: 2px;
|
|
2471
|
+
border-radius: var(--shellui-r-row);
|
|
2472
|
+
background: var(--shellui-glass);
|
|
2473
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2474
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2475
|
+
box-shadow: 0 0 0 1px var(--shellui-glass-edge);
|
|
2476
|
+
}
|
|
2477
|
+
.shellui-history-glass :is(button, a):focus-visible {
|
|
2478
|
+
outline: 2px solid var(--sidebar-ring);
|
|
2479
|
+
outline-offset: -2px;
|
|
2480
|
+
}
|