@nyxwire/css 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +133 -2
- package/dist/base.css +850 -0
- package/dist/components.css +10508 -0
- package/dist/docs/components/accordion.md +83 -0
- package/dist/docs/components/alert.md +52 -0
- package/dist/docs/components/avatar.md +55 -0
- package/dist/docs/components/badge.md +64 -0
- package/dist/docs/components/breadcrumbs.md +64 -0
- package/dist/docs/components/button.md +197 -0
- package/dist/docs/components/card.md +103 -0
- package/dist/docs/components/checkbox.md +45 -0
- package/dist/docs/components/chip.md +30 -0
- package/dist/docs/components/cluster.md +33 -0
- package/dist/docs/components/code.md +65 -0
- package/dist/docs/components/container.md +24 -0
- package/dist/docs/components/dialog.md +199 -0
- package/dist/docs/components/divider.md +31 -0
- package/dist/docs/components/dl.md +24 -0
- package/dist/docs/components/effect-utilities.md +82 -0
- package/dist/docs/components/empty.md +40 -0
- package/dist/docs/components/frame.md +27 -0
- package/dist/docs/components/grid.md +31 -0
- package/dist/docs/components/hud.md +75 -0
- package/dist/docs/components/input-group.md +28 -0
- package/dist/docs/components/input.md +52 -0
- package/dist/docs/components/kbd.md +42 -0
- package/dist/docs/components/label-and-field.md +31 -0
- package/dist/docs/components/link.md +41 -0
- package/dist/docs/components/list.md +67 -0
- package/dist/docs/components/menu.md +85 -0
- package/dist/docs/components/meter.md +77 -0
- package/dist/docs/components/navbar.md +66 -0
- package/dist/docs/components/pagination.md +64 -0
- package/dist/docs/components/popover.md +59 -0
- package/dist/docs/components/progress.md +32 -0
- package/dist/docs/components/prose.md +29 -0
- package/dist/docs/components/select.md +51 -0
- package/dist/docs/components/sidebar.md +35 -0
- package/dist/docs/components/sidenav.md +45 -0
- package/dist/docs/components/skeleton.md +36 -0
- package/dist/docs/components/slider.md +32 -0
- package/dist/docs/components/spinner.md +30 -0
- package/dist/docs/components/stack.md +26 -0
- package/dist/docs/components/steps.md +49 -0
- package/dist/docs/components/switch.md +19 -0
- package/dist/docs/components/table.md +83 -0
- package/dist/docs/components/tabs.md +207 -0
- package/dist/docs/components/textarea.md +13 -0
- package/dist/docs/components/toast.md +86 -0
- package/dist/docs/components/tooltip.md +39 -0
- package/dist/docs/components/typography-classes.md +38 -0
- package/dist/docs/families/data-display.md +15 -0
- package/dist/docs/families/feedback.md +13 -0
- package/dist/docs/families/forms.md +141 -0
- package/dist/docs/families/layout-typography.md +17 -0
- package/dist/docs/families/navigation.md +13 -0
- package/dist/docs/families/overlays.md +13 -0
- package/dist/docs/families/surfaces.md +11 -0
- package/dist/docs/foundations/accessibility.md +71 -0
- package/dist/docs/foundations/color-roles.md +114 -0
- package/dist/docs/foundations/effects-motion.md +150 -0
- package/dist/docs/foundations/flavors.md +156 -0
- package/dist/docs/foundations/icons.md +45 -0
- package/dist/docs/foundations/palette.md +180 -0
- package/dist/docs/foundations/spacing-elevation.md +168 -0
- package/dist/docs/foundations/typography.md +80 -0
- package/dist/docs/index.md +233 -0
- package/dist/docs/manifest.json +859 -0
- package/dist/fonts/inter-OFL.txt +93 -0
- package/dist/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/martian-mono-OFL.txt +93 -0
- package/dist/fonts/martian-mono-latin-ext-wdth-normal.woff2 +0 -0
- package/dist/fonts/martian-mono-latin-wdth-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-OFL.txt +93 -0
- package/dist/fonts/space-grotesk-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-wght-normal.woff2 +0 -0
- package/dist/fonts.css +73 -0
- package/dist/nyxwire.css +12183 -0
- package/dist/tokens.css +579 -0
- package/dist/utilities.css +176 -0
- package/nyxwire.d.ts +2 -0
- package/package.json +66 -3
- package/skills/nyxwire/SKILL.md +63 -0
- package/src/base.css +158 -0
- package/src/components/accordion.css +280 -0
- package/src/components/alert.css +176 -0
- package/src/components/avatar.css +262 -0
- package/src/components/badge.css +193 -0
- package/src/components/breadcrumbs.css +209 -0
- package/src/components/btn.css +517 -0
- package/src/components/card.css +327 -0
- package/src/components/checkbox.css +202 -0
- package/src/components/chip.css +345 -0
- package/src/components/code.css +340 -0
- package/src/components/dialog.css +411 -0
- package/src/components/divider.css +201 -0
- package/src/components/empty.css +216 -0
- package/src/components/field.css +161 -0
- package/src/components/hud.css +212 -0
- package/src/components/index.css +50 -0
- package/src/components/input.css +383 -0
- package/src/components/kbd.css +197 -0
- package/src/components/layout.css +344 -0
- package/src/components/link.css +178 -0
- package/src/components/list.css +353 -0
- package/src/components/menu.css +347 -0
- package/src/components/meter.css +238 -0
- package/src/components/navbar.css +309 -0
- package/src/components/pagination.css +302 -0
- package/src/components/popover.css +352 -0
- package/src/components/progress.css +241 -0
- package/src/components/select.css +121 -0
- package/src/components/sidenav.css +326 -0
- package/src/components/skeleton.css +193 -0
- package/src/components/slider.css +201 -0
- package/src/components/spinner.css +200 -0
- package/src/components/stat.css +263 -0
- package/src/components/steps.css +311 -0
- package/src/components/switch.css +183 -0
- package/src/components/table.css +290 -0
- package/src/components/tabs.css +271 -0
- package/src/components/toast.css +413 -0
- package/src/components/tooltip.css +288 -0
- package/src/fonts.css +92 -0
- package/src/index.css +6 -0
- package/src/motion.css +177 -0
- package/src/semantic.css +85 -0
- package/src/tokens.css +276 -0
- package/src/typography.css +430 -0
- package/src/utilities.css +198 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/* Badge: a short status label, not an action. Solid by default; soft and outline for dense lists.
|
|
2
|
+
The dot variant is for a live status, the pulse only while that status is changing.
|
|
3
|
+
An <a> or <button> badge is interactive and gains hover, focus and disabled states. */
|
|
4
|
+
@layer components {
|
|
5
|
+
.nw-badge {
|
|
6
|
+
--_intent: var(--nw-primary);
|
|
7
|
+
--_on: var(--nw-on-primary);
|
|
8
|
+
--_soft: var(--nw-primary-soft);
|
|
9
|
+
--_h: var(--nw-space-5);
|
|
10
|
+
--_px: var(--nw-space-2);
|
|
11
|
+
--_fs: var(--nw-text-xs);
|
|
12
|
+
--_radius: var(--nw-radius-sm);
|
|
13
|
+
--_fill: var(--_intent);
|
|
14
|
+
--_line: transparent;
|
|
15
|
+
--_ink: var(--_on);
|
|
16
|
+
--_tint-ink: color-mix(in oklab, var(--_intent) var(--nw-soft-ink), var(--nw-fg));
|
|
17
|
+
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
gap: var(--nw-space-1-5);
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
inline-size: fit-content;
|
|
24
|
+
min-inline-size: var(--_h);
|
|
25
|
+
block-size: var(--_h);
|
|
26
|
+
padding-inline: var(--_px);
|
|
27
|
+
border: 1px solid var(--_line);
|
|
28
|
+
border-radius: var(--_radius);
|
|
29
|
+
font-family: var(--nw-font-sans);
|
|
30
|
+
font-size: var(--_fs);
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
line-height: var(--nw-leading-none);
|
|
33
|
+
letter-spacing: var(--nw-tracking-wide);
|
|
34
|
+
color: var(--_ink);
|
|
35
|
+
background-color: var(--_fill);
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
text-decoration-line: none;
|
|
39
|
+
}
|
|
40
|
+
.nw-badge > svg {
|
|
41
|
+
flex: none;
|
|
42
|
+
inline-size: 1em;
|
|
43
|
+
block-size: 1em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Intents -------------------------------------------------------------------------------- */
|
|
47
|
+
.nw-badge-primary {
|
|
48
|
+
--_intent: var(--nw-primary);
|
|
49
|
+
--_on: var(--nw-on-primary);
|
|
50
|
+
--_soft: var(--nw-primary-soft);
|
|
51
|
+
}
|
|
52
|
+
.nw-badge-secondary {
|
|
53
|
+
--_intent: var(--nw-secondary);
|
|
54
|
+
--_on: var(--nw-on-secondary);
|
|
55
|
+
--_soft: var(--nw-secondary-soft);
|
|
56
|
+
}
|
|
57
|
+
.nw-badge-tertiary {
|
|
58
|
+
--_intent: var(--nw-tertiary);
|
|
59
|
+
--_on: var(--nw-on-tertiary);
|
|
60
|
+
--_soft: var(--nw-tertiary-soft);
|
|
61
|
+
}
|
|
62
|
+
.nw-badge-neutral {
|
|
63
|
+
--_intent: var(--nw-fg-muted);
|
|
64
|
+
--_on: var(--nw-canvas);
|
|
65
|
+
--_soft: color-mix(in oklab, var(--nw-fg-muted) 16%, transparent);
|
|
66
|
+
}
|
|
67
|
+
.nw-badge-info {
|
|
68
|
+
--_intent: var(--nw-info);
|
|
69
|
+
--_on: var(--nw-on-info);
|
|
70
|
+
--_soft: var(--nw-info-soft);
|
|
71
|
+
}
|
|
72
|
+
.nw-badge-success {
|
|
73
|
+
--_intent: var(--nw-success);
|
|
74
|
+
--_on: var(--nw-on-success);
|
|
75
|
+
--_soft: var(--nw-success-soft);
|
|
76
|
+
}
|
|
77
|
+
.nw-badge-warning {
|
|
78
|
+
--_intent: var(--nw-warning);
|
|
79
|
+
--_on: var(--nw-on-warning);
|
|
80
|
+
--_soft: var(--nw-warning-soft);
|
|
81
|
+
}
|
|
82
|
+
.nw-badge-danger {
|
|
83
|
+
--_intent: var(--nw-danger);
|
|
84
|
+
--_on: var(--nw-on-danger);
|
|
85
|
+
--_soft: var(--nw-danger-soft);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Variants ------------------------------------------------------------------------------- */
|
|
89
|
+
.nw-badge-solid {
|
|
90
|
+
--_fill: var(--_intent);
|
|
91
|
+
--_line: transparent;
|
|
92
|
+
--_ink: var(--_on);
|
|
93
|
+
}
|
|
94
|
+
.nw-badge-soft {
|
|
95
|
+
--_fill: var(--_soft);
|
|
96
|
+
--_line: color-mix(in oklab, var(--_intent) 30%, transparent);
|
|
97
|
+
--_ink: var(--_tint-ink);
|
|
98
|
+
}
|
|
99
|
+
.nw-badge-outline {
|
|
100
|
+
--_fill: transparent;
|
|
101
|
+
--_line: var(--_intent);
|
|
102
|
+
--_ink: var(--_intent);
|
|
103
|
+
}
|
|
104
|
+
.nw-badge-round {
|
|
105
|
+
--_radius: var(--nw-radius-full);
|
|
106
|
+
}
|
|
107
|
+
/* A single digit or letter: square the padding so the pill stays a circle. */
|
|
108
|
+
.nw-badge-count {
|
|
109
|
+
--_radius: var(--nw-radius-full);
|
|
110
|
+
--_px: var(--nw-space-0);
|
|
111
|
+
inline-size: var(--_h);
|
|
112
|
+
padding-inline: 0;
|
|
113
|
+
font-variant-numeric: tabular-nums;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Sizes ---------------------------------------------------------------------------------- */
|
|
117
|
+
.nw-badge-xs {
|
|
118
|
+
--_h: var(--nw-space-4);
|
|
119
|
+
--_px: var(--nw-space-1-5);
|
|
120
|
+
--_fs: var(--nw-text-2xs);
|
|
121
|
+
}
|
|
122
|
+
.nw-badge-sm {
|
|
123
|
+
--_h: var(--nw-space-5);
|
|
124
|
+
--_px: var(--nw-space-2);
|
|
125
|
+
--_fs: var(--nw-text-xs);
|
|
126
|
+
}
|
|
127
|
+
.nw-badge-md {
|
|
128
|
+
--_h: var(--nw-space-6);
|
|
129
|
+
--_px: var(--nw-space-2-5);
|
|
130
|
+
--_fs: var(--nw-text-sm);
|
|
131
|
+
}
|
|
132
|
+
.nw-badge-lg {
|
|
133
|
+
--_h: var(--nw-control-xs);
|
|
134
|
+
--_px: var(--nw-space-3);
|
|
135
|
+
--_fs: var(--nw-text-sm);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Status dot ----------------------------------------------------------------------------- */
|
|
139
|
+
.nw-badge-dot::before {
|
|
140
|
+
content: '';
|
|
141
|
+
flex: none;
|
|
142
|
+
inline-size: var(--nw-space-1-5);
|
|
143
|
+
block-size: var(--nw-space-1-5);
|
|
144
|
+
border-radius: var(--nw-radius-full);
|
|
145
|
+
background-color: currentColor;
|
|
146
|
+
}
|
|
147
|
+
.nw-badge-pulse::before {
|
|
148
|
+
animation: nw-pulse var(--nw-duration-slower) var(--nw-ease-in-out) infinite;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Interactive badges --------------------------------------------------------------------- */
|
|
152
|
+
.nw-badge:is(a, button) {
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
transition:
|
|
155
|
+
background-color var(--nw-duration-fast) var(--nw-ease-standard),
|
|
156
|
+
border-color var(--nw-duration-fast) var(--nw-ease-standard),
|
|
157
|
+
box-shadow var(--nw-duration-fast) var(--nw-ease-standard);
|
|
158
|
+
}
|
|
159
|
+
.nw-badge:is(a, button):hover:not(:disabled, [aria-disabled='true']) {
|
|
160
|
+
--_line: var(--_intent);
|
|
161
|
+
box-shadow: var(--nw-glow-sm);
|
|
162
|
+
}
|
|
163
|
+
.nw-badge:is(a, button):active:not(:disabled, [aria-disabled='true']) {
|
|
164
|
+
box-shadow: none;
|
|
165
|
+
}
|
|
166
|
+
.nw-badge:is(a, button):focus-visible {
|
|
167
|
+
outline: var(--nw-ring-width) solid var(--nw-ring);
|
|
168
|
+
outline-offset: var(--nw-ring-offset);
|
|
169
|
+
}
|
|
170
|
+
.nw-badge:is(a, button):disabled,
|
|
171
|
+
.nw-badge:is(a, button)[aria-disabled='true'] {
|
|
172
|
+
--_fill: var(--nw-panel-hover);
|
|
173
|
+
--_line: transparent;
|
|
174
|
+
--_ink: var(--nw-fg-disabled);
|
|
175
|
+
box-shadow: none;
|
|
176
|
+
cursor: not-allowed;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@media (forced-colors: active) {
|
|
180
|
+
.nw-badge {
|
|
181
|
+
border-color: ButtonText;
|
|
182
|
+
}
|
|
183
|
+
.nw-badge:is(a, button):disabled,
|
|
184
|
+
.nw-badge:is(a, button)[aria-disabled='true'] {
|
|
185
|
+
color: GrayText;
|
|
186
|
+
border-color: GrayText;
|
|
187
|
+
}
|
|
188
|
+
/* A status dot is a background image to forced colors; give it a real border instead. */
|
|
189
|
+
.nw-badge-dot::before {
|
|
190
|
+
border: 1px solid currentColor;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* Breadcrumbs: <nav class="nw-breadcrumbs"><ol><li><a>..</a></li>...</ol></nav>. A slash in the
|
|
2
|
+
mono face separates the crumbs; chevron, arrow and dot are alternatives. The current page is
|
|
3
|
+
the <li> or <a> carrying aria-current="page". */
|
|
4
|
+
@layer components {
|
|
5
|
+
.nw-breadcrumbs {
|
|
6
|
+
--_intent: var(--nw-fg);
|
|
7
|
+
--_fs: var(--nw-text-sm);
|
|
8
|
+
--_gap: var(--nw-space-2);
|
|
9
|
+
--_separator: '/';
|
|
10
|
+
display: flex;
|
|
11
|
+
min-inline-size: 0;
|
|
12
|
+
font-size: var(--_fs);
|
|
13
|
+
line-height: var(--nw-leading-snug);
|
|
14
|
+
color: var(--nw-fg-muted);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:is(.nw-breadcrumbs ol, .nw-breadcrumbs ul, .nw-breadcrumbs-list) {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
gap: var(--nw-space-1) var(--_gap);
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
list-style: none;
|
|
25
|
+
}
|
|
26
|
+
:is(.nw-breadcrumbs li, .nw-breadcrumbs-item) {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
gap: var(--_gap);
|
|
29
|
+
align-items: center;
|
|
30
|
+
min-inline-size: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* The separator precedes every crumb but the first. */
|
|
34
|
+
:is(.nw-breadcrumbs li, .nw-breadcrumbs-item) + :is(li, .nw-breadcrumbs-item)::before {
|
|
35
|
+
content: var(--_separator);
|
|
36
|
+
flex: none;
|
|
37
|
+
font-family: var(--nw-font-mono);
|
|
38
|
+
font-size: 0.85em;
|
|
39
|
+
color: var(--nw-fg-faint);
|
|
40
|
+
}
|
|
41
|
+
/* Glyph separators paint an icon through a mask instead of a character. */
|
|
42
|
+
:is(.nw-breadcrumbs-chevron, .nw-breadcrumbs-arrow)
|
|
43
|
+
:is(li, .nw-breadcrumbs-item)
|
|
44
|
+
+ :is(li, .nw-breadcrumbs-item)::before {
|
|
45
|
+
content: '';
|
|
46
|
+
inline-size: 0.9em;
|
|
47
|
+
block-size: 0.9em;
|
|
48
|
+
background-color: currentColor;
|
|
49
|
+
mask: var(--_glyph) center / contain no-repeat;
|
|
50
|
+
}
|
|
51
|
+
.nw-breadcrumbs-chevron {
|
|
52
|
+
--_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
|
|
53
|
+
}
|
|
54
|
+
.nw-breadcrumbs-arrow {
|
|
55
|
+
--_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
|
|
56
|
+
}
|
|
57
|
+
.nw-breadcrumbs-dot {
|
|
58
|
+
--_separator: '\00B7';
|
|
59
|
+
}
|
|
60
|
+
/* A custom separator element inside the <li> replaces the generated one. */
|
|
61
|
+
.nw-breadcrumbs-separator {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
flex: none;
|
|
64
|
+
color: var(--nw-fg-faint);
|
|
65
|
+
}
|
|
66
|
+
.nw-breadcrumbs-separator > svg {
|
|
67
|
+
inline-size: 0.9em;
|
|
68
|
+
block-size: 0.9em;
|
|
69
|
+
}
|
|
70
|
+
.nw-breadcrumbs :is(li, .nw-breadcrumbs-item):has(> .nw-breadcrumbs-separator)::before {
|
|
71
|
+
content: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:is(.nw-breadcrumbs a, .nw-breadcrumbs-link) {
|
|
75
|
+
display: inline-flex;
|
|
76
|
+
gap: var(--nw-space-1);
|
|
77
|
+
align-items: center;
|
|
78
|
+
max-inline-size: 100%;
|
|
79
|
+
padding: var(--nw-space-0-5) var(--nw-space-1);
|
|
80
|
+
margin-inline: calc(-1 * var(--nw-space-1));
|
|
81
|
+
border-radius: var(--nw-radius-xs);
|
|
82
|
+
color: var(--nw-fg-muted);
|
|
83
|
+
text-decoration-line: none;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
transition:
|
|
88
|
+
color var(--nw-duration-fast) var(--nw-ease-standard),
|
|
89
|
+
background-color var(--nw-duration-fast) var(--nw-ease-standard);
|
|
90
|
+
}
|
|
91
|
+
:is(.nw-breadcrumbs a, .nw-breadcrumbs-link):hover {
|
|
92
|
+
color: var(--nw-fg);
|
|
93
|
+
background-color: var(--nw-panel);
|
|
94
|
+
}
|
|
95
|
+
:is(.nw-breadcrumbs a, .nw-breadcrumbs-link):focus-visible {
|
|
96
|
+
outline: var(--nw-ring-width) solid var(--nw-ring);
|
|
97
|
+
outline-offset: 0;
|
|
98
|
+
}
|
|
99
|
+
:is(.nw-breadcrumbs [aria-current='page'], .nw-breadcrumbs [aria-current='page'] a) {
|
|
100
|
+
font-weight: 500;
|
|
101
|
+
color: var(--_intent);
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
}
|
|
104
|
+
.nw-breadcrumbs [aria-current='page'] a {
|
|
105
|
+
margin-inline: 0;
|
|
106
|
+
padding-inline: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.nw-breadcrumbs-icon {
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
flex: none;
|
|
112
|
+
}
|
|
113
|
+
.nw-breadcrumbs-icon > svg {
|
|
114
|
+
inline-size: 1.1em;
|
|
115
|
+
block-size: 1.1em;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Collapsed middle crumbs: a button or a static mark. */
|
|
119
|
+
.nw-breadcrumbs-ellipsis {
|
|
120
|
+
display: inline-grid;
|
|
121
|
+
place-items: center;
|
|
122
|
+
min-inline-size: 1.75em;
|
|
123
|
+
block-size: 1.75em;
|
|
124
|
+
padding: 0;
|
|
125
|
+
border: 0;
|
|
126
|
+
border-radius: var(--nw-radius-xs);
|
|
127
|
+
font: inherit;
|
|
128
|
+
letter-spacing: 0.1em;
|
|
129
|
+
color: var(--nw-fg-subtle);
|
|
130
|
+
background: none;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
.nw-breadcrumbs-ellipsis:hover {
|
|
134
|
+
color: var(--nw-fg);
|
|
135
|
+
background-color: var(--nw-panel);
|
|
136
|
+
}
|
|
137
|
+
.nw-breadcrumbs-ellipsis:focus-visible {
|
|
138
|
+
outline: var(--nw-ring-width) solid var(--nw-ring);
|
|
139
|
+
outline-offset: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Eyebrow: the mono, uppercase trail of a page header. */
|
|
143
|
+
.nw-breadcrumbs-eyebrow {
|
|
144
|
+
font-family: var(--nw-font-mono);
|
|
145
|
+
font-size: var(--nw-text-2xs);
|
|
146
|
+
letter-spacing: var(--nw-tracking-wider);
|
|
147
|
+
text-transform: uppercase;
|
|
148
|
+
}
|
|
149
|
+
.nw-breadcrumbs-eyebrow [aria-current='page'] {
|
|
150
|
+
color: var(--nw-primary);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Intents color the current crumb. */
|
|
154
|
+
.nw-breadcrumbs-primary {
|
|
155
|
+
--_intent: var(--nw-primary);
|
|
156
|
+
}
|
|
157
|
+
.nw-breadcrumbs-secondary {
|
|
158
|
+
--_intent: var(--nw-secondary);
|
|
159
|
+
}
|
|
160
|
+
.nw-breadcrumbs-tertiary {
|
|
161
|
+
--_intent: var(--nw-tertiary);
|
|
162
|
+
}
|
|
163
|
+
.nw-breadcrumbs-neutral {
|
|
164
|
+
--_intent: var(--nw-fg);
|
|
165
|
+
}
|
|
166
|
+
.nw-breadcrumbs-info {
|
|
167
|
+
--_intent: var(--nw-info);
|
|
168
|
+
}
|
|
169
|
+
.nw-breadcrumbs-success {
|
|
170
|
+
--_intent: var(--nw-success);
|
|
171
|
+
}
|
|
172
|
+
.nw-breadcrumbs-warning {
|
|
173
|
+
--_intent: var(--nw-warning);
|
|
174
|
+
}
|
|
175
|
+
.nw-breadcrumbs-danger {
|
|
176
|
+
--_intent: var(--nw-danger);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Sizes */
|
|
180
|
+
.nw-breadcrumbs-xs {
|
|
181
|
+
--_fs: var(--nw-text-xs);
|
|
182
|
+
--_gap: var(--nw-space-1-5);
|
|
183
|
+
}
|
|
184
|
+
.nw-breadcrumbs-sm {
|
|
185
|
+
--_fs: var(--nw-text-sm);
|
|
186
|
+
--_gap: var(--nw-space-2);
|
|
187
|
+
}
|
|
188
|
+
.nw-breadcrumbs-md {
|
|
189
|
+
--_fs: var(--nw-text-base);
|
|
190
|
+
--_gap: var(--nw-space-2-5);
|
|
191
|
+
}
|
|
192
|
+
.nw-breadcrumbs-lg {
|
|
193
|
+
--_fs: var(--nw-text-lg);
|
|
194
|
+
--_gap: var(--nw-space-3);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (forced-colors: active) {
|
|
198
|
+
:is(.nw-breadcrumbs li, .nw-breadcrumbs-item) + :is(li, .nw-breadcrumbs-item)::before,
|
|
199
|
+
.nw-breadcrumbs-separator {
|
|
200
|
+
color: GrayText;
|
|
201
|
+
}
|
|
202
|
+
:is(.nw-breadcrumbs a, .nw-breadcrumbs-link) {
|
|
203
|
+
color: LinkText;
|
|
204
|
+
}
|
|
205
|
+
:is(.nw-breadcrumbs [aria-current='page'], .nw-breadcrumbs [aria-current='page'] a) {
|
|
206
|
+
color: CanvasText;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|