@navikt/ds-css 2.8.10 → 2.8.12-beta.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/CHANGELOG.md +4 -0
- package/baseline/baseline.css +47 -6
- package/baseline/index.css +5 -0
- package/baseline/reset.css +351 -0
- package/baseline/tokens.css +1 -0
- package/config/bundle.js +135 -0
- package/config/mappings.js +139 -0
- package/dist/accordion.css +74 -0
- package/dist/accordion.min.css +1 -0
- package/dist/alert.css +76 -0
- package/dist/alert.min.css +1 -0
- package/dist/baseline.css +102 -0
- package/dist/baseline.min.css +1 -0
- package/dist/button.css +352 -0
- package/dist/button.min.css +1 -0
- package/dist/chat.css +98 -0
- package/dist/chat.min.css +1 -0
- package/dist/chips.css +138 -0
- package/dist/chips.min.css +1 -0
- package/dist/contentcontainer.css +17 -0
- package/dist/contentcontainer.min.css +1 -0
- package/dist/date.css +220 -0
- package/dist/date.min.css +1 -0
- package/dist/expansioncard.css +197 -0
- package/dist/expansioncard.min.css +3 -0
- package/dist/fonts.css +21 -0
- package/dist/fonts.min.css +1 -0
- package/dist/forms.css +731 -0
- package/dist/forms.min.css +1 -0
- package/dist/grid.css +217 -0
- package/dist/grid.min.css +1 -0
- package/dist/guidepanel.css +62 -0
- package/dist/guidepanel.min.css +1 -0
- package/dist/helptext.css +45 -0
- package/dist/helptext.min.css +1 -0
- package/dist/index.css +54 -51
- package/dist/index.min.css +5 -0
- package/dist/link.css +37 -0
- package/dist/link.min.css +1 -0
- package/dist/linkpanel.css +38 -0
- package/dist/linkpanel.min.css +1 -0
- package/dist/list.css +66 -0
- package/dist/list.min.css +1 -0
- package/dist/loader.css +113 -0
- package/dist/loader.min.css +1 -0
- package/dist/modal.css +61 -0
- package/dist/modal.min.css +1 -0
- package/dist/pagination.css +60 -0
- package/dist/pagination.min.css +1 -0
- package/dist/panel.css +10 -0
- package/dist/panel.min.css +1 -0
- package/dist/popover.css +54 -0
- package/dist/popover.min.css +1 -0
- package/dist/print.css +75 -0
- package/dist/print.min.css +1 -0
- package/dist/readmore.css +63 -0
- package/dist/readmore.min.css +1 -0
- package/dist/reset.css +351 -0
- package/dist/reset.min.css +1 -0
- package/dist/stepper.css +225 -0
- package/dist/stepper.min.css +1 -0
- package/dist/table.css +227 -0
- package/dist/table.min.css +1 -0
- package/dist/tabs.css +114 -0
- package/dist/tabs.min.css +1 -0
- package/dist/tag.css +116 -0
- package/dist/tag.min.css +1 -0
- package/dist/togglegroup.css +100 -0
- package/dist/togglegroup.min.css +1 -0
- package/dist/tokens.css +279 -0
- package/dist/tokens.min.css +1 -0
- package/dist/tooltip.css +53 -0
- package/dist/tooltip.min.css +1 -0
- package/dist/typography.css +160 -0
- package/dist/typography.min.css +1 -0
- package/dist/version/2.8.12/Components.css +3268 -0
- package/dist/version/2.8.12/Components.min.css +3 -0
- package/dist/version/2.8.12/accordion.css +74 -0
- package/dist/version/2.8.12/accordion.min.css +1 -0
- package/dist/version/2.8.12/alert.css +76 -0
- package/dist/version/2.8.12/alert.min.css +1 -0
- package/dist/version/2.8.12/baseline.css +102 -0
- package/dist/version/2.8.12/baseline.min.css +1 -0
- package/dist/version/2.8.12/button.css +352 -0
- package/dist/version/2.8.12/button.min.css +1 -0
- package/dist/version/2.8.12/chat.css +98 -0
- package/dist/version/2.8.12/chat.min.css +1 -0
- package/dist/version/2.8.12/chips.css +138 -0
- package/dist/version/2.8.12/chips.min.css +1 -0
- package/dist/version/2.8.12/contentcontainer.css +17 -0
- package/dist/version/2.8.12/contentcontainer.min.css +1 -0
- package/dist/version/2.8.12/date.css +220 -0
- package/dist/version/2.8.12/date.min.css +1 -0
- package/dist/version/2.8.12/expansioncard.css +197 -0
- package/dist/version/2.8.12/expansioncard.min.css +3 -0
- package/dist/version/2.8.12/fonts.css +21 -0
- package/dist/version/2.8.12/fonts.min.css +1 -0
- package/dist/version/2.8.12/forms.css +731 -0
- package/dist/version/2.8.12/forms.min.css +1 -0
- package/dist/version/2.8.12/grid.css +217 -0
- package/dist/version/2.8.12/grid.min.css +1 -0
- package/dist/version/2.8.12/guidepanel.css +62 -0
- package/dist/version/2.8.12/guidepanel.min.css +1 -0
- package/dist/version/2.8.12/helptext.css +45 -0
- package/dist/version/2.8.12/helptext.min.css +1 -0
- package/dist/version/2.8.12/link.css +37 -0
- package/dist/version/2.8.12/link.min.css +1 -0
- package/dist/version/2.8.12/linkpanel.css +38 -0
- package/dist/version/2.8.12/linkpanel.min.css +1 -0
- package/dist/version/2.8.12/list.css +66 -0
- package/dist/version/2.8.12/list.min.css +1 -0
- package/dist/version/2.8.12/loader.css +113 -0
- package/dist/version/2.8.12/loader.min.css +1 -0
- package/dist/version/2.8.12/modal.css +61 -0
- package/dist/version/2.8.12/modal.min.css +1 -0
- package/dist/version/2.8.12/pagination.css +60 -0
- package/dist/version/2.8.12/pagination.min.css +1 -0
- package/dist/version/2.8.12/panel.css +10 -0
- package/dist/version/2.8.12/panel.min.css +1 -0
- package/dist/version/2.8.12/popover.css +54 -0
- package/dist/version/2.8.12/popover.min.css +1 -0
- package/dist/version/2.8.12/print.css +75 -0
- package/dist/version/2.8.12/print.min.css +1 -0
- package/dist/version/2.8.12/readmore.css +63 -0
- package/dist/version/2.8.12/readmore.min.css +1 -0
- package/dist/version/2.8.12/reset.css +351 -0
- package/dist/version/2.8.12/reset.min.css +1 -0
- package/dist/version/2.8.12/stepper.css +225 -0
- package/dist/version/2.8.12/stepper.min.css +1 -0
- package/dist/version/2.8.12/table.css +227 -0
- package/dist/version/2.8.12/table.min.css +1 -0
- package/dist/version/2.8.12/tabs.css +114 -0
- package/dist/version/2.8.12/tabs.min.css +1 -0
- package/dist/version/2.8.12/tag.css +116 -0
- package/dist/version/2.8.12/tag.min.css +1 -0
- package/dist/version/2.8.12/togglegroup.css +100 -0
- package/dist/version/2.8.12/togglegroup.min.css +1 -0
- package/dist/version/2.8.12/tokens.css +279 -0
- package/dist/version/2.8.12/tokens.min.css +1 -0
- package/dist/version/2.8.12/tooltip.css +53 -0
- package/dist/version/2.8.12/tooltip.min.css +1 -0
- package/dist/version/2.8.12/typography.css +160 -0
- package/dist/version/2.8.12/typography.min.css +1 -0
- package/index.css +1 -1
- package/package.json +15 -6
- package/typography.css +5 -4
- package/baseline/utility.css +0 -46
package/dist/reset.css
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
|
|
3
|
+
/* Document
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 1. Correct the line height in all browsers.
|
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
line-height: 1.15; /* 1 */
|
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Sections
|
|
17
|
+
========================================================================== */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Remove the margin in all browsers.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Render the `main` element consistently in IE.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
main {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
font-size: 2em;
|
|
42
|
+
margin: 0.67em 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Grouping content
|
|
46
|
+
========================================================================== */
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 1. Add the correct box sizing in Firefox.
|
|
50
|
+
* 2. Show the overflow in Edge and IE.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
hr {
|
|
54
|
+
box-sizing: content-box; /* 1 */
|
|
55
|
+
height: 0; /* 1 */
|
|
56
|
+
overflow: visible; /* 2 */
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
pre {
|
|
65
|
+
font-family: monospace; /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Text-level semantics
|
|
70
|
+
========================================================================== */
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove the gray background on active links in IE 10.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
a {
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
82
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
abbr[title] {
|
|
86
|
+
border-bottom: none; /* 1 */
|
|
87
|
+
text-decoration: underline; /* 2 */
|
|
88
|
+
text-decoration: underline dotted; /* 2 */
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
b,
|
|
96
|
+
strong {
|
|
97
|
+
font-weight: bolder;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
102
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
code,
|
|
106
|
+
kbd,
|
|
107
|
+
samp {
|
|
108
|
+
font-family: monospace; /* 1 */
|
|
109
|
+
font-size: 1em; /* 2 */
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Add the correct font size in all browsers.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
small {
|
|
117
|
+
font-size: 80%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
122
|
+
* all browsers.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
sub,
|
|
126
|
+
sup {
|
|
127
|
+
font-size: 75%;
|
|
128
|
+
line-height: 0;
|
|
129
|
+
position: relative;
|
|
130
|
+
vertical-align: baseline;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
sub {
|
|
134
|
+
bottom: -0.25em;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
sup {
|
|
138
|
+
top: -0.5em;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Embedded content
|
|
142
|
+
========================================================================== */
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Remove the border on images inside links in IE 10.
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
img {
|
|
149
|
+
border-style: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Forms
|
|
153
|
+
========================================================================== */
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* 1. Change the font styles in all browsers.
|
|
157
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
button,
|
|
161
|
+
input,
|
|
162
|
+
optgroup,
|
|
163
|
+
select,
|
|
164
|
+
textarea {
|
|
165
|
+
font-family: inherit; /* 1 */
|
|
166
|
+
font-size: 100%; /* 1 */
|
|
167
|
+
line-height: 1.15; /* 1 */
|
|
168
|
+
margin: 0; /* 2 */
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Show the overflow in IE.
|
|
173
|
+
* 1. Show the overflow in Edge.
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
button,
|
|
177
|
+
input {
|
|
178
|
+
/* 1 */
|
|
179
|
+
overflow: visible;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
184
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
button,
|
|
188
|
+
select {
|
|
189
|
+
/* 1 */
|
|
190
|
+
text-transform: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
button,
|
|
198
|
+
[type="button"],
|
|
199
|
+
[type="reset"],
|
|
200
|
+
[type="submit"] {
|
|
201
|
+
-webkit-appearance: button;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Remove the inner border and padding in Firefox.
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
button::-moz-focus-inner,
|
|
209
|
+
[type="button"]::-moz-focus-inner,
|
|
210
|
+
[type="reset"]::-moz-focus-inner,
|
|
211
|
+
[type="submit"]::-moz-focus-inner {
|
|
212
|
+
border-style: none;
|
|
213
|
+
padding: 0;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Restore the focus styles unset by the previous rule.
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
button:-moz-focusring,
|
|
221
|
+
[type="button"]:-moz-focusring,
|
|
222
|
+
[type="reset"]:-moz-focusring,
|
|
223
|
+
[type="submit"]:-moz-focusring {
|
|
224
|
+
outline: 1px dotted ButtonText;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Correct the padding in Firefox.
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
fieldset {
|
|
232
|
+
padding: 0.35em 0.75em 0.625em;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
237
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
238
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
239
|
+
* `fieldset` elements in all browsers.
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
legend {
|
|
243
|
+
box-sizing: border-box; /* 1 */
|
|
244
|
+
color: inherit; /* 2 */
|
|
245
|
+
display: table; /* 1 */
|
|
246
|
+
max-width: 100%; /* 1 */
|
|
247
|
+
padding: 0; /* 3 */
|
|
248
|
+
white-space: normal; /* 1 */
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
253
|
+
*/
|
|
254
|
+
|
|
255
|
+
progress {
|
|
256
|
+
vertical-align: baseline;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
textarea {
|
|
264
|
+
overflow: auto;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* 1. Add the correct box sizing in IE 10.
|
|
269
|
+
* 2. Remove the padding in IE 10.
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
[type="checkbox"],
|
|
273
|
+
[type="radio"] {
|
|
274
|
+
box-sizing: border-box; /* 1 */
|
|
275
|
+
padding: 0; /* 2 */
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
280
|
+
*/
|
|
281
|
+
|
|
282
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
283
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
284
|
+
height: auto;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
289
|
+
* 2. Correct the outline style in Safari.
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
[type="search"] {
|
|
293
|
+
-webkit-appearance: textfield; /* 1 */
|
|
294
|
+
outline-offset: -2px; /* 2 */
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
[type="search"]::-webkit-search-decoration {
|
|
302
|
+
-webkit-appearance: none;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
307
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
::-webkit-file-upload-button {
|
|
311
|
+
-webkit-appearance: button; /* 1 */
|
|
312
|
+
font: inherit; /* 2 */
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Interactive
|
|
316
|
+
========================================================================== */
|
|
317
|
+
|
|
318
|
+
/*
|
|
319
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
details {
|
|
323
|
+
display: block;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/*
|
|
327
|
+
* Add the correct display in all browsers.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
summary {
|
|
331
|
+
display: list-item;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* Misc
|
|
335
|
+
========================================================================== */
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Add the correct display in IE 10+.
|
|
339
|
+
*/
|
|
340
|
+
|
|
341
|
+
template {
|
|
342
|
+
display: none;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Add the correct display in IE 10.
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
[hidden] {
|
|
350
|
+
display: none;
|
|
351
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}
|
package/dist/stepper.css
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
.navds-stepper {
|
|
2
|
+
--navds-stepper-circle-size: 1.75rem;
|
|
3
|
+
--navds-stepper-border-width: 2px;
|
|
4
|
+
--navds-stepper-line-length: 1rem;
|
|
5
|
+
|
|
6
|
+
color: var(--ac-stepper-text, var(--a-surface-action));
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
line-height: 1;
|
|
9
|
+
list-style: none;
|
|
10
|
+
padding-left: 0;
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.navds-stepper--horizontal {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.navds-stepper__item {
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-rows:
|
|
23
|
+
[line-1] auto [step-start] var(--navds-stepper-circle-size)
|
|
24
|
+
[line-2 step-end] auto;
|
|
25
|
+
grid-template-columns: var(--navds-stepper-circle-size) auto;
|
|
26
|
+
justify-items: flex-start;
|
|
27
|
+
gap: 0.5rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.navds-stepper__line {
|
|
31
|
+
background-color: var(--ac-stepper-line, var(--a-border-default));
|
|
32
|
+
width: var(--navds-stepper-border-width);
|
|
33
|
+
height: 100%;
|
|
34
|
+
min-height: var(--navds-stepper-line-length);
|
|
35
|
+
justify-self: center;
|
|
36
|
+
grid-column: 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.navds-stepper__step--behind.navds-stepper__step--completed + .navds-stepper__line {
|
|
40
|
+
background-color: var(--ac-stepper-line-completed, var(--a-border-selected));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.navds-stepper__line--1 {
|
|
44
|
+
grid-row: line-1;
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.navds-stepper__line--2 {
|
|
49
|
+
grid-row: line-2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(.navds-stepper__item:last-of-type) .navds-stepper__line--2 {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.navds-stepper__step {
|
|
57
|
+
grid-row: 2 / -1;
|
|
58
|
+
grid-column: 1 / -1;
|
|
59
|
+
display: grid;
|
|
60
|
+
grid-template-columns: [circle] var(--navds-stepper-circle-size) [content] auto;
|
|
61
|
+
gap: var(--a-spacing-2);
|
|
62
|
+
justify-content: flex-start;
|
|
63
|
+
text-decoration: none;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
padding: var(--navds-stepper-border-width);
|
|
66
|
+
margin: calc(var(--navds-stepper-border-width) * -1) calc(var(--navds-stepper-border-width) * -1) 1.75rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
button.navds-stepper__step {
|
|
70
|
+
appearance: none;
|
|
71
|
+
border: none;
|
|
72
|
+
background-color: transparent;
|
|
73
|
+
font: inherit;
|
|
74
|
+
color: inherit;
|
|
75
|
+
text-align: inherit;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.navds-stepper__step--non-interactive {
|
|
79
|
+
color: var(--ac-stepper-non-interactive, var(--a-text-subtle));
|
|
80
|
+
cursor: default;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where(.navds-stepper__step):focus {
|
|
84
|
+
outline: none;
|
|
85
|
+
box-shadow: var(--a-shadow-focus);
|
|
86
|
+
isolation: isolate;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.navds-stepper__circle {
|
|
90
|
+
grid-column: circle;
|
|
91
|
+
display: inline-grid;
|
|
92
|
+
place-items: center;
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
width: var(--navds-stepper-circle-size);
|
|
95
|
+
height: var(--navds-stepper-circle-size);
|
|
96
|
+
border: var(--navds-stepper-border-width) solid currentColor;
|
|
97
|
+
border-radius: var(--a-border-radius-full);
|
|
98
|
+
line-height: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.navds-stepper__circle--success {
|
|
102
|
+
border: none;
|
|
103
|
+
background: none;
|
|
104
|
+
font-size: 28px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.navds-stepper__content {
|
|
108
|
+
min-width: fit-content;
|
|
109
|
+
line-height: 1.5;
|
|
110
|
+
grid-column: content;
|
|
111
|
+
padding-top: 0.035rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Horizontal */
|
|
115
|
+
|
|
116
|
+
:where(.navds-stepper--horizontal) .navds-stepper__item {
|
|
117
|
+
flex: 1 1 100%;
|
|
118
|
+
grid-template-columns:
|
|
119
|
+
[line-1-start] 1fr [step-start] auto [line-1-end] var(--navds-stepper-circle-size)
|
|
120
|
+
[line-2-start] auto [step-end] 1fr [line-2-end];
|
|
121
|
+
grid-template-rows: var(--navds-stepper-circle-size) auto;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:where(.navds-stepper--horizontal) .navds-stepper__line {
|
|
125
|
+
height: var(--navds-stepper-border-width);
|
|
126
|
+
width: 100%;
|
|
127
|
+
min-height: auto;
|
|
128
|
+
grid-row: 1;
|
|
129
|
+
display: block;
|
|
130
|
+
align-self: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:where(.navds-stepper--horizontal) .navds-stepper__line--1 {
|
|
134
|
+
grid-column: line-1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:where(.navds-stepper--horizontal) .navds-stepper__line--2 {
|
|
138
|
+
grid-column: line-2;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where(.navds-stepper--horizontal .navds-stepper__item:first-of-type) .navds-stepper__line--1,
|
|
142
|
+
:where(.navds-stepper--horizontal .navds-stepper__item:last-of-type) .navds-stepper__line--2 {
|
|
143
|
+
visibility: hidden;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:where(.navds-stepper--horizontal) .navds-stepper__step {
|
|
147
|
+
grid-row: 1 / -1;
|
|
148
|
+
grid-column: step;
|
|
149
|
+
display: grid;
|
|
150
|
+
grid-template-rows: [circle] var(--navds-stepper-circle-size) [content] auto;
|
|
151
|
+
grid-template-columns:
|
|
152
|
+
[content-start] auto [circle] var(--navds-stepper-circle-size)
|
|
153
|
+
[content-end] auto;
|
|
154
|
+
justify-items: center;
|
|
155
|
+
align-items: center;
|
|
156
|
+
margin-bottom: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:where(.navds-stepper--horizontal) .navds-stepper__circle {
|
|
160
|
+
grid-row: circle;
|
|
161
|
+
grid-column: 2;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:where(.navds-stepper--horizontal) .navds-stepper__content {
|
|
165
|
+
grid-row: content;
|
|
166
|
+
grid-column: 1 / -1;
|
|
167
|
+
max-width: 24ch;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Active step */
|
|
171
|
+
|
|
172
|
+
:where(.navds-stepper__step--active) .navds-stepper__content {
|
|
173
|
+
color: var(--ac-stepper-active, var(--a-text-action-selected));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:where(.navds-stepper__step:hover) .navds-stepper__content {
|
|
177
|
+
text-decoration: underline;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:where(.navds-stepper__step--non-interactive:hover, .navds-stepper__step--active:hover) .navds-stepper__content {
|
|
181
|
+
text-decoration: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:where(.navds-stepper__step--active) .navds-stepper__circle {
|
|
185
|
+
background-color: var(--ac-stepper-active-bg, var(--a-surface-action-selected));
|
|
186
|
+
border-color: var(--ac-stepper-active-border, var(--a-border-action-selected));
|
|
187
|
+
color: var(--ac-stepper-active-text, var(--a-text-on-action));
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:where(.navds-stepper__step:not(.navds-stepper__step--active):hover) .navds-stepper__circle {
|
|
191
|
+
background-color: var(--ac-stepper-hover-bg, var(--a-surface-action-subtle-hover));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* Non-interactive */
|
|
195
|
+
|
|
196
|
+
:where(.navds-stepper__step--non-interactive.navds-stepper__step--active) .navds-stepper__content {
|
|
197
|
+
color: var(--ac-stepper-non-interactive-active, var(--a-text-default));
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.navds-stepper__step--non-interactive.navds-stepper__step--behind.navds-stepper__step--completed + .navds-stepper__line {
|
|
201
|
+
background-color: var(--ac-stepper-non-interactive-line-completed, var(--a-border-strong));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:where(.navds-stepper__step--non-interactive.navds-stepper__step--active) .navds-stepper__circle {
|
|
205
|
+
background-color: var(--ac-stepper-non-interactive-active-bg, var(--a-surface-inverted));
|
|
206
|
+
border-color: var(--ac-stepper-non-interactive-active-border, var(--a-surface-inverted));
|
|
207
|
+
color: var(--ac-stepper-non-interactive-active-text, var(--a-text-on-inverted));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:where(.navds-stepper__step--non-interactive:hover) .navds-stepper__circle {
|
|
211
|
+
background-color: transparent;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
:where(.navds-stepper__step--non-interactive.navds-stepper__step--active:hover) .navds-stepper__circle {
|
|
215
|
+
background-color: var(--ac-stepper-non-interactive-active-bg, var(--a-surface-inverted));
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
:where(.navds-stepper__step--completed.navds-stepper__step--active) .navds-stepper__circle {
|
|
219
|
+
background-color: inherit;
|
|
220
|
+
color: var(--ac-stepper-active-completed, var(--a-text-action-selected));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:where(.navds-stepper__step--completed.navds-stepper__step--active.navds-stepper__step--non-interactive) .navds-stepper__circle {
|
|
224
|
+
color: var(--ac-stepper-non-interactive-active-completed, var(--a-text-default));
|
|
225
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.navds-stepper{--navds-stepper-circle-size:1.75rem;--navds-stepper-border-width:2px;--navds-stepper-line-length:1rem;color:var(--ac-stepper-text,var(--a-surface-action));font-weight:600;line-height:1;list-style:none;margin:0;padding-left:0}.navds-stepper--horizontal{align-items:flex-start;display:flex;text-align:center}.navds-stepper__item{display:grid;gap:.5rem;grid-template-columns:var(--navds-stepper-circle-size) auto;grid-template-rows:[line-1] auto [step-start] var(--navds-stepper-circle-size) [line-2 step-end] auto;justify-items:flex-start}.navds-stepper__line{background-color:var(--ac-stepper-line,var(--a-border-default));grid-column:1;height:100%;justify-self:center;min-height:var(--navds-stepper-line-length);width:var(--navds-stepper-border-width)}.navds-stepper__step--behind.navds-stepper__step--completed+.navds-stepper__line{background-color:var(--ac-stepper-line-completed,var(--a-border-selected))}.navds-stepper__line--1{display:none;grid-row:line-1}.navds-stepper__line--2{grid-row:line-2}:where(.navds-stepper__item:last-of-type) .navds-stepper__line--2{display:none}.navds-stepper__step{cursor:pointer;display:grid;gap:var(--a-spacing-2);grid-column:1/-1;grid-row:2/-1;grid-template-columns:[circle] var(--navds-stepper-circle-size) [content] auto;justify-content:flex-start;margin:calc(var(--navds-stepper-border-width)*-1) calc(var(--navds-stepper-border-width)*-1) 1.75rem;padding:var(--navds-stepper-border-width);text-decoration:none}button.navds-stepper__step{-webkit-appearance:none;appearance:none;background-color:transparent;border:none;color:inherit;font:inherit;text-align:inherit}.navds-stepper__step--non-interactive{color:var(--ac-stepper-non-interactive,var(--a-text-subtle));cursor:default}:where(.navds-stepper__step):focus{box-shadow:var(--a-shadow-focus);isolation:isolate;outline:none}.navds-stepper__circle{border:var(--navds-stepper-border-width) solid;border-radius:var(--a-border-radius-full);display:inline-grid;flex-shrink:0;grid-column:circle;height:var(--navds-stepper-circle-size);line-height:1;place-items:center;width:var(--navds-stepper-circle-size)}.navds-stepper__circle--success{background:none;border:none;font-size:28px}.navds-stepper__content{grid-column:content;line-height:1.5;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;padding-top:.035rem}:where(.navds-stepper--horizontal) .navds-stepper__item{flex:1 1 100%;grid-template-columns:[line-1-start] 1fr [step-start] auto [line-1-end] var(--navds-stepper-circle-size) [line-2-start] auto [step-end] 1fr [line-2-end];grid-template-rows:var(--navds-stepper-circle-size) auto}:where(.navds-stepper--horizontal) .navds-stepper__line{align-self:center;display:block;grid-row:1;height:var(--navds-stepper-border-width);min-height:auto;width:100%}:where(.navds-stepper--horizontal) .navds-stepper__line--1{grid-column:line-1}:where(.navds-stepper--horizontal) .navds-stepper__line--2{grid-column:line-2}:where(.navds-stepper--horizontal .navds-stepper__item:first-of-type) .navds-stepper__line--1,:where(.navds-stepper--horizontal .navds-stepper__item:last-of-type) .navds-stepper__line--2{visibility:hidden}:where(.navds-stepper--horizontal) .navds-stepper__step{align-items:center;display:grid;grid-column:step;grid-row:1/-1;grid-template-columns:[content-start] auto [circle] var(--navds-stepper-circle-size) [content-end] auto;grid-template-rows:[circle] var(--navds-stepper-circle-size) [content] auto;justify-items:center;margin-bottom:0}:where(.navds-stepper--horizontal) .navds-stepper__circle{grid-column:2;grid-row:circle}:where(.navds-stepper--horizontal) .navds-stepper__content{grid-column:1/-1;grid-row:content;max-width:24ch}:where(.navds-stepper__step--active) .navds-stepper__content{color:var(--ac-stepper-active,var(--a-text-action-selected))}:where(.navds-stepper__step:hover) .navds-stepper__content{text-decoration:underline}:where(.navds-stepper__step--non-interactive:hover,.navds-stepper__step--active:hover) .navds-stepper__content{text-decoration:none}:where(.navds-stepper__step--active) .navds-stepper__circle{background-color:var(--ac-stepper-active-bg,var(--a-surface-action-selected));border-color:var(--ac-stepper-active-border,var(--a-border-action-selected));color:var(--ac-stepper-active-text,var(--a-text-on-action))}:where(.navds-stepper__step:not(.navds-stepper__step--active):hover) .navds-stepper__circle{background-color:var(--ac-stepper-hover-bg,var(--a-surface-action-subtle-hover))}:where(.navds-stepper__step--non-interactive.navds-stepper__step--active) .navds-stepper__content{color:var(--ac-stepper-non-interactive-active,var(--a-text-default))}.navds-stepper__step--non-interactive.navds-stepper__step--behind.navds-stepper__step--completed+.navds-stepper__line{background-color:var(--ac-stepper-non-interactive-line-completed,var(--a-border-strong))}:where(.navds-stepper__step--non-interactive.navds-stepper__step--active) .navds-stepper__circle{background-color:var(--ac-stepper-non-interactive-active-bg,var(--a-surface-inverted));border-color:var(--ac-stepper-non-interactive-active-border,var(--a-surface-inverted));color:var(--ac-stepper-non-interactive-active-text,var(--a-text-on-inverted))}:where(.navds-stepper__step--non-interactive:hover) .navds-stepper__circle{background-color:transparent}:where(.navds-stepper__step--non-interactive.navds-stepper__step--active:hover) .navds-stepper__circle{background-color:var(--ac-stepper-non-interactive-active-bg,var(--a-surface-inverted))}:where(.navds-stepper__step--completed.navds-stepper__step--active) .navds-stepper__circle{background-color:inherit;color:var(--ac-stepper-active-completed,var(--a-text-action-selected))}:where(.navds-stepper__step--completed.navds-stepper__step--active.navds-stepper__step--non-interactive) .navds-stepper__circle{color:var(--ac-stepper-non-interactive-active-completed,var(--a-text-default))}
|