@shellui/core 0.6.2 → 0.7.0-alpha.10
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/package.json +2 -2
- package/schemas/shellui.config.schema.json +147 -70
- package/src/app.tsx +2 -0
- package/src/components/ContentView.tsx +21 -30
- package/src/components/iframeUrlSafety.spec.ts +67 -0
- package/src/components/iframeUrlSafety.ts +50 -0
- package/src/components/ui/sidebar.tsx +11 -5
- package/src/features/admin/AdminView.tsx +9 -6
- package/src/features/auth/AuthProvider.tsx +49 -5
- package/src/features/auth/appBackend/AppBackendSessionHost.tsx +58 -0
- package/src/features/auth/appBackend/appBackendSessions.spec.ts +329 -0
- package/src/features/auth/appBackend/appBackendSessions.ts +443 -0
- package/src/features/auth/appBackend/childFrames.spec.ts +328 -0
- package/src/features/auth/appBackend/childFrames.ts +180 -0
- package/src/features/auth/appBackend/configSchema.spec.ts +41 -0
- package/src/features/auth/appBackend/frameAuth.ts +204 -0
- package/src/features/auth/appBackend/identity.spec.ts +201 -0
- package/src/features/auth/appBackend/identity.ts +173 -0
- package/src/features/auth/appBackend/silentSignIn.spec.ts +225 -0
- package/src/features/auth/appBackend/silentSignIn.ts +254 -0
- package/src/features/auth/appBackend/tokenExchange.spec.ts +98 -0
- package/src/features/auth/appBackend/tokenExchange.ts +76 -0
- package/src/features/auth/backends/shellui.spec.ts +51 -19
- package/src/features/auth/backends/shellui.ts +20 -5
- package/src/features/auth/backends/types.ts +7 -2
- package/src/features/auth/components/LoginView.tsx +40 -18
- package/src/features/auth/components/OAuthCallbackView.tsx +33 -4
- package/src/features/auth/utils/authRequestError.ts +3 -0
- package/src/features/auth/utils/buildOAuthSessionRedirectTo.spec.ts +42 -1
- package/src/features/auth/utils/buildOAuthSessionRedirectTo.ts +23 -0
- package/src/features/auth/utils/canRestoreStoredSession.spec.ts +29 -0
- package/src/features/auth/utils/canRestoreStoredSession.ts +12 -0
- package/src/features/auth/utils/index.ts +16 -1
- package/src/features/auth/utils/loginCancelTarget.spec.ts +73 -0
- package/src/features/auth/utils/loginCancelTarget.ts +45 -0
- package/src/features/auth/utils/loginPanelFrame.spec.ts +24 -0
- package/src/features/auth/utils/loginPanelFrame.ts +14 -0
- package/src/features/auth/utils/resolveSdkLoginRedirectPath.spec.ts +41 -0
- package/src/features/auth/utils/resolveSdkLoginRedirectPath.ts +31 -0
- package/src/features/auth/utils/webPkce.spec.ts +119 -0
- package/src/features/auth/utils/webPkce.ts +169 -0
- package/src/features/chromeActions/computeActionInsets.ts +7 -4
- package/src/features/config/types.ts +70 -3
- package/src/features/layouts/appbar/AppBarLayout.tsx +63 -30
- package/src/features/layouts/chrome/CollapsedDesktopTitlebar.tsx +12 -23
- 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 +33 -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/filterNavigationForAuthState.spec.ts +5 -3
- package/src/features/layouts/floating/FloatingBottomDock.tsx +199 -20
- package/src/features/layouts/floating/FloatingLayout.tsx +13 -8
- package/src/features/layouts/floating/FloatingSidebar.tsx +144 -70
- package/src/features/layouts/floating/computeFloatingInsets.ts +22 -4
- 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.tsx +38 -10
- package/src/features/layouts/sidebar/NavigationContent.tsx +14 -6
- package/src/features/layouts/sidebar/SidebarIcons.tsx +3 -9
- package/src/features/layouts/sidebar/SidebarInner.tsx +50 -39
- package/src/features/layouts/sidebar/SidebarLayout.tsx +8 -11
- package/src/features/layouts/utils.ts +4 -3
- package/src/features/layouts/windows/DesktopDots.tsx +76 -0
- package/src/features/layouts/windows/WindowsLayout.tsx +184 -125
- package/src/features/layouts/windows/deskDots.spec.ts +52 -0
- package/src/features/layouts/windows/deskDots.ts +314 -0
- package/src/features/settings/SettingsProvider.tsx +198 -29
- package/src/features/settings/utils/buildSettingsForPropagation.spec.ts +379 -4
- package/src/features/settings/utils/buildSettingsForPropagation.ts +65 -39
- 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/features/transfers/transferQueue.spec.ts +6 -2
- package/src/i18n/translations/en/common.json +27 -0
- package/src/i18n/translations/fr/common.json +27 -0
- package/src/index.css +935 -46
- package/src/index.ts +2 -0
- package/src/routes/hooks/useNavigationItems.ts +14 -3
- package/src/routes/hooks/withShellSearch.spec.ts +13 -0
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
|
|
@@ -138,30 +241,18 @@
|
|
|
138
241
|
--shellui-inset-right: 0px;
|
|
139
242
|
--shellui-inset-bottom: 0px;
|
|
140
243
|
--shellui-inset-left: 0px;
|
|
141
|
-
--shellui-floating-sidebar-radius:
|
|
244
|
+
--shellui-floating-sidebar-radius: var(--shellui-r-float);
|
|
142
245
|
/* Any positive --radius → huge radius (pill); 0 → square. */
|
|
143
246
|
--shellui-floating-mobile-radius: calc(var(--radius) * 999);
|
|
144
247
|
}
|
|
145
248
|
|
|
146
249
|
.shellui-floating-glass {
|
|
147
250
|
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);
|
|
251
|
+
background: var(--shellui-glass);
|
|
252
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
253
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
254
|
+
border: 1px solid var(--shellui-glass-edge);
|
|
255
|
+
box-shadow: var(--shellui-glass-shadow);
|
|
165
256
|
}
|
|
166
257
|
|
|
167
258
|
.shellui-floating-sidebar-panel .shellui-floating-glass,
|
|
@@ -174,27 +265,10 @@
|
|
|
174
265
|
border-radius: 0;
|
|
175
266
|
}
|
|
176
267
|
|
|
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
268
|
/* Desktop floating nav rows / chrome controls: match capped sidebar radius. */
|
|
195
269
|
.shellui-floating-sidebar-panel .shellui-floating-nav-item,
|
|
196
270
|
.shellui-floating-sidebar-panel .shellui-floating-nav-control {
|
|
197
|
-
border-radius: var(--shellui-floating-sidebar-radius);
|
|
271
|
+
border-radius: min(var(--shellui-floating-sidebar-radius), 10px);
|
|
198
272
|
}
|
|
199
273
|
|
|
200
274
|
/* Phone/tablet floating dock + pill FAB: binary radius (0 theme → square). */
|
|
@@ -351,7 +425,7 @@ html[data-shellui-chrome-hidden='true']
|
|
|
351
425
|
content: '';
|
|
352
426
|
position: absolute;
|
|
353
427
|
inset: 0;
|
|
354
|
-
border-radius:
|
|
428
|
+
border-radius: var(--shellui-r-card) var(--shellui-r-card) 0 0;
|
|
355
429
|
border: 1px solid var(--border);
|
|
356
430
|
border-bottom-width: 0;
|
|
357
431
|
box-shadow: 0 0 0 100vmax var(--shellui-inset-chrome);
|
|
@@ -1307,9 +1381,65 @@ html.shellui-theme-switching
|
|
|
1307
1381
|
-webkit-app-region: no-drag;
|
|
1308
1382
|
}
|
|
1309
1383
|
|
|
1384
|
+
/*
|
|
1385
|
+
* macOS strip (rules v2). The traffic lights stay at the AppKit default; the shell adapts
|
|
1386
|
+
* to them. Strip 32px, lights centre 16px, drag-only safe area 80px from the left edge.
|
|
1387
|
+
* In native fullscreen AppKit hides the lights and the safe area collapses to 12px.
|
|
1388
|
+
*/
|
|
1389
|
+
html {
|
|
1390
|
+
--shellui-mac-titlebar-h: 32px;
|
|
1391
|
+
--shellui-mac-lights-cy: 16px;
|
|
1392
|
+
--shellui-mac-lights-safe: 12px;
|
|
1393
|
+
--shellui-titlebar-height: var(--shellui-mac-titlebar-h);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1310
1396
|
html[data-shellui-overlay-chrome] {
|
|
1311
|
-
--shellui-
|
|
1312
|
-
--shellui-traffic-lights-width:
|
|
1397
|
+
--shellui-mac-lights-safe: 80px;
|
|
1398
|
+
--shellui-traffic-lights-width: 68px;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
.shellui-mac-safe {
|
|
1402
|
+
width: var(--shellui-mac-lights-safe, 80px);
|
|
1403
|
+
transition: width 200ms ease;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1407
|
+
.shellui-mac-safe {
|
|
1408
|
+
transition: none;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
/* Strip controls: 24px boxes, 16px icons, centred on the lights line. */
|
|
1413
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item {
|
|
1414
|
+
height: 24px;
|
|
1415
|
+
font-size: 13px;
|
|
1416
|
+
}
|
|
1417
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item svg,
|
|
1418
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item img {
|
|
1419
|
+
width: 15px;
|
|
1420
|
+
height: 15px;
|
|
1421
|
+
}
|
|
1422
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-end,
|
|
1423
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] [data-shellui-strip-end] button {
|
|
1424
|
+
height: 24px;
|
|
1425
|
+
min-width: 24px;
|
|
1426
|
+
}
|
|
1427
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-end,
|
|
1428
|
+
html[data-shellui-mac-chrome] [data-shellui-mac-strip] [data-shellui-strip-end] button.size-7 {
|
|
1429
|
+
width: 24px;
|
|
1430
|
+
}
|
|
1431
|
+
html[data-shellui-mac-chrome]
|
|
1432
|
+
[data-shellui-mac-strip]
|
|
1433
|
+
[data-shellui-strip-end]
|
|
1434
|
+
[data-slot='avatar'] {
|
|
1435
|
+
width: 22px;
|
|
1436
|
+
height: 22px;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
/* Inactive window: AppKit greys the lights, the strip text follows. */
|
|
1440
|
+
html[data-shellui-window-inactive] [data-shellui-mac-strip],
|
|
1441
|
+
html[data-shellui-window-inactive] [data-shellui-mac-strip] :is(button, a, span) {
|
|
1442
|
+
color: var(--shellui-nav-label);
|
|
1313
1443
|
}
|
|
1314
1444
|
|
|
1315
1445
|
/* Keep sidebar chrome above the full-width drag strip so Back / trigger stay clickable. */
|
|
@@ -1351,14 +1481,14 @@ html[data-shellui-overlay-chrome] [data-slot='sidebar-container'] {
|
|
|
1351
1481
|
}
|
|
1352
1482
|
}
|
|
1353
1483
|
|
|
1354
|
-
/* Collapsed Tauri: full-width
|
|
1484
|
+
/* Collapsed Tauri: full-width 32px macOS strip; push sidebar + content below it. */
|
|
1355
1485
|
html[data-shellui-collapsed-titlebar]
|
|
1356
1486
|
[data-shellui-sidebar-layout]
|
|
1357
1487
|
> [data-slot='sidebar-wrapper']
|
|
1358
1488
|
> [data-slot='sidebar']
|
|
1359
1489
|
> [data-slot='sidebar-container'] {
|
|
1360
|
-
top: var(--shellui-titlebar-height,
|
|
1361
|
-
height: calc(var(--shellui-app-height, 100dvh) - var(--shellui-titlebar-height,
|
|
1490
|
+
top: var(--shellui-titlebar-height, 32px);
|
|
1491
|
+
height: calc(var(--shellui-app-height, 100dvh) - var(--shellui-titlebar-height, 32px));
|
|
1362
1492
|
}
|
|
1363
1493
|
|
|
1364
1494
|
html[data-shellui-collapsed-titlebar][data-shellui-safe-area-topbar]
|
|
@@ -1366,10 +1496,10 @@ html[data-shellui-collapsed-titlebar][data-shellui-safe-area-topbar]
|
|
|
1366
1496
|
> [data-slot='sidebar-wrapper']
|
|
1367
1497
|
> [data-slot='sidebar']
|
|
1368
1498
|
> [data-slot='sidebar-container'] {
|
|
1369
|
-
top: calc(var(--shellui-safe-area-top) + var(--shellui-titlebar-height,
|
|
1499
|
+
top: calc(var(--shellui-safe-area-top) + var(--shellui-titlebar-height, 32px));
|
|
1370
1500
|
height: calc(
|
|
1371
1501
|
var(--shellui-app-height, 100dvh) - var(--shellui-safe-area-top) -
|
|
1372
|
-
var(--shellui-titlebar-height,
|
|
1502
|
+
var(--shellui-titlebar-height, 32px)
|
|
1373
1503
|
);
|
|
1374
1504
|
}
|
|
1375
1505
|
|
|
@@ -1377,7 +1507,7 @@ html[data-shellui-collapsed-titlebar]
|
|
|
1377
1507
|
[data-shellui-sidebar-layout]:not([data-shellui-layout-variant='inset'])
|
|
1378
1508
|
> [data-slot='sidebar-wrapper']
|
|
1379
1509
|
> [data-slot='sidebar-inset'] {
|
|
1380
|
-
padding-top: var(--shellui-titlebar-height,
|
|
1510
|
+
padding-top: var(--shellui-titlebar-height, 32px);
|
|
1381
1511
|
}
|
|
1382
1512
|
|
|
1383
1513
|
/* Inset card keeps its own radius: sit the frame under the titlebar instead of
|
|
@@ -1386,7 +1516,7 @@ html[data-shellui-collapsed-titlebar]
|
|
|
1386
1516
|
[data-shellui-layout-variant='inset']
|
|
1387
1517
|
> [data-slot='sidebar-wrapper']
|
|
1388
1518
|
> [data-slot='sidebar-inset'] {
|
|
1389
|
-
margin-top: var(--shellui-titlebar-height,
|
|
1519
|
+
margin-top: var(--shellui-titlebar-height, 32px);
|
|
1390
1520
|
padding-top: 0;
|
|
1391
1521
|
}
|
|
1392
1522
|
|
|
@@ -1399,3 +1529,762 @@ html[data-shellui-safe-area-topbar] [data-shellui-collapsed-titlebar] {
|
|
|
1399
1529
|
[data-slot='sidebar-wrapper'][data-resizing] iframe {
|
|
1400
1530
|
pointer-events: none;
|
|
1401
1531
|
}
|
|
1532
|
+
|
|
1533
|
+
/*
|
|
1534
|
+
* Sidebar nav rows (sidebar and sidebar-inset, desktop column and mobile sheet).
|
|
1535
|
+
* `.shellui-nav` wraps SidebarContent and SidebarFooter in SidebarInner, so the
|
|
1536
|
+
* same rules reach the Sheet portal. Unlayered: wins over the shadcn utilities.
|
|
1537
|
+
*/
|
|
1538
|
+
.shellui-nav [data-sidebar='menu-button'] {
|
|
1539
|
+
height: 32px;
|
|
1540
|
+
padding-inline: 10px;
|
|
1541
|
+
gap: 10px;
|
|
1542
|
+
border-radius: var(--shellui-r-row);
|
|
1543
|
+
font-size: 13.5px;
|
|
1544
|
+
font-weight: 450;
|
|
1545
|
+
color: var(--shellui-nav-fg);
|
|
1546
|
+
transition:
|
|
1547
|
+
background-color 150ms var(--shellui-ease),
|
|
1548
|
+
color 150ms var(--shellui-ease);
|
|
1549
|
+
}
|
|
1550
|
+
.shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
|
|
1551
|
+
width: 16px;
|
|
1552
|
+
height: 16px;
|
|
1553
|
+
color: var(--shellui-nav-icon);
|
|
1554
|
+
transition: color 150ms var(--shellui-ease);
|
|
1555
|
+
}
|
|
1556
|
+
.shellui-nav [data-sidebar='menu-button']:hover,
|
|
1557
|
+
.shellui-nav [data-sidebar='menu-button']:active {
|
|
1558
|
+
background-color: var(--shellui-nav-hover);
|
|
1559
|
+
color: var(--sidebar-accent-foreground);
|
|
1560
|
+
}
|
|
1561
|
+
.shellui-nav [data-sidebar='menu-button']:hover .shellui-nav-icon {
|
|
1562
|
+
color: currentColor;
|
|
1563
|
+
}
|
|
1564
|
+
.shellui-nav [data-sidebar='menu-button'][data-active='true'],
|
|
1565
|
+
.shellui-nav [data-sidebar='menu-button'][data-active='true']:hover {
|
|
1566
|
+
background-color: var(--shellui-nav-active);
|
|
1567
|
+
color: var(--shellui-nav-active-fg);
|
|
1568
|
+
font-weight: 550;
|
|
1569
|
+
}
|
|
1570
|
+
.shellui-nav [data-sidebar='menu-button'][data-active='true'] .shellui-nav-icon {
|
|
1571
|
+
color: var(--shellui-nav-active-icon);
|
|
1572
|
+
}
|
|
1573
|
+
.shellui-nav [data-sidebar='menu-button']:focus-visible {
|
|
1574
|
+
outline: 2px solid var(--sidebar-ring);
|
|
1575
|
+
outline-offset: -2px;
|
|
1576
|
+
--tw-ring-shadow: 0 0 transparent;
|
|
1577
|
+
--tw-ring-offset-shadow: 0 0 transparent;
|
|
1578
|
+
}
|
|
1579
|
+
.shellui-nav .shellui-nav-label {
|
|
1580
|
+
height: auto;
|
|
1581
|
+
padding: 12px 10px 4px;
|
|
1582
|
+
font-size: 12px;
|
|
1583
|
+
font-weight: 600;
|
|
1584
|
+
text-transform: none;
|
|
1585
|
+
letter-spacing: 0;
|
|
1586
|
+
color: var(--shellui-nav-label);
|
|
1587
|
+
}
|
|
1588
|
+
.shellui-nav [data-sidebar='group'] {
|
|
1589
|
+
position: relative;
|
|
1590
|
+
}
|
|
1591
|
+
/* Collapsed rail: the hidden group label leaves a 24 x 1 px hairline. */
|
|
1592
|
+
.group[data-collapsible='icon']
|
|
1593
|
+
.shellui-nav
|
|
1594
|
+
[data-sidebar='group']:has(.shellui-nav-label)::before {
|
|
1595
|
+
content: '';
|
|
1596
|
+
position: absolute;
|
|
1597
|
+
top: 4px;
|
|
1598
|
+
left: 50%;
|
|
1599
|
+
width: 24px;
|
|
1600
|
+
height: 1px;
|
|
1601
|
+
transform: translateX(-50%);
|
|
1602
|
+
background: var(--shellui-hairline);
|
|
1603
|
+
}
|
|
1604
|
+
.shellui-nav[data-shellui-nav-footer] {
|
|
1605
|
+
border-top-color: var(--shellui-hairline);
|
|
1606
|
+
padding: 6px 0 max(8px, var(--shellui-safe-area-bottom));
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
/* Rail: 2 px ring line on hover and while dragging. */
|
|
1610
|
+
[data-shellui-sidebar-layout] [data-sidebar='rail']:hover::after,
|
|
1611
|
+
[data-shellui-sidebar-layout]
|
|
1612
|
+
[data-slot='sidebar-wrapper'][data-resizing]
|
|
1613
|
+
[data-sidebar='rail']::after {
|
|
1614
|
+
background-color: var(--sidebar-ring);
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/* Phones: sheet rows grow to touch size. */
|
|
1618
|
+
[data-mobile='true'] .shellui-nav [data-sidebar='menu-button'] {
|
|
1619
|
+
height: 44px;
|
|
1620
|
+
font-size: 15px;
|
|
1621
|
+
}
|
|
1622
|
+
[data-mobile='true'] .shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
|
|
1623
|
+
width: 18px;
|
|
1624
|
+
height: 18px;
|
|
1625
|
+
}
|
|
1626
|
+
[data-mobile='true'] .shellui-nav .shellui-nav-label {
|
|
1627
|
+
font-size: 12.5px;
|
|
1628
|
+
}
|
|
1629
|
+
[data-sheet-overlay]:has(+ [data-sidebar='sidebar'][data-mobile='true']) {
|
|
1630
|
+
background-color: var(--shellui-scrim);
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
/* Tauri desktop: denser rows, closer to native source lists. */
|
|
1634
|
+
@media (min-width: 768px) {
|
|
1635
|
+
html[data-shellui-host='tauri'] .shellui-nav [data-sidebar='menu-button'] {
|
|
1636
|
+
height: 30px;
|
|
1637
|
+
font-size: 13px;
|
|
1638
|
+
}
|
|
1639
|
+
html[data-shellui-host='tauri'] .shellui-nav .shellui-nav-label {
|
|
1640
|
+
font-size: 11.5px;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1645
|
+
.shellui-nav [data-sidebar='menu-button'],
|
|
1646
|
+
.shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
|
|
1647
|
+
transition: none;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
/*
|
|
1652
|
+
* Sidebar-inset: the column sits on the chrome tray, so hover uses a foreground
|
|
1653
|
+
* mix (accent is too close to the tray tint) and the active pill gets a 1 px lift.
|
|
1654
|
+
*/
|
|
1655
|
+
[data-shellui-layout-variant='inset'] .shellui-nav {
|
|
1656
|
+
--shellui-nav-hover: var(--shellui-nav-hover-inset);
|
|
1657
|
+
}
|
|
1658
|
+
[data-shellui-layout-variant='inset']
|
|
1659
|
+
.shellui-nav
|
|
1660
|
+
[data-sidebar='menu-button'][data-active='true'] {
|
|
1661
|
+
box-shadow: 0 1px 2px color-mix(in oklch, black 10%, transparent);
|
|
1662
|
+
}
|
|
1663
|
+
[data-shellui-layout-variant='inset'] .shellui-nav[data-shellui-nav-footer] {
|
|
1664
|
+
border-top-color: transparent;
|
|
1665
|
+
}
|
|
1666
|
+
@media (min-width: 768px) {
|
|
1667
|
+
[data-shellui-layout-variant='inset'] [data-slot='sidebar-inset'] {
|
|
1668
|
+
border-radius: var(--shellui-r-card);
|
|
1669
|
+
box-shadow: 0 1px 2px color-mix(in oklch, black 5%, transparent);
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
/*
|
|
1674
|
+
* App bar (app-bar and app-bar-inset): nav items, end buttons and menus.
|
|
1675
|
+
* Underline marks the active item; the inset bar uses a raised pill instead.
|
|
1676
|
+
*/
|
|
1677
|
+
.shellui-appbar-item,
|
|
1678
|
+
.shellui-appbar-end {
|
|
1679
|
+
position: relative;
|
|
1680
|
+
border-radius: var(--shellui-r-row);
|
|
1681
|
+
color: var(--shellui-dock-dim);
|
|
1682
|
+
transition:
|
|
1683
|
+
background-color 150ms var(--shellui-ease),
|
|
1684
|
+
color 150ms var(--shellui-ease);
|
|
1685
|
+
}
|
|
1686
|
+
.shellui-appbar-item {
|
|
1687
|
+
padding-inline: 10px;
|
|
1688
|
+
font-size: 13.5px;
|
|
1689
|
+
font-weight: 500;
|
|
1690
|
+
}
|
|
1691
|
+
.shellui-appbar-item:hover,
|
|
1692
|
+
.shellui-appbar-item[aria-expanded='true'],
|
|
1693
|
+
.shellui-appbar-end:hover {
|
|
1694
|
+
background-color: var(--shellui-nav-hover);
|
|
1695
|
+
color: var(--sidebar-foreground);
|
|
1696
|
+
}
|
|
1697
|
+
.shellui-appbar-item.is-active,
|
|
1698
|
+
.shellui-appbar-end.is-active {
|
|
1699
|
+
color: var(--sidebar-foreground);
|
|
1700
|
+
font-weight: 600;
|
|
1701
|
+
}
|
|
1702
|
+
.shellui-appbar-item.is-active::after {
|
|
1703
|
+
content: '';
|
|
1704
|
+
position: absolute;
|
|
1705
|
+
left: 10px;
|
|
1706
|
+
right: 10px;
|
|
1707
|
+
bottom: 0;
|
|
1708
|
+
height: 2px;
|
|
1709
|
+
border-radius: 2px;
|
|
1710
|
+
background: var(--shellui-nav-indicator);
|
|
1711
|
+
}
|
|
1712
|
+
.shellui-appbar-end.is-active {
|
|
1713
|
+
background-color: var(--shellui-nav-hover);
|
|
1714
|
+
}
|
|
1715
|
+
.shellui-appbar-item:focus-visible,
|
|
1716
|
+
.shellui-appbar-end:focus-visible {
|
|
1717
|
+
outline: 2px solid var(--sidebar-ring);
|
|
1718
|
+
outline-offset: -2px;
|
|
1719
|
+
--tw-ring-shadow: 0 0 transparent;
|
|
1720
|
+
--tw-ring-offset-shadow: 0 0 transparent;
|
|
1721
|
+
}
|
|
1722
|
+
.shellui-appbar-menu {
|
|
1723
|
+
padding: 4px;
|
|
1724
|
+
border-radius: calc(var(--radius) + 2px);
|
|
1725
|
+
border: 1px solid var(--border);
|
|
1726
|
+
box-shadow:
|
|
1727
|
+
0 12px 32px -8px color-mix(in oklch, black 22%, transparent),
|
|
1728
|
+
0 2px 6px color-mix(in oklch, black 8%, transparent);
|
|
1729
|
+
}
|
|
1730
|
+
.shellui-appbar-menu .shellui-appbar-menu-item {
|
|
1731
|
+
min-height: 32px;
|
|
1732
|
+
font-size: 13.5px;
|
|
1733
|
+
border-radius: var(--shellui-r-row);
|
|
1734
|
+
}
|
|
1735
|
+
.shellui-appbar-menu .shellui-appbar-menu-item.is-active {
|
|
1736
|
+
background-color: var(--accent);
|
|
1737
|
+
color: var(--accent-foreground);
|
|
1738
|
+
font-weight: 550;
|
|
1739
|
+
}
|
|
1740
|
+
.shellui-appbar-menu .shellui-appbar-menu-label {
|
|
1741
|
+
font-size: 12px;
|
|
1742
|
+
font-weight: 600;
|
|
1743
|
+
}
|
|
1744
|
+
@media (max-width: 767px) {
|
|
1745
|
+
.shellui-appbar-menu .shellui-appbar-menu-item {
|
|
1746
|
+
min-height: 44px;
|
|
1747
|
+
font-size: 15px;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
@media (min-width: 768px) {
|
|
1751
|
+
html[data-shellui-host='tauri'] .shellui-appbar-item {
|
|
1752
|
+
height: 30px;
|
|
1753
|
+
font-size: 13px;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
[data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] {
|
|
1758
|
+
--shellui-nav-hover: var(--shellui-nav-hover-inset);
|
|
1759
|
+
}
|
|
1760
|
+
[data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] .shellui-appbar-item.is-active {
|
|
1761
|
+
background-color: var(--background);
|
|
1762
|
+
box-shadow:
|
|
1763
|
+
0 0 0 1px var(--border),
|
|
1764
|
+
0 1px 2px color-mix(in oklch, black 8%, transparent);
|
|
1765
|
+
}
|
|
1766
|
+
[data-shellui-app-bar-layout][data-shellui-layout-variant='inset']
|
|
1767
|
+
.shellui-appbar-item.is-active::after {
|
|
1768
|
+
content: none;
|
|
1769
|
+
}
|
|
1770
|
+
@media (min-width: 768px) {
|
|
1771
|
+
[data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] > main {
|
|
1772
|
+
border-radius: var(--shellui-r-card);
|
|
1773
|
+
box-shadow: 0 1px 2px color-mix(in oklch, black 5%, transparent);
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1778
|
+
.shellui-appbar-item,
|
|
1779
|
+
.shellui-appbar-end {
|
|
1780
|
+
transition: none;
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
/*
|
|
1785
|
+
* Floating layout: desktop glass sidebar rows, phone / tablet dock, More sheet.
|
|
1786
|
+
*/
|
|
1787
|
+
.shellui-floating-nav-item {
|
|
1788
|
+
font-size: 13.5px;
|
|
1789
|
+
font-weight: 450;
|
|
1790
|
+
color: var(--shellui-nav-fg);
|
|
1791
|
+
transition:
|
|
1792
|
+
background-color 150ms var(--shellui-ease),
|
|
1793
|
+
color 150ms var(--shellui-ease);
|
|
1794
|
+
}
|
|
1795
|
+
.shellui-floating-nav-item .shellui-nav-icon {
|
|
1796
|
+
color: var(--shellui-nav-icon);
|
|
1797
|
+
}
|
|
1798
|
+
.shellui-floating-nav-item:hover {
|
|
1799
|
+
background-color: var(--shellui-nav-hover);
|
|
1800
|
+
color: var(--sidebar-accent-foreground);
|
|
1801
|
+
}
|
|
1802
|
+
.shellui-floating-nav-item:hover .shellui-nav-icon {
|
|
1803
|
+
color: currentColor;
|
|
1804
|
+
}
|
|
1805
|
+
.shellui-floating-nav-item.is-active,
|
|
1806
|
+
.shellui-floating-nav-item.is-active:hover {
|
|
1807
|
+
background-color: var(--shellui-nav-active);
|
|
1808
|
+
color: var(--shellui-nav-active-fg);
|
|
1809
|
+
font-weight: 550;
|
|
1810
|
+
}
|
|
1811
|
+
.shellui-floating-nav-item.is-active .shellui-nav-icon {
|
|
1812
|
+
color: var(--shellui-nav-active-icon);
|
|
1813
|
+
}
|
|
1814
|
+
.shellui-floating-nav-item:focus-visible,
|
|
1815
|
+
.shellui-floating-nav-control:focus-visible {
|
|
1816
|
+
outline: 2px solid var(--sidebar-ring);
|
|
1817
|
+
outline-offset: -2px;
|
|
1818
|
+
}
|
|
1819
|
+
.shellui-floating-nav-label {
|
|
1820
|
+
font-size: 12px;
|
|
1821
|
+
font-weight: 600;
|
|
1822
|
+
text-transform: none;
|
|
1823
|
+
letter-spacing: 0;
|
|
1824
|
+
color: var(--shellui-nav-label);
|
|
1825
|
+
}
|
|
1826
|
+
@media (min-width: 768px) {
|
|
1827
|
+
html[data-shellui-host='tauri'] .shellui-floating-nav-item {
|
|
1828
|
+
height: 30px;
|
|
1829
|
+
font-size: 13px;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
.shellui-dock-tab {
|
|
1834
|
+
color: var(--shellui-dock-dim);
|
|
1835
|
+
-webkit-tap-highlight-color: transparent;
|
|
1836
|
+
user-select: none;
|
|
1837
|
+
-webkit-user-select: none;
|
|
1838
|
+
-webkit-touch-callout: none;
|
|
1839
|
+
touch-action: manipulation;
|
|
1840
|
+
min-height: 48px;
|
|
1841
|
+
}
|
|
1842
|
+
.shellui-dock-tab:focus-visible {
|
|
1843
|
+
outline: none;
|
|
1844
|
+
--tw-ring-shadow: 0 0 transparent;
|
|
1845
|
+
--tw-ring-offset-shadow: 0 0 transparent;
|
|
1846
|
+
}
|
|
1847
|
+
.shellui-dock-tab .shellui-dock-label {
|
|
1848
|
+
font-size: 11px;
|
|
1849
|
+
line-height: 13px;
|
|
1850
|
+
font-weight: 500;
|
|
1851
|
+
letter-spacing: 0.01em;
|
|
1852
|
+
}
|
|
1853
|
+
[data-dock-align='center'] .shellui-dock-tab .shellui-dock-label {
|
|
1854
|
+
font-size: 12px;
|
|
1855
|
+
line-height: 15px;
|
|
1856
|
+
}
|
|
1857
|
+
.shellui-dock-capsule {
|
|
1858
|
+
width: 52px;
|
|
1859
|
+
height: 28px;
|
|
1860
|
+
flex-shrink: 0;
|
|
1861
|
+
border-radius: var(--shellui-floating-mobile-radius);
|
|
1862
|
+
transition:
|
|
1863
|
+
background-color 240ms var(--shellui-ease),
|
|
1864
|
+
transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
1865
|
+
}
|
|
1866
|
+
.shellui-dock-capsule .shellui-dock-glyph {
|
|
1867
|
+
width: 21px;
|
|
1868
|
+
height: 21px;
|
|
1869
|
+
}
|
|
1870
|
+
.shellui-dock-tab[data-state='active'] {
|
|
1871
|
+
color: var(--sidebar-foreground);
|
|
1872
|
+
}
|
|
1873
|
+
.shellui-dock-tab[data-state='active'] .shellui-dock-label {
|
|
1874
|
+
font-weight: 650;
|
|
1875
|
+
}
|
|
1876
|
+
.shellui-dock-tab[data-state='active'] .shellui-dock-capsule {
|
|
1877
|
+
background-color: var(--shellui-dock-capsule);
|
|
1878
|
+
}
|
|
1879
|
+
.shellui-dock-tab:active .shellui-dock-capsule {
|
|
1880
|
+
transform: scale(0.9);
|
|
1881
|
+
background-color: color-mix(in oklch, var(--sidebar-foreground) 10%, transparent);
|
|
1882
|
+
transition-duration: 90ms;
|
|
1883
|
+
transition-timing-function: ease-out;
|
|
1884
|
+
}
|
|
1885
|
+
.shellui-dock-tab:active {
|
|
1886
|
+
color: var(--sidebar-foreground);
|
|
1887
|
+
}
|
|
1888
|
+
.shellui-dock-tab:focus-visible .shellui-dock-capsule {
|
|
1889
|
+
outline: 2px solid var(--sidebar-ring);
|
|
1890
|
+
outline-offset: 1px;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
/* Phone More sheet (vaul). */
|
|
1894
|
+
.shellui-more-sheet {
|
|
1895
|
+
left: calc(8px + var(--shellui-safe-area-left));
|
|
1896
|
+
right: calc(8px + var(--shellui-safe-area-right));
|
|
1897
|
+
bottom: calc(8px + var(--shellui-safe-area-bottom));
|
|
1898
|
+
padding-top: 8px;
|
|
1899
|
+
border-radius: calc(var(--shellui-r-float) + 8px);
|
|
1900
|
+
background: color-mix(in oklch, var(--sidebar) 92%, transparent);
|
|
1901
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
1902
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
1903
|
+
border: 1px solid var(--shellui-glass-edge);
|
|
1904
|
+
box-shadow: var(--shellui-glass-shadow);
|
|
1905
|
+
}
|
|
1906
|
+
.shellui-more-sheet-handle {
|
|
1907
|
+
width: 36px;
|
|
1908
|
+
height: 5px;
|
|
1909
|
+
margin-bottom: 6px;
|
|
1910
|
+
border-radius: 999px;
|
|
1911
|
+
background: color-mix(in oklch, var(--sidebar-foreground) 22%, transparent);
|
|
1912
|
+
}
|
|
1913
|
+
.shellui-more-sheet-row {
|
|
1914
|
+
min-height: 48px;
|
|
1915
|
+
padding-inline: 12px;
|
|
1916
|
+
border-radius: min(var(--shellui-r-float), 12px);
|
|
1917
|
+
font-size: 15.5px;
|
|
1918
|
+
color: var(--sidebar-foreground);
|
|
1919
|
+
-webkit-tap-highlight-color: transparent;
|
|
1920
|
+
}
|
|
1921
|
+
.shellui-more-sheet-row .shellui-dock-glyph {
|
|
1922
|
+
width: 20px;
|
|
1923
|
+
height: 20px;
|
|
1924
|
+
color: var(--shellui-nav-icon);
|
|
1925
|
+
}
|
|
1926
|
+
.shellui-more-sheet-row:active,
|
|
1927
|
+
.shellui-more-sheet-row:hover {
|
|
1928
|
+
background-color: var(--shellui-nav-hover);
|
|
1929
|
+
}
|
|
1930
|
+
.shellui-more-sheet-row[data-active='true'] {
|
|
1931
|
+
background-color: var(--shellui-dock-capsule);
|
|
1932
|
+
font-weight: 600;
|
|
1933
|
+
}
|
|
1934
|
+
.shellui-more-sheet-row:focus-visible {
|
|
1935
|
+
outline: 2px solid var(--sidebar-ring);
|
|
1936
|
+
outline-offset: -2px;
|
|
1937
|
+
}
|
|
1938
|
+
.shellui-more-sheet-account:empty {
|
|
1939
|
+
display: none;
|
|
1940
|
+
}
|
|
1941
|
+
/* vaul paints an ::after below bottom drawers; the sheet floats, so drop it. */
|
|
1942
|
+
.shellui-more-sheet::after {
|
|
1943
|
+
content: none !important;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
/* Soft keyboard open: dock and FAB step aside (same slide as scroll hide). */
|
|
1947
|
+
html[data-shellui-keyboard='open'] [data-shellui-floating-dock],
|
|
1948
|
+
html[data-shellui-keyboard='open']
|
|
1949
|
+
[data-shellui-chrome-actions-fab][data-shellui-floating-fab='true'] {
|
|
1950
|
+
translate: 0 120%;
|
|
1951
|
+
opacity: 0;
|
|
1952
|
+
pointer-events: none;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
1956
|
+
.shellui-more-sheet {
|
|
1957
|
+
background: var(--shellui-glass-solid);
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
1961
|
+
.shellui-more-sheet {
|
|
1962
|
+
background: var(--shellui-glass-solid);
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1967
|
+
.shellui-floating-nav-item,
|
|
1968
|
+
.shellui-dock-capsule {
|
|
1969
|
+
transition: none;
|
|
1970
|
+
}
|
|
1971
|
+
.shellui-dock-tab:active .shellui-dock-capsule {
|
|
1972
|
+
transform: none;
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
/*
|
|
1977
|
+
* Windows layout: calm desktop, opaque cards, glass taskbar and start menu.
|
|
1978
|
+
*/
|
|
1979
|
+
[data-shellui-windows-layout] .shellui-desk-wash {
|
|
1980
|
+
background-image:
|
|
1981
|
+
radial-gradient(ellipse 90% 60% at 20% 112%, var(--shellui-desk-wash), transparent 62%),
|
|
1982
|
+
radial-gradient(
|
|
1983
|
+
ellipse 70% 50% at 80% 118%,
|
|
1984
|
+
color-mix(in oklch, var(--primary) 7%, transparent),
|
|
1985
|
+
transparent 64%
|
|
1986
|
+
);
|
|
1987
|
+
}
|
|
1988
|
+
/* Static dot grid: reduced motion, and the frame before the canvas mounts. */
|
|
1989
|
+
[data-shellui-desk-dots]:not([data-live])::before {
|
|
1990
|
+
content: '';
|
|
1991
|
+
position: absolute;
|
|
1992
|
+
inset: 0;
|
|
1993
|
+
background-image: radial-gradient(
|
|
1994
|
+
circle at center,
|
|
1995
|
+
var(--shellui-desk-dot) 1.1px,
|
|
1996
|
+
transparent 1.6px
|
|
1997
|
+
);
|
|
1998
|
+
background-size: 24px 24px;
|
|
1999
|
+
background-position: center 0;
|
|
2000
|
+
}
|
|
2001
|
+
.shellui-win {
|
|
2002
|
+
background: var(--card);
|
|
2003
|
+
color: var(--card-foreground);
|
|
2004
|
+
border: 1px solid var(--border);
|
|
2005
|
+
border-radius: calc(var(--radius) + 4px);
|
|
2006
|
+
box-shadow: var(--shellui-win-shadow-idle);
|
|
2007
|
+
}
|
|
2008
|
+
.shellui-win.is-focused {
|
|
2009
|
+
border-color: color-mix(in oklch, var(--border) 92%, var(--foreground));
|
|
2010
|
+
box-shadow: var(--shellui-win-shadow);
|
|
2011
|
+
}
|
|
2012
|
+
.shellui-win.is-flat {
|
|
2013
|
+
border: 0;
|
|
2014
|
+
border-radius: 0;
|
|
2015
|
+
box-shadow: none;
|
|
2016
|
+
}
|
|
2017
|
+
.shellui-win-titlebar {
|
|
2018
|
+
min-height: 36px;
|
|
2019
|
+
background: var(--card);
|
|
2020
|
+
border-bottom: 1px solid var(--border);
|
|
2021
|
+
font-size: 13px;
|
|
2022
|
+
font-weight: 600;
|
|
2023
|
+
}
|
|
2024
|
+
.shellui-win:not(.is-focused) .shellui-win-titlebar {
|
|
2025
|
+
color: var(--muted-foreground);
|
|
2026
|
+
font-weight: 550;
|
|
2027
|
+
}
|
|
2028
|
+
.shellui-win-tile {
|
|
2029
|
+
width: 18px;
|
|
2030
|
+
height: 18px;
|
|
2031
|
+
}
|
|
2032
|
+
.shellui-win-control {
|
|
2033
|
+
display: inline-flex;
|
|
2034
|
+
align-items: center;
|
|
2035
|
+
justify-content: center;
|
|
2036
|
+
width: 28px;
|
|
2037
|
+
height: 28px;
|
|
2038
|
+
border-radius: var(--shellui-r-row);
|
|
2039
|
+
color: var(--muted-foreground);
|
|
2040
|
+
cursor: pointer;
|
|
2041
|
+
transition:
|
|
2042
|
+
background-color 120ms var(--shellui-ease-out),
|
|
2043
|
+
color 120ms var(--shellui-ease-out);
|
|
2044
|
+
}
|
|
2045
|
+
.shellui-win-control:hover {
|
|
2046
|
+
background: var(--accent);
|
|
2047
|
+
color: var(--accent-foreground);
|
|
2048
|
+
}
|
|
2049
|
+
.shellui-win-control.shellui-win-close:hover {
|
|
2050
|
+
background: var(--destructive);
|
|
2051
|
+
color: var(--destructive-foreground, white);
|
|
2052
|
+
}
|
|
2053
|
+
.shellui-win.is-flat .shellui-win-control {
|
|
2054
|
+
width: 40px;
|
|
2055
|
+
height: 40px;
|
|
2056
|
+
}
|
|
2057
|
+
.shellui-win.is-flat .shellui-win-control svg {
|
|
2058
|
+
width: 18px;
|
|
2059
|
+
height: 18px;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
/*
|
|
2063
|
+
* The taskbar glass sits on a pseudo element: a backdrop-filter on the bar itself
|
|
2064
|
+
* would become the backdrop root of the start menu and stop its blur at the bar.
|
|
2065
|
+
*/
|
|
2066
|
+
.shellui-taskbar {
|
|
2067
|
+
color: var(--sidebar-foreground);
|
|
2068
|
+
}
|
|
2069
|
+
.shellui-taskbar::before {
|
|
2070
|
+
content: '';
|
|
2071
|
+
position: absolute;
|
|
2072
|
+
inset: 0;
|
|
2073
|
+
z-index: -1;
|
|
2074
|
+
background: var(--shellui-glass);
|
|
2075
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2076
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2077
|
+
border-top: 1px solid var(--shellui-glass-edge);
|
|
2078
|
+
pointer-events: none;
|
|
2079
|
+
}
|
|
2080
|
+
.shellui-windows-strip {
|
|
2081
|
+
background: var(--shellui-glass);
|
|
2082
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2083
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2084
|
+
border-bottom: 1px solid var(--shellui-glass-edge);
|
|
2085
|
+
}
|
|
2086
|
+
/* Centred on the window, text only: drag passes through to the strip. */
|
|
2087
|
+
.shellui-windows-strip-title {
|
|
2088
|
+
position: absolute;
|
|
2089
|
+
left: 50%;
|
|
2090
|
+
top: 50%;
|
|
2091
|
+
max-width: calc(100% - 2 * 180px);
|
|
2092
|
+
transform: translate(-50%, -50%);
|
|
2093
|
+
font-size: 12.5px;
|
|
2094
|
+
font-weight: 600;
|
|
2095
|
+
color: var(--sidebar-foreground);
|
|
2096
|
+
pointer-events: none;
|
|
2097
|
+
}
|
|
2098
|
+
.shellui-start {
|
|
2099
|
+
display: flex;
|
|
2100
|
+
align-items: center;
|
|
2101
|
+
gap: 8px;
|
|
2102
|
+
height: 38px;
|
|
2103
|
+
padding: 0 10px 0 7px;
|
|
2104
|
+
border-radius: var(--shellui-r-row);
|
|
2105
|
+
color: var(--sidebar-foreground);
|
|
2106
|
+
cursor: pointer;
|
|
2107
|
+
transition: background-color 120ms var(--shellui-ease-out);
|
|
2108
|
+
}
|
|
2109
|
+
.shellui-start :is(img, svg) {
|
|
2110
|
+
width: 24px;
|
|
2111
|
+
height: 24px;
|
|
2112
|
+
}
|
|
2113
|
+
.shellui-start:hover {
|
|
2114
|
+
background: var(--shellui-nav-hover-inset);
|
|
2115
|
+
}
|
|
2116
|
+
.shellui-start.is-open {
|
|
2117
|
+
background: color-mix(in oklch, var(--sidebar-foreground) 10%, transparent);
|
|
2118
|
+
}
|
|
2119
|
+
.shellui-start-name {
|
|
2120
|
+
font-size: 13.5px;
|
|
2121
|
+
font-weight: 600;
|
|
2122
|
+
}
|
|
2123
|
+
.shellui-task {
|
|
2124
|
+
position: relative;
|
|
2125
|
+
display: flex;
|
|
2126
|
+
align-items: center;
|
|
2127
|
+
gap: 8px;
|
|
2128
|
+
height: 38px;
|
|
2129
|
+
max-width: 160px;
|
|
2130
|
+
min-width: 0;
|
|
2131
|
+
padding: 0 10px;
|
|
2132
|
+
border-radius: var(--shellui-r-row);
|
|
2133
|
+
font-size: 13px;
|
|
2134
|
+
color: var(--sidebar-foreground);
|
|
2135
|
+
cursor: pointer;
|
|
2136
|
+
transition: background-color 120ms var(--shellui-ease-out);
|
|
2137
|
+
}
|
|
2138
|
+
.shellui-task:hover {
|
|
2139
|
+
background: var(--shellui-nav-hover-inset);
|
|
2140
|
+
}
|
|
2141
|
+
.shellui-task-list .shellui-task::after {
|
|
2142
|
+
content: '';
|
|
2143
|
+
position: absolute;
|
|
2144
|
+
left: 50%;
|
|
2145
|
+
bottom: 2px;
|
|
2146
|
+
width: 6px;
|
|
2147
|
+
height: 3px;
|
|
2148
|
+
border-radius: 3px;
|
|
2149
|
+
background: color-mix(in oklch, var(--sidebar-foreground) 40%, transparent);
|
|
2150
|
+
transform: translateX(-50%);
|
|
2151
|
+
transition:
|
|
2152
|
+
width 200ms var(--shellui-ease),
|
|
2153
|
+
background-color 200ms var(--shellui-ease);
|
|
2154
|
+
}
|
|
2155
|
+
.shellui-task.is-focused {
|
|
2156
|
+
background: color-mix(in oklch, var(--sidebar-foreground) 8%, transparent);
|
|
2157
|
+
font-weight: 600;
|
|
2158
|
+
}
|
|
2159
|
+
.shellui-task-list .shellui-task.is-focused::after {
|
|
2160
|
+
width: 16px;
|
|
2161
|
+
background: var(--shellui-nav-indicator);
|
|
2162
|
+
}
|
|
2163
|
+
.shellui-clock {
|
|
2164
|
+
color: var(--sidebar-foreground);
|
|
2165
|
+
border-left: 1px solid var(--shellui-hairline);
|
|
2166
|
+
}
|
|
2167
|
+
.shellui-clock-time {
|
|
2168
|
+
font-size: 12.5px;
|
|
2169
|
+
font-weight: 550;
|
|
2170
|
+
line-height: 1.2;
|
|
2171
|
+
}
|
|
2172
|
+
.shellui-clock-date {
|
|
2173
|
+
font-size: 11px;
|
|
2174
|
+
line-height: 1.2;
|
|
2175
|
+
color: color-mix(in oklch, var(--sidebar-foreground) 72%, transparent);
|
|
2176
|
+
}
|
|
2177
|
+
.shellui-taskbar[data-phone] .shellui-clock-date {
|
|
2178
|
+
display: none;
|
|
2179
|
+
}
|
|
2180
|
+
.shellui-taskbar[data-phone] .shellui-start-name {
|
|
2181
|
+
display: none;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
.shellui-start-menu {
|
|
2185
|
+
background: color-mix(in oklch, var(--popover) 86%, transparent);
|
|
2186
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2187
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2188
|
+
border: 1px solid var(--shellui-glass-edge);
|
|
2189
|
+
border-radius: calc(var(--radius) + 6px);
|
|
2190
|
+
box-shadow: var(--shellui-glass-shadow);
|
|
2191
|
+
}
|
|
2192
|
+
.shellui-start-head {
|
|
2193
|
+
border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
|
|
2194
|
+
}
|
|
2195
|
+
.shellui-start-title {
|
|
2196
|
+
font-size: 14px;
|
|
2197
|
+
font-weight: 600;
|
|
2198
|
+
letter-spacing: -0.01em;
|
|
2199
|
+
}
|
|
2200
|
+
.shellui-start-hint {
|
|
2201
|
+
margin-top: 2px;
|
|
2202
|
+
font-size: 12.5px;
|
|
2203
|
+
}
|
|
2204
|
+
.shellui-start-foot {
|
|
2205
|
+
border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
|
|
2206
|
+
}
|
|
2207
|
+
.shellui-start-row {
|
|
2208
|
+
display: flex;
|
|
2209
|
+
width: 100%;
|
|
2210
|
+
min-height: 44px;
|
|
2211
|
+
align-items: center;
|
|
2212
|
+
gap: 12px;
|
|
2213
|
+
padding: 6px 8px;
|
|
2214
|
+
border-radius: var(--shellui-r-row);
|
|
2215
|
+
text-align: left;
|
|
2216
|
+
color: var(--popover-foreground);
|
|
2217
|
+
cursor: pointer;
|
|
2218
|
+
transition: background-color 120ms var(--shellui-ease-out);
|
|
2219
|
+
}
|
|
2220
|
+
.shellui-start-row:hover {
|
|
2221
|
+
background: var(--accent);
|
|
2222
|
+
color: var(--accent-foreground);
|
|
2223
|
+
}
|
|
2224
|
+
.shellui-start-row.is-open {
|
|
2225
|
+
background: color-mix(in oklch, var(--accent) 50%, transparent);
|
|
2226
|
+
}
|
|
2227
|
+
.shellui-start-tile {
|
|
2228
|
+
display: flex;
|
|
2229
|
+
width: 28px;
|
|
2230
|
+
height: 28px;
|
|
2231
|
+
flex-shrink: 0;
|
|
2232
|
+
align-items: center;
|
|
2233
|
+
justify-content: center;
|
|
2234
|
+
border-radius: calc(var(--radius) - 2px);
|
|
2235
|
+
background: color-mix(in oklch, var(--muted) 70%, transparent);
|
|
2236
|
+
color: var(--foreground);
|
|
2237
|
+
box-shadow: 0 0 0 1px color-mix(in oklch, var(--border) 50%, transparent);
|
|
2238
|
+
}
|
|
2239
|
+
/* Phone: the start menu becomes a sheet above the taskbar. */
|
|
2240
|
+
.shellui-taskbar[data-phone] .shellui-start-menu {
|
|
2241
|
+
position: fixed;
|
|
2242
|
+
left: 8px;
|
|
2243
|
+
right: 8px;
|
|
2244
|
+
width: auto;
|
|
2245
|
+
bottom: calc(48px + var(--shellui-safe-area-bottom, 0px) + 8px);
|
|
2246
|
+
max-height: 70vh;
|
|
2247
|
+
margin: 0;
|
|
2248
|
+
}
|
|
2249
|
+
.shellui-taskbar[data-phone] .shellui-start-row {
|
|
2250
|
+
min-height: 48px;
|
|
2251
|
+
font-size: 15px;
|
|
2252
|
+
}
|
|
2253
|
+
/* Tauri density on desktop sized windows. */
|
|
2254
|
+
@media (min-width: 768px) {
|
|
2255
|
+
html[data-shellui-host='tauri'] .shellui-task {
|
|
2256
|
+
height: 36px;
|
|
2257
|
+
}
|
|
2258
|
+
html[data-shellui-host='tauri'] .shellui-start-row {
|
|
2259
|
+
min-height: 40px;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
2263
|
+
.shellui-start-menu {
|
|
2264
|
+
background: var(--popover);
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2268
|
+
.shellui-task,
|
|
2269
|
+
.shellui-task::after,
|
|
2270
|
+
.shellui-start,
|
|
2271
|
+
.shellui-start-row,
|
|
2272
|
+
.shellui-win-control {
|
|
2273
|
+
transition: none;
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
/* Fullscreen layout (Tauri): a small glass group keeps history buttons legible on any content. */
|
|
2278
|
+
.shellui-history-glass {
|
|
2279
|
+
gap: 2px;
|
|
2280
|
+
padding: 2px;
|
|
2281
|
+
border-radius: var(--shellui-r-row);
|
|
2282
|
+
background: var(--shellui-glass);
|
|
2283
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
2284
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
2285
|
+
box-shadow: 0 0 0 1px var(--shellui-glass-edge);
|
|
2286
|
+
}
|
|
2287
|
+
.shellui-history-glass :is(button, a):focus-visible {
|
|
2288
|
+
outline: 2px solid var(--sidebar-ring);
|
|
2289
|
+
outline-offset: -2px;
|
|
2290
|
+
}
|