@motion-proto/live-tokens 0.78.0 → 0.80.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/.claude/skills/live-tokens-check-compliance/SKILL.md +49 -38
- package/.claude/skills/live-tokens-create-component/SKILL.md +23 -28
- package/.claude/skills/live-tokens-create-component/references/contract-tests.md +61 -0
- package/.claude/skills/live-tokens-create-component/references/sketch-mode.md +2 -2
- package/.claude/skills/live-tokens-create-component/references/token-naming.md +6 -15
- package/.claude/skills/live-tokens-create-page/SKILL.md +6 -4
- package/.claude/skills/live-tokens-create-theme/references/design-directions.md +1 -1
- package/.claude/skills/live-tokens-pick-component/SKILL.md +3 -3
- package/.claude/skills/live-tokens-set-colors/references/color-anchors.md +1 -1
- package/.claude/skills/live-tokens-set-geometry/SKILL.md +1 -1
- package/.claude/skills/live-tokens-set-geometry/references/geometry-anchors.md +1 -1
- package/CHANGELOG.md +271 -0
- package/README.md +10 -16
- package/bin/check-component.mjs +154 -551
- package/bin/check-page.mjs +57 -541
- package/bin/cli.mjs +93 -16
- package/bin/contractRunner.mjs +37 -91
- package/bin/lib/buildChecks.mjs +32 -0
- package/bin/lib/catalogue.mjs +161 -34
- package/bin/lib/componentSource.mjs +152 -0
- package/bin/lib/cssValues.mjs +9 -0
- package/bin/lib/dataDir.mjs +126 -0
- package/bin/lib/findings.mjs +103 -12
- package/bin/lib/fixers.mjs +64 -0
- package/bin/lib/geometry.mjs +92 -0
- package/bin/lib/pageSource.mjs +230 -0
- package/bin/lib/report.mjs +57 -59
- package/bin/lib/tokenVocabulary.mjs +104 -34
- package/bin/migrate-build-script.mjs +66 -0
- package/bin/migrate.mjs +5 -0
- package/bin/rules/componentStructure.mjs +344 -0
- package/bin/rules/componentUse.mjs +313 -0
- package/bin/rules/importsAndRoutes.mjs +136 -0
- package/bin/rules/testRuns.mjs +122 -0
- package/bin/rules/tokens.mjs +426 -0
- package/bin/setup-claude.mjs +1 -2
- package/dist-plugin/{chunk-PDNL4NC5.js → chunk-D4WRIKEZ.js} +7 -2
- package/dist-plugin/{chunk-SWXRVZKT.js → chunk-REBHE3ZM.js} +414 -1
- package/dist-plugin/index.cjs +470 -19
- package/dist-plugin/index.d.cts +1 -0
- package/dist-plugin/index.d.ts +1 -0
- package/dist-plugin/index.js +87 -55
- package/dist-plugin/migrateData/index.cjs +422 -4
- package/dist-plugin/migrateData/index.js +2 -2
- package/dist-plugin/setColors/index.cjs +414 -1
- package/dist-plugin/setColors/index.d.cts +1 -1
- package/dist-plugin/setColors/index.d.ts +1 -1
- package/dist-plugin/setColors/index.js +1 -1
- package/dist-plugin/setGeometry/index.cjs +423 -13
- package/dist-plugin/setGeometry/index.d.cts +3 -3
- package/dist-plugin/setGeometry/index.d.ts +3 -3
- package/dist-plugin/setGeometry/index.js +10 -13
- package/dist-plugin/setType/index.d.cts +1 -1
- package/dist-plugin/setType/index.d.ts +1 -1
- package/dist-plugin/{themeTypes-BxRtuN5V.d.cts → themeTypes-B8_Idrp4.d.cts} +2 -2
- package/dist-plugin/{themeTypes-BxRtuN5V.d.ts → themeTypes-B8_Idrp4.d.ts} +2 -2
- package/package.json +2 -2
- package/src/editor/component-editor/CalloutEditor.svelte +2 -2
- package/src/editor/component-editor/CollapsibleSectionEditor.svelte +14 -15
- package/src/editor/component-editor/CornerBadgeEditor.svelte +14 -14
- package/src/editor/component-editor/DialogEditor.svelte +5 -5
- package/src/editor/component-editor/InlineEditActionsEditor.svelte +2 -2
- package/src/editor/component-editor/RadioButtonEditor.svelte +21 -21
- package/src/editor/component-editor/SectionDividerEditor.svelte +7 -7
- package/src/editor/component-editor/SegmentedControlEditor.svelte +5 -5
- package/src/editor/component-editor/SideNavigationEditor.svelte +25 -25
- package/src/editor/component-editor/TabBarEditor.svelte +6 -6
- package/src/editor/component-editor/TableEditor.svelte +6 -6
- package/src/editor/component-editor/ToggleEditor.svelte +2 -2
- package/src/editor/component-editor/index.ts +3 -0
- package/src/editor/component-editor/registry.ts +57 -1
- package/src/editor/component-editor/scaffolding/TokenLayout.svelte +14 -14
- package/src/editor/component-editor/scaffolding/VariantGroup.svelte +3 -0
- package/src/editor/component-editor/scaffolding/types.ts +15 -0
- package/src/editor/core/components/adjustAliases.ts +4 -4
- package/src/editor/core/components/aliasKinds.ts +20 -19
- package/src/editor/core/sketch/sketchLayer.ts +3 -3
- package/src/editor/core/themes/migrateComponentConfig.ts +14 -6
- package/src/editor/core/themes/migrations/2026-09-13-badge-brand.ts +42 -0
- package/src/editor/core/themes/migrations/2026-09-13-collapsiblesection-open.ts +33 -0
- package/src/editor/core/themes/migrations/2026-09-13-cornerbadge-prefix.ts +70 -0
- package/src/editor/core/themes/migrations/2026-09-13-hairline.ts +92 -0
- package/src/editor/core/themes/migrations/2026-09-13-indicator.ts +54 -0
- package/src/editor/core/themes/migrations/2026-09-13-sectiondivider-surface.ts +36 -0
- package/src/editor/core/themes/migrations/2026-09-13-selected-state.ts +124 -0
- package/src/editor/core/themes/migrations/2026-09-13-toggle-label.ts +31 -0
- package/src/editor/core/themes/migrations/index.ts +16 -0
- package/src/editor/core/themes/themeService.ts +3 -3
- package/src/editor/core/themes/themeTypes.ts +13 -15
- package/src/editor/docs/Docs.svelte +1 -1
- package/src/editor/docs/content/light-and-dark.md +3 -3
- package/src/editor/docs/content.generated.ts +1 -1
- package/src/editor/index.ts +1 -0
- package/src/editor/overlay/LiveEditorOverlay.svelte +15 -0
- package/src/editor/skill-atlas/SkillAtlas.svelte +4 -4
- package/src/editor/skill-atlas/TreeNodeCard.svelte +4 -4
- package/src/editor/skill-atlas/skillSources.generated.ts +11 -14
- package/src/editor/skill-atlas/skillTrees.ts +1 -3
- package/src/editor/skill-atlas/trees/check-compliance.ts +37 -149
- package/src/editor/skill-atlas/trees/create-component.ts +62 -64
- package/src/editor/skill-atlas/trees/create-page.ts +38 -17
- package/src/editor/skill-atlas/trees/pick-component.ts +3 -3
- package/src/editor/skill-atlas/trees/set-geometry.ts +1 -1
- package/src/editor/ui/UIPaletteSelector.svelte +11 -15
- package/src/editor/ui/variantScales.ts +8 -8
- package/src/live-tokens/data/themes/autumn.json +188 -188
- package/src/live-tokens/data/themes/halloween.json +188 -188
- package/src/live-tokens/data/themes/midnight-study.json +245 -245
- package/src/live-tokens/data/themes/ocean.json +188 -188
- package/src/live-tokens/data/themes/royal-velvet.json +188 -188
- package/src/live-tokens/data/themes/sketchy.json +188 -188
- package/src/live-tokens/data/themes/spring-meadow.json +188 -188
- package/src/live-tokens/data/themes/sunset.json +188 -188
- package/src/system/components/Badge.svelte +27 -23
- package/src/system/components/Button.svelte +13 -7
- package/src/system/components/Callout.svelte +16 -11
- package/src/system/components/Card.svelte +22 -15
- package/src/system/components/CodeSnippet.svelte +10 -6
- package/src/system/components/CollapsibleSection.svelte +81 -76
- package/src/system/components/CornerBadge.svelte +78 -72
- package/src/system/components/Dialog.svelte +21 -18
- package/src/system/components/IconButton.svelte +13 -9
- package/src/system/components/Image.svelte +14 -8
- package/src/system/components/ImageLightbox.svelte +10 -6
- package/src/system/components/InlineEditActions.svelte +17 -14
- package/src/system/components/Input.svelte +13 -7
- package/src/system/components/MenuSelect.svelte +13 -7
- package/src/system/components/Notification.svelte +17 -11
- package/src/system/components/Panel.svelte +13 -6
- package/src/system/components/ProgressBar.svelte +10 -5
- package/src/system/components/RadioButton.svelte +33 -30
- package/src/system/components/SectionDivider.svelte +28 -21
- package/src/system/components/SegmentedControl.svelte +27 -23
- package/src/system/components/SideNavigation.svelte +175 -171
- package/src/system/components/Slider.svelte +11 -7
- package/src/system/components/TabBar.svelte +53 -49
- package/src/system/components/Table.svelte +20 -15
- package/src/system/components/Toggle.svelte +14 -10
- package/src/system/components/Tooltip.svelte +10 -6
- package/src/system/styles/CONVENTIONS.md +3 -4
- package/src/testing-js/chunk-3UKGXCDL.js +48 -0
- package/src/testing-js/chunk-3UKGXCDL.js.map +1 -0
- package/src/testing-js/{chunk-FAFOAWYL.js → chunk-Q3YIAAG3.js} +17 -3
- package/src/testing-js/chunk-Q3YIAAG3.js.map +1 -0
- package/src/testing-js/{chunk-GNIUPIU2.js → chunk-U7OJE5DU.js} +18 -18
- package/src/testing-js/chunk-U7OJE5DU.js.map +1 -0
- package/src/testing-js/{chunk-4JQX6WWL.js → chunk-ZMZQZ33J.js} +474 -166
- package/src/testing-js/chunk-ZMZQZ33J.js.map +1 -0
- package/src/testing-js/component-behavior.contract.js +155 -0
- package/src/testing-js/component-behavior.contract.js.map +1 -0
- package/src/testing-js/component-editor.contract.js +6 -4
- package/src/testing-js/component-editor.contract.js.map +1 -1
- package/src/testing-js/component-render.contract.js +14 -10
- package/src/testing-js/component-render.contract.js.map +1 -1
- package/src/testing-js/index.d.ts +44 -4
- package/src/testing-js/index.js +13 -7
- package/src/testing-js/index.js.map +1 -1
- package/src/testing-js/page-compliance.contract.js +48 -10
- package/src/testing-js/page-compliance.contract.js.map +1 -1
- package/src/testing-js/registry.contract.js +5 -3
- package/src/testing-js/registry.contract.js.map +1 -1
- package/src/testing-js/{vitest-C-wNWcoA.d.ts → vitest-BMLIbDs2.d.ts} +8 -2
- package/src/testing-js/vitest.d.ts +1 -1
- package/src/testing-js/vitest.js +2 -1
- package/template/package.json +1 -2
- package/template/vite.config.ts +3 -2
- package/.claude/skills/live-tokens-create-component/SKILL copy.md +0 -196
- package/.claude/skills/live-tokens-fix-findings/SKILL.md +0 -105
- package/src/editor/skill-atlas/trees/fix-findings.ts +0 -504
- package/src/testing-js/chunk-4JQX6WWL.js.map +0 -1
- package/src/testing-js/chunk-FAFOAWYL.js.map +0 -1
- package/src/testing-js/chunk-GNIUPIU2.js.map +0 -1
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import type { CatalogueEntry } from '../../editor/component-editor/scaffolding/types';
|
|
3
|
+
|
|
4
|
+
export const catalogue = {
|
|
5
|
+
description: 'The rail that moves between the pages of a site.',
|
|
6
|
+
useFor: 'navigation that follows the current path.',
|
|
7
|
+
notFor: 'switching views inside one page (TabBar); a menu of actions (MenuSelect).',
|
|
8
|
+
} satisfies CatalogueEntry;
|
|
9
|
+
</script>
|
|
10
|
+
|
|
7
11
|
<script lang="ts">
|
|
8
12
|
import { createEventDispatcher } from 'svelte';
|
|
9
13
|
import CollapsibleSection from './CollapsibleSection.svelte';
|
|
10
14
|
|
|
11
15
|
export type SideNavItem = {
|
|
12
|
-
/** Full path. Matches `currentPath` exactly when this item is
|
|
16
|
+
/** Full path. Matches `currentPath` exactly when this item is selected. */
|
|
13
17
|
path: string;
|
|
14
18
|
title: string;
|
|
15
19
|
};
|
|
@@ -37,7 +41,7 @@
|
|
|
37
41
|
hoverTint?: boolean | undefined;
|
|
38
42
|
sections?: SideNavSection[];
|
|
39
43
|
footer?: SideNavFooter | undefined;
|
|
40
|
-
|
|
44
|
+
title?: string;
|
|
41
45
|
titleHref?: string;
|
|
42
46
|
currentPath?: string;
|
|
43
47
|
open?: boolean;
|
|
@@ -45,8 +49,8 @@
|
|
|
45
49
|
hrefFor?: (path: string) => string;
|
|
46
50
|
/** Force-hover one part for editor previews. */
|
|
47
51
|
forceHoverPart?: 'title' | 'toggle' | 'item' | 'footer' | 'section' | null;
|
|
48
|
-
/** Force
|
|
49
|
-
|
|
52
|
+
/** Force the selected state on one part for editor previews. */
|
|
53
|
+
forceSelectedPart?: 'title' | 'item' | 'footer' | 'section' | null;
|
|
50
54
|
class?: string;
|
|
51
55
|
/** Toggle callback. Preferred over `on:toggle` from 0.5.0 onward. */
|
|
52
56
|
ontoggle?: () => void;
|
|
@@ -63,13 +67,13 @@
|
|
|
63
67
|
hoverTint = undefined,
|
|
64
68
|
sections = [],
|
|
65
69
|
footer = undefined,
|
|
66
|
-
|
|
70
|
+
title = '',
|
|
67
71
|
titleHref = '#',
|
|
68
72
|
currentPath = '',
|
|
69
73
|
open = true,
|
|
70
74
|
hrefFor,
|
|
71
75
|
forceHoverPart = null,
|
|
72
|
-
|
|
76
|
+
forceSelectedPart = null,
|
|
73
77
|
class: className = '',
|
|
74
78
|
ontoggle,
|
|
75
79
|
lead,
|
|
@@ -86,11 +90,11 @@
|
|
|
86
90
|
|
|
87
91
|
let expandedSections: Record<string, boolean> = $state({});
|
|
88
92
|
|
|
89
|
-
// Auto-expand sections that match the current path or contain
|
|
93
|
+
// Auto-expand sections that match the current path or contain the selected item.
|
|
90
94
|
$effect(() => {
|
|
91
95
|
for (const section of sections) {
|
|
92
|
-
const
|
|
93
|
-
if (currentPath === section.path ||
|
|
96
|
+
const containsSelected = section.items.some((i) => i.path === currentPath);
|
|
97
|
+
if (currentPath === section.path || containsSelected) {
|
|
94
98
|
expandedSections[section.path] = true;
|
|
95
99
|
}
|
|
96
100
|
}
|
|
@@ -127,10 +131,10 @@
|
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
// The first section's first / second items are the canonical preview targets
|
|
130
|
-
// when the editor
|
|
134
|
+
// when the editor forces an item selected or hovered, so token edits
|
|
131
135
|
// always have a row to paint against.
|
|
132
|
-
let
|
|
133
|
-
if (
|
|
136
|
+
let selectedItemKey = $derived(() => {
|
|
137
|
+
if (forceSelectedPart !== 'item') return null;
|
|
134
138
|
const s = sections[0];
|
|
135
139
|
if (!s || s.items.length === 0) return null;
|
|
136
140
|
return s.items[0].path;
|
|
@@ -142,13 +146,13 @@
|
|
|
142
146
|
return s.items.find((item) => item.path !== currentPath)?.path ?? s.items[0].path;
|
|
143
147
|
});
|
|
144
148
|
|
|
145
|
-
let
|
|
149
|
+
let titleSelected = $derived(forceSelectedPart === 'title' || currentPath === '');
|
|
146
150
|
|
|
147
|
-
// When the editor
|
|
148
|
-
// that's a valid route (hasIndexPage) so the
|
|
151
|
+
// When the editor forces the "section" part selected, pick the first section
|
|
152
|
+
// that's a valid route (hasIndexPage) so the selected styling has somewhere
|
|
149
153
|
// to land in the preview.
|
|
150
|
-
let
|
|
151
|
-
if (
|
|
154
|
+
let selectedSectionKey = $derived(() => {
|
|
155
|
+
if (forceSelectedPart !== 'section') return null;
|
|
152
156
|
const s = sections.find((sec) => sec.hasIndexPage) ?? sections[0];
|
|
153
157
|
return s?.path ?? null;
|
|
154
158
|
});
|
|
@@ -158,9 +162,9 @@
|
|
|
158
162
|
return s?.path ?? null;
|
|
159
163
|
});
|
|
160
164
|
|
|
161
|
-
function
|
|
165
|
+
function isSectionSelected(section: SideNavSection): boolean {
|
|
162
166
|
if (!section.hasIndexPage) return false;
|
|
163
|
-
if (
|
|
167
|
+
if (selectedSectionKey() === section.path) return true;
|
|
164
168
|
return currentPath === section.path;
|
|
165
169
|
}
|
|
166
170
|
function isSectionHover(section: SideNavSection): boolean {
|
|
@@ -175,7 +179,7 @@
|
|
|
175
179
|
class:force-title-hover={forceHoverPart === 'title'}
|
|
176
180
|
class:force-toggle-hover={forceHoverPart === 'toggle'}
|
|
177
181
|
class:force-footer-hover={forceHoverPart === 'footer'}
|
|
178
|
-
class:force-footer-
|
|
182
|
+
class:force-footer-selected={forceSelectedPart === 'footer'}
|
|
179
183
|
>
|
|
180
184
|
{#if open && lead}{@render lead()}{/if}
|
|
181
185
|
|
|
@@ -184,9 +188,9 @@
|
|
|
184
188
|
rail is closed, the header reduces to just the toggle, centred via the
|
|
185
189
|
toggle's own `left` calc. Header stays locked to open-width regardless;
|
|
186
190
|
the aside's overflow clips it during the close animation. -->
|
|
187
|
-
<header class="sn-title" class:
|
|
191
|
+
<header class="sn-title" class:selected={titleSelected}>
|
|
188
192
|
{#if open}
|
|
189
|
-
<a href={titleHref} class="sn-title-label">{
|
|
193
|
+
<a href={titleHref} class="sn-title-label">{title}</a>
|
|
190
194
|
{/if}
|
|
191
195
|
|
|
192
196
|
<button
|
|
@@ -207,7 +211,7 @@
|
|
|
207
211
|
<!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_noninteractive_element_interactions, a11y_no_static_element_interactions -->
|
|
208
212
|
<div
|
|
209
213
|
class="sn-section-header"
|
|
210
|
-
class:
|
|
214
|
+
class:selected={isSectionSelected(section)}
|
|
211
215
|
class:force-hover={isSectionHover(section)}
|
|
212
216
|
onclick={(e) => maybeInterceptLabel(e, section)}
|
|
213
217
|
>
|
|
@@ -215,7 +219,7 @@
|
|
|
215
219
|
variant="chromeless"
|
|
216
220
|
label={section.title}
|
|
217
221
|
href={sectionHref(section)}
|
|
218
|
-
|
|
222
|
+
open={expandedSections[section.path] || false}
|
|
219
223
|
ontoggle={() => toggleSection(section.path)}
|
|
220
224
|
/>
|
|
221
225
|
</div>
|
|
@@ -226,7 +230,7 @@
|
|
|
226
230
|
<a
|
|
227
231
|
href={buildHref(item.path)}
|
|
228
232
|
class="sn-item"
|
|
229
|
-
class:
|
|
233
|
+
class:selected={item.path === currentPath || item.path === selectedItemKey()}
|
|
230
234
|
class:force-hover={item.path === hoverItemKey()}
|
|
231
235
|
>
|
|
232
236
|
{item.title}
|
|
@@ -241,7 +245,7 @@
|
|
|
241
245
|
<a
|
|
242
246
|
href={buildHref(footer.path)}
|
|
243
247
|
class="sn-footer"
|
|
244
|
-
class:
|
|
248
|
+
class:selected={currentPath === footer.path}
|
|
245
249
|
>
|
|
246
250
|
{#if footer.icon}<i class={footer.icon} aria-hidden="true"></i>{/if}
|
|
247
251
|
<span>{footer.title}</span>
|
|
@@ -298,8 +302,8 @@
|
|
|
298
302
|
--sidenavigation-title-default-border: var(--border-canvas-faint);
|
|
299
303
|
--sidenavigation-title-default-border-width: var(--border-width-1);
|
|
300
304
|
--sidenavigation-title-default-padding: var(--space-12);
|
|
301
|
-
--sidenavigation-title-default-
|
|
302
|
-
--sidenavigation-title-default-
|
|
305
|
+
--sidenavigation-title-default-indicator: var(--color-transparent);
|
|
306
|
+
--sidenavigation-title-default-indicator-width: var(--border-width-3);
|
|
303
307
|
--sidenavigation-title-default-label: var(--text-primary);
|
|
304
308
|
--sidenavigation-title-default-label-font-family: var(--font-display);
|
|
305
309
|
--sidenavigation-title-default-label-font-size: var(--font-size-2xl);
|
|
@@ -311,26 +315,26 @@
|
|
|
311
315
|
--sidenavigation-title-hover-border: var(--border-canvas-faint);
|
|
312
316
|
--sidenavigation-title-hover-border-width: var(--border-width-1);
|
|
313
317
|
--sidenavigation-title-hover-padding: var(--space-12);
|
|
314
|
-
--sidenavigation-title-hover-
|
|
315
|
-
--sidenavigation-title-hover-
|
|
318
|
+
--sidenavigation-title-hover-indicator: var(--color-transparent);
|
|
319
|
+
--sidenavigation-title-hover-indicator-width: var(--border-width-3);
|
|
316
320
|
--sidenavigation-title-hover-label: var(--text-primary);
|
|
317
321
|
--sidenavigation-title-hover-label-font-family: var(--font-display);
|
|
318
322
|
--sidenavigation-title-hover-label-font-size: var(--font-size-2xl);
|
|
319
323
|
--sidenavigation-title-hover-label-font-weight: var(--font-weight-bold);
|
|
320
324
|
--sidenavigation-title-hover-label-line-height: var(--line-height-tighter);
|
|
321
325
|
|
|
322
|
-
/* Title —
|
|
323
|
-
--sidenavigation-title-
|
|
324
|
-
--sidenavigation-title-
|
|
325
|
-
--sidenavigation-title-
|
|
326
|
-
--sidenavigation-title-
|
|
327
|
-
--sidenavigation-title-
|
|
328
|
-
--sidenavigation-title-
|
|
329
|
-
--sidenavigation-title-
|
|
330
|
-
--sidenavigation-title-
|
|
331
|
-
--sidenavigation-title-
|
|
332
|
-
--sidenavigation-title-
|
|
333
|
-
--sidenavigation-title-
|
|
326
|
+
/* Title — selected */
|
|
327
|
+
--sidenavigation-title-selected-surface: var(--surface-canvas-low);
|
|
328
|
+
--sidenavigation-title-selected-border: var(--border-canvas-faint);
|
|
329
|
+
--sidenavigation-title-selected-border-width: var(--border-width-1);
|
|
330
|
+
--sidenavigation-title-selected-padding: var(--space-12);
|
|
331
|
+
--sidenavigation-title-selected-indicator: var(--border-brand-medium);
|
|
332
|
+
--sidenavigation-title-selected-indicator-width: var(--border-width-3);
|
|
333
|
+
--sidenavigation-title-selected-label: var(--text-primary);
|
|
334
|
+
--sidenavigation-title-selected-label-font-family: var(--font-display);
|
|
335
|
+
--sidenavigation-title-selected-label-font-size: var(--font-size-2xl);
|
|
336
|
+
--sidenavigation-title-selected-label-font-weight: var(--font-weight-bold);
|
|
337
|
+
--sidenavigation-title-selected-label-line-height: var(--line-height-tighter);
|
|
334
338
|
|
|
335
339
|
/* Toggle — default */
|
|
336
340
|
--sidenavigation-toggle-default-surface: var(--color-transparent);
|
|
@@ -356,8 +360,8 @@
|
|
|
356
360
|
so section typography can be edited per-state without touching the
|
|
357
361
|
generic chromeless variant used elsewhere. */
|
|
358
362
|
--sidenavigation-section-default-surface: var(--color-transparent);
|
|
359
|
-
--sidenavigation-section-default-
|
|
360
|
-
--sidenavigation-section-default-
|
|
363
|
+
--sidenavigation-section-default-indicator: var(--color-transparent);
|
|
364
|
+
--sidenavigation-section-default-indicator-width: var(--border-width-3);
|
|
361
365
|
--sidenavigation-section-default-text: var(--text-primary);
|
|
362
366
|
--sidenavigation-section-default-text-font-family: var(--font-sans);
|
|
363
367
|
--sidenavigation-section-default-text-font-size: var(--font-size-lg);
|
|
@@ -366,29 +370,29 @@
|
|
|
366
370
|
|
|
367
371
|
/* Section header — hover */
|
|
368
372
|
--sidenavigation-section-hover-surface: var(--surface-canvas);
|
|
369
|
-
--sidenavigation-section-hover-
|
|
370
|
-
--sidenavigation-section-hover-
|
|
373
|
+
--sidenavigation-section-hover-indicator: var(--color-transparent);
|
|
374
|
+
--sidenavigation-section-hover-indicator-width: var(--border-width-3);
|
|
371
375
|
--sidenavigation-section-hover-text: var(--text-primary);
|
|
372
376
|
--sidenavigation-section-hover-text-font-family: var(--font-sans);
|
|
373
377
|
--sidenavigation-section-hover-text-font-size: var(--font-size-lg);
|
|
374
378
|
--sidenavigation-section-hover-text-font-weight: var(--font-weight-medium);
|
|
375
379
|
--sidenavigation-section-hover-text-line-height: var(--line-height-normal);
|
|
376
380
|
|
|
377
|
-
/* Section header —
|
|
378
|
-
--sidenavigation-section-
|
|
379
|
-
--sidenavigation-section-
|
|
380
|
-
--sidenavigation-section-
|
|
381
|
-
--sidenavigation-section-
|
|
382
|
-
--sidenavigation-section-
|
|
383
|
-
--sidenavigation-section-
|
|
384
|
-
--sidenavigation-section-
|
|
385
|
-
--sidenavigation-section-
|
|
381
|
+
/* Section header — selected (this section's page is the current route) */
|
|
382
|
+
--sidenavigation-section-selected-surface: var(--surface-canvas-low);
|
|
383
|
+
--sidenavigation-section-selected-indicator: var(--border-brand-medium);
|
|
384
|
+
--sidenavigation-section-selected-indicator-width: var(--border-width-3);
|
|
385
|
+
--sidenavigation-section-selected-text: var(--text-primary);
|
|
386
|
+
--sidenavigation-section-selected-text-font-family: var(--font-sans);
|
|
387
|
+
--sidenavigation-section-selected-text-font-size: var(--font-size-lg);
|
|
388
|
+
--sidenavigation-section-selected-text-font-weight: var(--font-weight-medium);
|
|
389
|
+
--sidenavigation-section-selected-text-line-height: var(--line-height-normal);
|
|
386
390
|
|
|
387
391
|
/* Item — default */
|
|
388
392
|
--sidenavigation-item-default-surface: var(--color-transparent);
|
|
389
393
|
--sidenavigation-item-default-padding: var(--space-6);
|
|
390
|
-
--sidenavigation-item-default-
|
|
391
|
-
--sidenavigation-item-default-
|
|
394
|
+
--sidenavigation-item-default-indicator: var(--color-transparent);
|
|
395
|
+
--sidenavigation-item-default-indicator-width: var(--border-width-3);
|
|
392
396
|
--sidenavigation-item-default-text: var(--text-tertiary);
|
|
393
397
|
--sidenavigation-item-default-text-font-family: var(--font-sans);
|
|
394
398
|
--sidenavigation-item-default-text-font-size: var(--font-size-md);
|
|
@@ -398,31 +402,31 @@
|
|
|
398
402
|
/* Item — hover */
|
|
399
403
|
--sidenavigation-item-hover-surface: var(--surface-canvas);
|
|
400
404
|
--sidenavigation-item-hover-padding: var(--space-6);
|
|
401
|
-
--sidenavigation-item-hover-
|
|
402
|
-
--sidenavigation-item-hover-
|
|
405
|
+
--sidenavigation-item-hover-indicator: var(--color-transparent);
|
|
406
|
+
--sidenavigation-item-hover-indicator-width: var(--border-width-3);
|
|
403
407
|
--sidenavigation-item-hover-text: var(--text-secondary);
|
|
404
408
|
--sidenavigation-item-hover-text-font-family: var(--font-sans);
|
|
405
409
|
--sidenavigation-item-hover-text-font-size: var(--font-size-md);
|
|
406
410
|
--sidenavigation-item-hover-text-font-weight: var(--font-weight-light);
|
|
407
411
|
--sidenavigation-item-hover-text-line-height: var(--line-height-normal);
|
|
408
412
|
|
|
409
|
-
/* Item —
|
|
410
|
-
--sidenavigation-item-
|
|
411
|
-
--sidenavigation-item-
|
|
412
|
-
--sidenavigation-item-
|
|
413
|
-
--sidenavigation-item-
|
|
414
|
-
--sidenavigation-item-
|
|
415
|
-
--sidenavigation-item-
|
|
416
|
-
--sidenavigation-item-
|
|
417
|
-
--sidenavigation-item-
|
|
418
|
-
--sidenavigation-item-
|
|
413
|
+
/* Item — selected */
|
|
414
|
+
--sidenavigation-item-selected-surface: var(--surface-canvas-low);
|
|
415
|
+
--sidenavigation-item-selected-padding: var(--space-6);
|
|
416
|
+
--sidenavigation-item-selected-indicator: var(--border-brand-medium);
|
|
417
|
+
--sidenavigation-item-selected-indicator-width: var(--border-width-3);
|
|
418
|
+
--sidenavigation-item-selected-text: var(--text-primary);
|
|
419
|
+
--sidenavigation-item-selected-text-font-family: var(--font-sans);
|
|
420
|
+
--sidenavigation-item-selected-text-font-size: var(--font-size-md);
|
|
421
|
+
--sidenavigation-item-selected-text-font-weight: var(--font-weight-normal);
|
|
422
|
+
--sidenavigation-item-selected-text-line-height: var(--line-height-normal);
|
|
419
423
|
|
|
420
424
|
/* Footer — default */
|
|
421
425
|
--sidenavigation-footer-default-surface: var(--color-transparent);
|
|
422
426
|
--sidenavigation-footer-default-padding: var(--space-8);
|
|
423
427
|
--sidenavigation-footer-default-gap: var(--space-8);
|
|
424
|
-
--sidenavigation-footer-default-
|
|
425
|
-
--sidenavigation-footer-default-
|
|
428
|
+
--sidenavigation-footer-default-indicator: var(--color-transparent);
|
|
429
|
+
--sidenavigation-footer-default-indicator-width: var(--border-width-3);
|
|
426
430
|
--sidenavigation-footer-default-icon: var(--text-muted);
|
|
427
431
|
--sidenavigation-footer-default-icon-size: var(--icon-size-xs);
|
|
428
432
|
--sidenavigation-footer-default-text: var(--text-tertiary);
|
|
@@ -435,8 +439,8 @@
|
|
|
435
439
|
--sidenavigation-footer-hover-surface: var(--surface-canvas);
|
|
436
440
|
--sidenavigation-footer-hover-padding: var(--space-8);
|
|
437
441
|
--sidenavigation-footer-hover-gap: var(--space-8);
|
|
438
|
-
--sidenavigation-footer-hover-
|
|
439
|
-
--sidenavigation-footer-hover-
|
|
442
|
+
--sidenavigation-footer-hover-indicator: var(--color-transparent);
|
|
443
|
+
--sidenavigation-footer-hover-indicator-width: var(--border-width-3);
|
|
440
444
|
--sidenavigation-footer-hover-icon: var(--text-secondary);
|
|
441
445
|
--sidenavigation-footer-hover-icon-size: var(--icon-size-xs);
|
|
442
446
|
--sidenavigation-footer-hover-text: var(--text-secondary);
|
|
@@ -445,19 +449,19 @@
|
|
|
445
449
|
--sidenavigation-footer-hover-text-font-weight: var(--font-weight-light);
|
|
446
450
|
--sidenavigation-footer-hover-text-line-height: var(--line-height-normal);
|
|
447
451
|
|
|
448
|
-
/* Footer —
|
|
449
|
-
--sidenavigation-footer-
|
|
450
|
-
--sidenavigation-footer-
|
|
451
|
-
--sidenavigation-footer-
|
|
452
|
-
--sidenavigation-footer-
|
|
453
|
-
--sidenavigation-footer-
|
|
454
|
-
--sidenavigation-footer-
|
|
455
|
-
--sidenavigation-footer-
|
|
456
|
-
--sidenavigation-footer-
|
|
457
|
-
--sidenavigation-footer-
|
|
458
|
-
--sidenavigation-footer-
|
|
459
|
-
--sidenavigation-footer-
|
|
460
|
-
--sidenavigation-footer-
|
|
452
|
+
/* Footer — selected */
|
|
453
|
+
--sidenavigation-footer-selected-surface: var(--surface-canvas-low);
|
|
454
|
+
--sidenavigation-footer-selected-padding: var(--space-8);
|
|
455
|
+
--sidenavigation-footer-selected-gap: var(--space-8);
|
|
456
|
+
--sidenavigation-footer-selected-indicator: var(--border-brand-medium);
|
|
457
|
+
--sidenavigation-footer-selected-indicator-width: var(--border-width-3);
|
|
458
|
+
--sidenavigation-footer-selected-icon: var(--text-primary);
|
|
459
|
+
--sidenavigation-footer-selected-icon-size: var(--icon-size-xs);
|
|
460
|
+
--sidenavigation-footer-selected-text: var(--text-primary);
|
|
461
|
+
--sidenavigation-footer-selected-text-font-family: var(--font-sans);
|
|
462
|
+
--sidenavigation-footer-selected-text-font-size: var(--font-size-sm);
|
|
463
|
+
--sidenavigation-footer-selected-text-font-weight: var(--font-weight-normal);
|
|
464
|
+
--sidenavigation-footer-selected-text-line-height: var(--line-height-normal);
|
|
461
465
|
}
|
|
462
466
|
|
|
463
467
|
.sidenavigation {
|
|
@@ -492,8 +496,8 @@
|
|
|
492
496
|
--_surface: var(--sidenavigation-title-default-surface);
|
|
493
497
|
--_border: var(--sidenavigation-title-default-border);
|
|
494
498
|
--_border-width: var(--sidenavigation-title-default-border-width);
|
|
495
|
-
--_indicator: var(--sidenavigation-title-default-
|
|
496
|
-
--_indicator-width: var(--sidenavigation-title-default-
|
|
499
|
+
--_indicator: var(--sidenavigation-title-default-indicator);
|
|
500
|
+
--_indicator-width: var(--sidenavigation-title-default-indicator-width);
|
|
497
501
|
--_padding: var(--sidenavigation-title-default-padding);
|
|
498
502
|
--_label: var(--sidenavigation-title-default-label);
|
|
499
503
|
--_label-family: var(--sidenavigation-title-default-label-font-family);
|
|
@@ -520,14 +524,14 @@
|
|
|
520
524
|
transition: background var(--duration-150);
|
|
521
525
|
}
|
|
522
526
|
|
|
523
|
-
.sn-title:hover:not(.
|
|
524
|
-
.sidenavigation.force-title-hover .sn-title:not(.
|
|
527
|
+
.sn-title:hover:not(.selected),
|
|
528
|
+
.sidenavigation.force-title-hover .sn-title:not(.selected) {
|
|
525
529
|
background-image: linear-gradient(var(--sidenavigation-hover-tint-enabled), var(--sidenavigation-hover-tint-enabled));
|
|
526
530
|
--_surface: var(--sidenavigation-title-hover-surface);
|
|
527
531
|
--_border: var(--sidenavigation-title-hover-border);
|
|
528
532
|
--_border-width: var(--sidenavigation-title-hover-border-width);
|
|
529
|
-
--_indicator: var(--sidenavigation-title-hover-
|
|
530
|
-
--_indicator-width: var(--sidenavigation-title-hover-
|
|
533
|
+
--_indicator: var(--sidenavigation-title-hover-indicator);
|
|
534
|
+
--_indicator-width: var(--sidenavigation-title-hover-indicator-width);
|
|
531
535
|
--_padding: var(--sidenavigation-title-hover-padding);
|
|
532
536
|
--_label: var(--sidenavigation-title-hover-label);
|
|
533
537
|
--_label-family: var(--sidenavigation-title-hover-label-font-family);
|
|
@@ -536,18 +540,18 @@
|
|
|
536
540
|
--_label-line-height: var(--sidenavigation-title-hover-label-line-height);
|
|
537
541
|
}
|
|
538
542
|
|
|
539
|
-
.sn-title.
|
|
540
|
-
--_surface: var(--sidenavigation-title-
|
|
541
|
-
--_border: var(--sidenavigation-title-
|
|
542
|
-
--_border-width: var(--sidenavigation-title-
|
|
543
|
-
--_indicator: var(--sidenavigation-title-
|
|
544
|
-
--_indicator-width: var(--sidenavigation-title-
|
|
545
|
-
--_padding: var(--sidenavigation-title-
|
|
546
|
-
--_label: var(--sidenavigation-title-
|
|
547
|
-
--_label-family: var(--sidenavigation-title-
|
|
548
|
-
--_label-size: var(--sidenavigation-title-
|
|
549
|
-
--_label-weight: var(--sidenavigation-title-
|
|
550
|
-
--_label-line-height: var(--sidenavigation-title-
|
|
543
|
+
.sn-title.selected {
|
|
544
|
+
--_surface: var(--sidenavigation-title-selected-surface);
|
|
545
|
+
--_border: var(--sidenavigation-title-selected-border);
|
|
546
|
+
--_border-width: var(--sidenavigation-title-selected-border-width);
|
|
547
|
+
--_indicator: var(--sidenavigation-title-selected-indicator);
|
|
548
|
+
--_indicator-width: var(--sidenavigation-title-selected-indicator-width);
|
|
549
|
+
--_padding: var(--sidenavigation-title-selected-padding);
|
|
550
|
+
--_label: var(--sidenavigation-title-selected-label);
|
|
551
|
+
--_label-family: var(--sidenavigation-title-selected-label-font-family);
|
|
552
|
+
--_label-size: var(--sidenavigation-title-selected-label-font-size);
|
|
553
|
+
--_label-weight: var(--sidenavigation-title-selected-label-font-weight);
|
|
554
|
+
--_label-line-height: var(--sidenavigation-title-selected-label-line-height);
|
|
551
555
|
}
|
|
552
556
|
|
|
553
557
|
/* In the collapsed state the header narrows with the rail. Drop horizontal
|
|
@@ -654,15 +658,15 @@
|
|
|
654
658
|
}
|
|
655
659
|
|
|
656
660
|
/* Section header wrapper. Paints background + left indicator around the
|
|
657
|
-
CollapsibleSection so a section that's also a route can show
|
|
661
|
+
CollapsibleSection so a section that's also a route can show a selected
|
|
658
662
|
state matching the panel's item/footer treatment. Section text tokens
|
|
659
663
|
are forwarded into the inner CollapsibleSection by shadowing its
|
|
660
664
|
chromeless slots — section typography can then be edited per-state
|
|
661
665
|
without touching the generic chromeless variant. */
|
|
662
666
|
.sn-section-header {
|
|
663
667
|
--_surface: var(--sidenavigation-section-default-surface);
|
|
664
|
-
--_indicator: var(--sidenavigation-section-default-
|
|
665
|
-
--_indicator-width: var(--sidenavigation-section-default-
|
|
668
|
+
--_indicator: var(--sidenavigation-section-default-indicator);
|
|
669
|
+
--_indicator-width: var(--sidenavigation-section-default-indicator-width);
|
|
666
670
|
|
|
667
671
|
--collapsiblesection-chromeless-default-label: var(--sidenavigation-section-default-text);
|
|
668
672
|
--collapsiblesection-chromeless-default-label-font-family: var(--sidenavigation-section-default-text-font-family);
|
|
@@ -679,36 +683,36 @@
|
|
|
679
683
|
border-left: var(--_indicator-width) solid var(--_indicator);
|
|
680
684
|
transition: background var(--duration-150), border-color var(--duration-150);
|
|
681
685
|
}
|
|
682
|
-
.sn-section-header:hover:not(.
|
|
683
|
-
.sn-section-header.force-hover:not(.
|
|
686
|
+
.sn-section-header:hover:not(.selected),
|
|
687
|
+
.sn-section-header.force-hover:not(.selected) {
|
|
684
688
|
background-image: linear-gradient(var(--sidenavigation-hover-tint-enabled), var(--sidenavigation-hover-tint-enabled));
|
|
685
689
|
--_surface: var(--sidenavigation-section-hover-surface);
|
|
686
|
-
--_indicator: var(--sidenavigation-section-hover-
|
|
687
|
-
--_indicator-width: var(--sidenavigation-section-hover-
|
|
690
|
+
--_indicator: var(--sidenavigation-section-hover-indicator);
|
|
691
|
+
--_indicator-width: var(--sidenavigation-section-hover-indicator-width);
|
|
688
692
|
--collapsiblesection-chromeless-default-label: var(--sidenavigation-section-hover-text);
|
|
689
693
|
--collapsiblesection-chromeless-default-label-font-family: var(--sidenavigation-section-hover-text-font-family);
|
|
690
694
|
--collapsiblesection-chromeless-default-label-font-size: var(--sidenavigation-section-hover-text-font-size);
|
|
691
695
|
--collapsiblesection-chromeless-default-label-font-weight: var(--sidenavigation-section-hover-text-font-weight);
|
|
692
696
|
--collapsiblesection-chromeless-default-label-line-height: var(--sidenavigation-section-hover-text-line-height);
|
|
693
697
|
}
|
|
694
|
-
.sn-section-header.
|
|
695
|
-
--_surface: var(--sidenavigation-section-
|
|
696
|
-
--_indicator: var(--sidenavigation-section-
|
|
697
|
-
--_indicator-width: var(--sidenavigation-section-
|
|
698
|
-
|
|
699
|
-
/* Inner CollapsibleSection has no
|
|
700
|
-
default-slot and hover-slot with the
|
|
701
|
-
header keeps painting
|
|
702
|
-
--collapsiblesection-chromeless-default-label: var(--sidenavigation-section-
|
|
703
|
-
--collapsiblesection-chromeless-default-label-font-family: var(--sidenavigation-section-
|
|
704
|
-
--collapsiblesection-chromeless-default-label-font-size: var(--sidenavigation-section-
|
|
705
|
-
--collapsiblesection-chromeless-default-label-font-weight: var(--sidenavigation-section-
|
|
706
|
-
--collapsiblesection-chromeless-default-label-line-height: var(--sidenavigation-section-
|
|
707
|
-
--collapsiblesection-chromeless-hover-label: var(--sidenavigation-section-
|
|
708
|
-
--collapsiblesection-chromeless-hover-label-font-family: var(--sidenavigation-section-
|
|
709
|
-
--collapsiblesection-chromeless-hover-label-font-size: var(--sidenavigation-section-
|
|
710
|
-
--collapsiblesection-chromeless-hover-label-font-weight: var(--sidenavigation-section-
|
|
711
|
-
--collapsiblesection-chromeless-hover-label-line-height: var(--sidenavigation-section-
|
|
698
|
+
.sn-section-header.selected {
|
|
699
|
+
--_surface: var(--sidenavigation-section-selected-surface);
|
|
700
|
+
--_indicator: var(--sidenavigation-section-selected-indicator);
|
|
701
|
+
--_indicator-width: var(--sidenavigation-section-selected-indicator-width);
|
|
702
|
+
|
|
703
|
+
/* Inner CollapsibleSection has no selected state — shadow both the
|
|
704
|
+
default-slot and hover-slot with the selected text values so the section
|
|
705
|
+
header keeps painting selected typography whether or not it's hovered. */
|
|
706
|
+
--collapsiblesection-chromeless-default-label: var(--sidenavigation-section-selected-text);
|
|
707
|
+
--collapsiblesection-chromeless-default-label-font-family: var(--sidenavigation-section-selected-text-font-family);
|
|
708
|
+
--collapsiblesection-chromeless-default-label-font-size: var(--sidenavigation-section-selected-text-font-size);
|
|
709
|
+
--collapsiblesection-chromeless-default-label-font-weight: var(--sidenavigation-section-selected-text-font-weight);
|
|
710
|
+
--collapsiblesection-chromeless-default-label-line-height: var(--sidenavigation-section-selected-text-line-height);
|
|
711
|
+
--collapsiblesection-chromeless-hover-label: var(--sidenavigation-section-selected-text);
|
|
712
|
+
--collapsiblesection-chromeless-hover-label-font-family: var(--sidenavigation-section-selected-text-font-family);
|
|
713
|
+
--collapsiblesection-chromeless-hover-label-font-size: var(--sidenavigation-section-selected-text-font-size);
|
|
714
|
+
--collapsiblesection-chromeless-hover-label-font-weight: var(--sidenavigation-section-selected-text-font-weight);
|
|
715
|
+
--collapsiblesection-chromeless-hover-label-line-height: var(--sidenavigation-section-selected-text-line-height);
|
|
712
716
|
}
|
|
713
717
|
|
|
714
718
|
.sn-items {
|
|
@@ -720,8 +724,8 @@
|
|
|
720
724
|
.sn-item {
|
|
721
725
|
--_surface: var(--sidenavigation-item-default-surface);
|
|
722
726
|
--_padding: var(--sidenavigation-item-default-padding);
|
|
723
|
-
--_indicator: var(--sidenavigation-item-default-
|
|
724
|
-
--_indicator-width: var(--sidenavigation-item-default-
|
|
727
|
+
--_indicator: var(--sidenavigation-item-default-indicator);
|
|
728
|
+
--_indicator-width: var(--sidenavigation-item-default-indicator-width);
|
|
725
729
|
--_text: var(--sidenavigation-item-default-text);
|
|
726
730
|
--_text-family: var(--sidenavigation-item-default-text-font-family);
|
|
727
731
|
--_text-size: var(--sidenavigation-item-default-text-font-size);
|
|
@@ -742,13 +746,13 @@
|
|
|
742
746
|
transition: background var(--duration-150), color var(--duration-150);
|
|
743
747
|
}
|
|
744
748
|
|
|
745
|
-
.sn-item:hover:not(.
|
|
746
|
-
.sn-item.force-hover:not(.
|
|
749
|
+
.sn-item:hover:not(.selected),
|
|
750
|
+
.sn-item.force-hover:not(.selected) {
|
|
747
751
|
background-image: linear-gradient(var(--sidenavigation-hover-tint-enabled), var(--sidenavigation-hover-tint-enabled));
|
|
748
752
|
--_surface: var(--sidenavigation-item-hover-surface);
|
|
749
753
|
--_padding: var(--sidenavigation-item-hover-padding);
|
|
750
|
-
--_indicator: var(--sidenavigation-item-hover-
|
|
751
|
-
--_indicator-width: var(--sidenavigation-item-hover-
|
|
754
|
+
--_indicator: var(--sidenavigation-item-hover-indicator);
|
|
755
|
+
--_indicator-width: var(--sidenavigation-item-hover-indicator-width);
|
|
752
756
|
--_text: var(--sidenavigation-item-hover-text);
|
|
753
757
|
--_text-family: var(--sidenavigation-item-hover-text-font-family);
|
|
754
758
|
--_text-size: var(--sidenavigation-item-hover-text-font-size);
|
|
@@ -756,24 +760,24 @@
|
|
|
756
760
|
--_text-line-height: var(--sidenavigation-item-hover-text-line-height);
|
|
757
761
|
}
|
|
758
762
|
|
|
759
|
-
.sn-item.
|
|
760
|
-
--_surface: var(--sidenavigation-item-
|
|
761
|
-
--_padding: var(--sidenavigation-item-
|
|
762
|
-
--_indicator: var(--sidenavigation-item-
|
|
763
|
-
--_indicator-width: var(--sidenavigation-item-
|
|
764
|
-
--_text: var(--sidenavigation-item-
|
|
765
|
-
--_text-family: var(--sidenavigation-item-
|
|
766
|
-
--_text-size: var(--sidenavigation-item-
|
|
767
|
-
--_text-weight: var(--sidenavigation-item-
|
|
768
|
-
--_text-line-height: var(--sidenavigation-item-
|
|
763
|
+
.sn-item.selected {
|
|
764
|
+
--_surface: var(--sidenavigation-item-selected-surface);
|
|
765
|
+
--_padding: var(--sidenavigation-item-selected-padding);
|
|
766
|
+
--_indicator: var(--sidenavigation-item-selected-indicator);
|
|
767
|
+
--_indicator-width: var(--sidenavigation-item-selected-indicator-width);
|
|
768
|
+
--_text: var(--sidenavigation-item-selected-text);
|
|
769
|
+
--_text-family: var(--sidenavigation-item-selected-text-font-family);
|
|
770
|
+
--_text-size: var(--sidenavigation-item-selected-text-font-size);
|
|
771
|
+
--_text-weight: var(--sidenavigation-item-selected-text-font-weight);
|
|
772
|
+
--_text-line-height: var(--sidenavigation-item-selected-text-line-height);
|
|
769
773
|
}
|
|
770
774
|
|
|
771
775
|
.sn-footer {
|
|
772
776
|
--_surface: var(--sidenavigation-footer-default-surface);
|
|
773
777
|
--_padding: var(--sidenavigation-footer-default-padding);
|
|
774
778
|
--_gap: var(--sidenavigation-footer-default-gap);
|
|
775
|
-
--_indicator: var(--sidenavigation-footer-default-
|
|
776
|
-
--_indicator-width: var(--sidenavigation-footer-default-
|
|
779
|
+
--_indicator: var(--sidenavigation-footer-default-indicator);
|
|
780
|
+
--_indicator-width: var(--sidenavigation-footer-default-indicator-width);
|
|
777
781
|
--_icon: var(--sidenavigation-footer-default-icon);
|
|
778
782
|
--_icon-size: var(--sidenavigation-footer-default-icon-size);
|
|
779
783
|
--_text: var(--sidenavigation-footer-default-text);
|
|
@@ -804,14 +808,14 @@
|
|
|
804
808
|
line-height: 1;
|
|
805
809
|
}
|
|
806
810
|
|
|
807
|
-
.sn-footer:hover:not(.
|
|
808
|
-
.sidenavigation.force-footer-hover .sn-footer:not(.
|
|
811
|
+
.sn-footer:hover:not(.selected),
|
|
812
|
+
.sidenavigation.force-footer-hover .sn-footer:not(.selected) {
|
|
809
813
|
background-image: linear-gradient(var(--sidenavigation-hover-tint-enabled), var(--sidenavigation-hover-tint-enabled));
|
|
810
814
|
--_surface: var(--sidenavigation-footer-hover-surface);
|
|
811
815
|
--_padding: var(--sidenavigation-footer-hover-padding);
|
|
812
816
|
--_gap: var(--sidenavigation-footer-hover-gap);
|
|
813
|
-
--_indicator: var(--sidenavigation-footer-hover-
|
|
814
|
-
--_indicator-width: var(--sidenavigation-footer-hover-
|
|
817
|
+
--_indicator: var(--sidenavigation-footer-hover-indicator);
|
|
818
|
+
--_indicator-width: var(--sidenavigation-footer-hover-indicator-width);
|
|
815
819
|
--_icon: var(--sidenavigation-footer-hover-icon);
|
|
816
820
|
--_icon-size: var(--sidenavigation-footer-hover-icon-size);
|
|
817
821
|
--_text: var(--sidenavigation-footer-hover-text);
|
|
@@ -821,19 +825,19 @@
|
|
|
821
825
|
--_text-line-height: var(--sidenavigation-footer-hover-text-line-height);
|
|
822
826
|
}
|
|
823
827
|
|
|
824
|
-
.sn-footer.
|
|
825
|
-
.sidenavigation.force-footer-
|
|
826
|
-
--_surface: var(--sidenavigation-footer-
|
|
827
|
-
--_padding: var(--sidenavigation-footer-
|
|
828
|
-
--_gap: var(--sidenavigation-footer-
|
|
829
|
-
--_indicator: var(--sidenavigation-footer-
|
|
830
|
-
--_indicator-width: var(--sidenavigation-footer-
|
|
831
|
-
--_icon: var(--sidenavigation-footer-
|
|
832
|
-
--_icon-size: var(--sidenavigation-footer-
|
|
833
|
-
--_text: var(--sidenavigation-footer-
|
|
834
|
-
--_text-family: var(--sidenavigation-footer-
|
|
835
|
-
--_text-size: var(--sidenavigation-footer-
|
|
836
|
-
--_text-weight: var(--sidenavigation-footer-
|
|
837
|
-
--_text-line-height: var(--sidenavigation-footer-
|
|
828
|
+
.sn-footer.selected,
|
|
829
|
+
.sidenavigation.force-footer-selected .sn-footer {
|
|
830
|
+
--_surface: var(--sidenavigation-footer-selected-surface);
|
|
831
|
+
--_padding: var(--sidenavigation-footer-selected-padding);
|
|
832
|
+
--_gap: var(--sidenavigation-footer-selected-gap);
|
|
833
|
+
--_indicator: var(--sidenavigation-footer-selected-indicator);
|
|
834
|
+
--_indicator-width: var(--sidenavigation-footer-selected-indicator-width);
|
|
835
|
+
--_icon: var(--sidenavigation-footer-selected-icon);
|
|
836
|
+
--_icon-size: var(--sidenavigation-footer-selected-icon-size);
|
|
837
|
+
--_text: var(--sidenavigation-footer-selected-text);
|
|
838
|
+
--_text-family: var(--sidenavigation-footer-selected-text-font-family);
|
|
839
|
+
--_text-size: var(--sidenavigation-footer-selected-text-font-size);
|
|
840
|
+
--_text-weight: var(--sidenavigation-footer-selected-text-font-weight);
|
|
841
|
+
--_text-line-height: var(--sidenavigation-footer-selected-text-line-height);
|
|
838
842
|
}
|
|
839
843
|
</style>
|