@navikt/ds-css 7.4.0 → 7.4.1
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 +6 -0
- package/darkside/accordion.darkside.css +198 -0
- package/darkside/action-menu.darkside.css +227 -0
- package/darkside/alert.darkside.css +113 -0
- package/darkside/baseline/theme.darkside.css +4 -2
- package/darkside/button.darkside.css +318 -4
- package/darkside/chat.darkside.css +120 -0
- package/darkside/chips.darkside.css +234 -0
- package/darkside/copybutton.darkside.css +226 -0
- package/darkside/date.darkside.css +344 -0
- package/darkside/dropdown.darkside.css +91 -0
- package/darkside/expansioncard.darkside.css +235 -0
- package/darkside/form/combobox.darkside.css +441 -0
- package/darkside/form/confirmation-panel.darkside.css +53 -0
- package/darkside/form/error-summary.darkside.css +55 -0
- package/darkside/form/fieldset.darkside.css +51 -0
- package/darkside/form/file-upload.darkside.css +230 -0
- package/darkside/form/form-progress.darkside.css +52 -0
- package/darkside/form/form-summary.darkside.css +78 -0
- package/darkside/form/form.darkside.css +61 -0
- package/darkside/form/index.css +16 -0
- package/darkside/form/radio-checkbox.darkside.css +356 -0
- package/darkside/form/search.darkside.css +228 -0
- package/darkside/form/select.darkside.css +115 -0
- package/darkside/form/switch.darkside.css +269 -0
- package/darkside/form/text-field.darkside.css +112 -0
- package/darkside/form/textarea.darkside.css +144 -0
- package/darkside/guide-panel.darkside.css +96 -0
- package/darkside/help-text.darkside.css +85 -0
- package/darkside/index copy.css +37 -0
- package/darkside/index.css +36 -1
- package/darkside/internalheader.darkside.css +105 -0
- package/darkside/link-panel.darkside.css +47 -0
- package/darkside/link.darkside.css +79 -0
- package/darkside/list.darkside.css +85 -0
- package/darkside/loader.darkside.css +119 -0
- package/darkside/modal.darkside.css +209 -0
- package/darkside/pagination.darkside.css +73 -0
- package/darkside/panel.darkside.css +10 -0
- package/darkside/popover.darkside.css +84 -0
- package/darkside/primitives/base.darkside.css +809 -0
- package/darkside/primitives/bleed.darkside.css +103 -0
- package/darkside/primitives/box.darkside.css +66 -0
- package/darkside/primitives/hgrid.darkside.css +80 -0
- package/darkside/primitives/index.css +36 -0
- package/darkside/primitives/page.darkside.css +63 -0
- package/darkside/primitives/responsive.darkside.css +59 -0
- package/darkside/primitives/stack.darkside.css +155 -0
- package/darkside/progress-bar.darkside.css +108 -0
- package/darkside/read-more.darkside.css +91 -0
- package/darkside/skeleton.darkside.css +67 -0
- package/darkside/stepper.darkside.css +308 -0
- package/darkside/table.darkside.css +286 -0
- package/darkside/tabs.darkside.css +154 -0
- package/darkside/tag.darkside.css +194 -0
- package/darkside/timeline.darkside.css +449 -0
- package/darkside/toggle-group.darkside.css +181 -0
- package/darkside/tooltip.darkside.css +81 -0
- package/darkside/typography.darkside.css +253 -0
- package/dist/component/form.css +0 -1
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +1 -2
- package/dist/component/index.min.css +2 -2
- package/dist/components.css +1 -2
- package/dist/components.min.css +2 -2
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +1 -2
- package/dist/index.min.css +2 -2
- package/form/combobox.css +0 -1
- package/package.json +2 -2
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
.navds-table {
|
|
2
|
+
width: 100%;
|
|
3
|
+
border-collapse: collapse;
|
|
4
|
+
display: table;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.navds-table__header {
|
|
8
|
+
display: table-header-group;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.navds-table__body {
|
|
12
|
+
display: table-row-group;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.navds-table__row {
|
|
16
|
+
display: table-row;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.navds-table__body .navds-table__row--shade-on-hover:not(.navds-table__expandable-row--expansion-disabled):hover {
|
|
20
|
+
background-color: var(--ac-table-row-hover, var(--a-bg-subtle));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.navds-table__row--selected {
|
|
24
|
+
background-color: var(--ac-table-row-selected, var(--a-surface-action-subtle));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.navds-table__body .navds-table__row--shade-on-hover.navds-table__row--selected:hover {
|
|
28
|
+
background-color: var(--ac-table-row-selected-hover, var(--a-surface-action-subtle-hover));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.navds-table--zebra-stripes .navds-table__body :where(.navds-table__row:nth-child(odd):not(.navds-table__row--selected)) {
|
|
32
|
+
background-color: var(--ac-table-row-zebra, var(--a-surface-subtle));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.navds-table--zebra-stripes
|
|
36
|
+
.navds-table__body
|
|
37
|
+
:where(.navds-table__expandable-row:nth-child(4n + 1):not(.navds-table__row--selected)) {
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.navds-table--zebra-stripes .navds-table__body .navds-table__expanded-row:nth-child(4n) {
|
|
42
|
+
background-color: var(--ac-table-row-zebra, var(--a-surface-subtle));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.navds-table__header-cell,
|
|
46
|
+
.navds-table__data-cell {
|
|
47
|
+
display: table-cell;
|
|
48
|
+
padding: var(--a-spacing-3) var(--a-spacing-2);
|
|
49
|
+
border-bottom: 1px solid var(--ac-table-row-border, var(--a-border-default));
|
|
50
|
+
text-align: left;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.navds-table__header .navds-table__header-cell,
|
|
54
|
+
.navds-table__header .navds-table__data-cell {
|
|
55
|
+
border-bottom-width: 2px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.navds-table__header-cell--align-right,
|
|
59
|
+
.navds-table__data-cell--align-right {
|
|
60
|
+
text-align: right;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.navds-table__header-cell--align-center,
|
|
64
|
+
.navds-table__data-cell--align-center {
|
|
65
|
+
text-align: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:where(.navds-table__body .navds-table__row--shade-on-hover:hover) .navds-table__header-cell,
|
|
69
|
+
:where(.navds-table__body .navds-table__row--shade-on-hover:hover) .navds-table__data-cell {
|
|
70
|
+
border-color: var(--ac-table-cell-hover-border, var(--a-border-strong));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(.navds-table__expandable-row--open:hover) .navds-table__data-cell {
|
|
74
|
+
border-bottom-color: transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.navds-table--large .navds-table__header-cell,
|
|
78
|
+
.navds-table--large .navds-table__data-cell {
|
|
79
|
+
padding: var(--a-spacing-4) var(--a-spacing-2);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.navds-table--small .navds-table__header-cell,
|
|
83
|
+
.navds-table--small .navds-table__data-cell {
|
|
84
|
+
padding: var(--a-spacing-1) var(--a-spacing-2);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.navds-table :not(.navds-checkboxes) > .navds-checkbox .navds-checkbox__input {
|
|
88
|
+
top: -0.75rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.navds-table :not(.navds-checkboxes) > .navds-checkbox--small .navds-checkbox__input {
|
|
92
|
+
top: -0.375rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.navds-table :not(.navds-checkboxes) > .navds-checkbox .navds-checkbox__label {
|
|
96
|
+
padding: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.navds-table__header-cell[aria-sort] {
|
|
100
|
+
padding: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.navds-table__sort-button {
|
|
104
|
+
appearance: none;
|
|
105
|
+
background: none;
|
|
106
|
+
color: var(--ac-table-sort-button-text, var(--a-text-action));
|
|
107
|
+
border: none;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
margin: 0;
|
|
110
|
+
padding: var(--a-spacing-4) var(--a-spacing-3);
|
|
111
|
+
width: 100%;
|
|
112
|
+
display: flex;
|
|
113
|
+
gap: var(--a-spacing-2);
|
|
114
|
+
align-items: center;
|
|
115
|
+
line-height: inherit;
|
|
116
|
+
font-weight: inherit;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.navds-table--small .navds-table__sort-button {
|
|
120
|
+
padding: var(--a-spacing-2) var(--a-spacing-3);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.navds-table__sort-button:hover {
|
|
124
|
+
background-color: var(--ac-table-sort-button-hover-bg, var(--a-bg-subtle));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.navds-table__sort-button:focus-visible {
|
|
128
|
+
outline: none;
|
|
129
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@supports not selector(:focus-visible) {
|
|
133
|
+
.navds-table__sort-button:focus {
|
|
134
|
+
outline: none;
|
|
135
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.navds-table__header-cell[aria-sort="ascending"] .navds-table__sort-button,
|
|
140
|
+
.navds-table__header-cell[aria-sort="descending"] .navds-table__sort-button {
|
|
141
|
+
background-color: var(--ac-table-sort-button-sorted-bg, var(--a-surface-selected));
|
|
142
|
+
color: var(--ac-table-sort-button-sorted-text, var(--a-table-sort-button-sorted-text, var(--a-text-action-on-action-subtle)));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.navds-table__header-cell--align-right .navds-table__sort-button {
|
|
146
|
+
justify-content: flex-end;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.navds-table__header-cell--align-center .navds-table__sort-button {
|
|
150
|
+
justify-content: center;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.navds-table__sort-button svg {
|
|
154
|
+
font-size: 1rem;
|
|
155
|
+
flex-shrink: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.navds-table__expandable-row:not(.navds-table__expandable-row--open) .navds-table__data-cell {
|
|
159
|
+
transition: border-bottom-color 190ms cubic-bezier(0.6, 0.04, 0.98, 0.335);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.navds-table__expandable-row.navds-table__expandable-row--clickable:not(.navds-table__expandable-row--expansion-disabled):hover {
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.navds-table__expandable-row--open .navds-table__data-cell {
|
|
167
|
+
border-bottom-color: transparent;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.navds-table__expandable-row--open .navds-table__header-cell {
|
|
171
|
+
border-color: var(--ac-table-row-border, var(--a-border-default));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.navds-table__expandable-row--open .navds-table__toggle-expand-cell--open {
|
|
175
|
+
border-color: transparent;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.navds-table__toggle-expand-cell {
|
|
179
|
+
padding: 0;
|
|
180
|
+
width: 3rem;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.navds-table--large .navds-table__toggle-expand-cell {
|
|
184
|
+
padding: 0 var(--a-spacing-2);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.navds-table--small .navds-table__toggle-expand-cell {
|
|
188
|
+
padding: var(--a-spacing-1) var(--a-spacing-2);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.navds-table__toggle-expand-button {
|
|
192
|
+
display: grid;
|
|
193
|
+
place-content: center;
|
|
194
|
+
cursor: pointer;
|
|
195
|
+
background: transparent;
|
|
196
|
+
border: none;
|
|
197
|
+
border-radius: var(--a-border-radius-medium);
|
|
198
|
+
height: 2rem;
|
|
199
|
+
width: 2rem;
|
|
200
|
+
font-size: 1.5rem;
|
|
201
|
+
margin: 0 auto;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.navds-table__expandable-icon {
|
|
205
|
+
transition: transform 150ms ease-in-out;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.navds-table__toggle-expand-cell:hover {
|
|
209
|
+
cursor: pointer;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.navds-table__toggle-expand-button:hover,
|
|
213
|
+
.navds-table__toggle-expand-cell:hover > .navds-table__toggle-expand-button,
|
|
214
|
+
.navds-table__expandable-row--clickable:hover .navds-table__toggle-expand-button {
|
|
215
|
+
background-color: var(--a-surface-hover);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.navds-table__toggle-expand-cell--open > :where(.navds-table__toggle-expand-button) :where(.navds-table__expandable-icon) {
|
|
219
|
+
transform: translateY(0) rotate(180deg);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.navds-table__toggle-expand-button:hover > :where(.navds-table__expandable-icon) {
|
|
223
|
+
transform: translateY(1px);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.navds-table__toggle-expand-cell--open > .navds-table__toggle-expand-button:hover > :where(.navds-table__expandable-icon) {
|
|
227
|
+
transform: translateY(-1px) rotate(180deg);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.navds-table__toggle-expand-button:focus-visible {
|
|
231
|
+
outline: none;
|
|
232
|
+
box-shadow: var(--a-shadow-focus);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@supports not selector(:focus-visible) {
|
|
236
|
+
.navds-table__toggle-expand-button:focus {
|
|
237
|
+
outline: none;
|
|
238
|
+
box-shadow: var(--a-shadow-focus);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.navds-table__expanded-row-cell {
|
|
243
|
+
padding: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.navds-table__expanded-row-cell:empty {
|
|
247
|
+
display: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.navds-table__expanded-row-collapse:not([style*="height: 0px;"]) {
|
|
251
|
+
border-bottom: 1px solid var(--ac-table-row-border, var(--a-border-default));
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.navds-table__expanded-row-content {
|
|
255
|
+
padding: var(--a-spacing-4) calc(var(--a-spacing-2) + 3rem);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.navds-table--small .navds-table__expanded-row-content {
|
|
259
|
+
padding: var(--a-spacing-2) calc(var(--a-spacing-2) + 3rem);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@media (forced-colors: active) {
|
|
263
|
+
.navds-date.navds-date button.rdp-day_selected {
|
|
264
|
+
forced-color-adjust: none;
|
|
265
|
+
background-color: highlight;
|
|
266
|
+
color: highlighttext;
|
|
267
|
+
box-shadow: none;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.navds-date.navds-date button {
|
|
271
|
+
color: buttontext;
|
|
272
|
+
forced-color-adjust: none;
|
|
273
|
+
outline: none;
|
|
274
|
+
box-shadow: none;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.navds-date button:focus-visible {
|
|
278
|
+
color: buttontext;
|
|
279
|
+
forced-color-adjust: none;
|
|
280
|
+
outline: 2px solid highlight;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.navds-date.navds-date button.rdp-day_disabled {
|
|
284
|
+
color: GrayText;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
.navds-tabs__tablist-wrapper {
|
|
2
|
+
box-shadow: inset 0 -1px 0 0 var(--ac-tabs-border, var(--a-border-divider));
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.navds-tabs__tablist {
|
|
8
|
+
display: flex;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
scroll-behavior: smooth;
|
|
12
|
+
-ms-overflow-style: none; /* for Internet Explorer, Edge */
|
|
13
|
+
scrollbar-width: none; /* for Firefox */
|
|
14
|
+
overflow-x: scroll;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.navds-tabs__tablist::-webkit-scrollbar {
|
|
18
|
+
display: none; /* for Chrome, Safari, and Opera */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.navds-tabs__scroll-button {
|
|
22
|
+
padding: var(--a-spacing-3) var(--a-spacing-4);
|
|
23
|
+
width: 2.75rem;
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.navds-tabs__scroll-button--hidden {
|
|
31
|
+
visibility: hidden;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.navds-tabs__scroll-button svg {
|
|
35
|
+
font-size: 1.25rem;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.navds-tabs--small .navds-tabs__scroll-button {
|
|
40
|
+
padding: var(--a-spacing-1-alt) var(--a-spacing-4);
|
|
41
|
+
width: 2rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.navds-tabs__tab {
|
|
45
|
+
min-height: 3rem;
|
|
46
|
+
padding: var(--a-spacing-3) var(--a-spacing-4);
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
align-items: center;
|
|
50
|
+
background: none;
|
|
51
|
+
border: none;
|
|
52
|
+
color: var(--ac-tabs-text, var(--a-text-default));
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.navds-tabs__tab:hover {
|
|
57
|
+
box-shadow: inset 0 -3px 0 0 var(--ac-tabs-hover-border, var(--a-border-subtle-hover));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.navds-tabs__tab[aria-selected="true"] {
|
|
61
|
+
box-shadow: inset 0 -3px 0 0 var(--ac-tabs-selected-border, var(--a-border-action-selected));
|
|
62
|
+
color: var(--ac-tabs-selected-text, var(--a-text-default));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.navds-tabs__tab:focus-visible {
|
|
66
|
+
outline: 2px solid transparent;
|
|
67
|
+
outline-offset: -2px;
|
|
68
|
+
box-shadow: inset var(--a-shadow-focus);
|
|
69
|
+
color: var(--ac-tabs-focus-text, var(--a-text-default));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@supports not selector(:focus-visible) {
|
|
73
|
+
.navds-tabs__tab:focus {
|
|
74
|
+
outline: 2px solid transparent;
|
|
75
|
+
box-shadow: inset var(--a-shadow-focus);
|
|
76
|
+
color: var(--ac-tabs-focus-text, var(--a-text-default));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.navds-tabs__tab-inner {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: var(--a-spacing-1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.navds-tabs__tab-inner > * {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.navds-tabs__tab-inner svg {
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.navds-tabs__tab-icon--top > .navds-tabs__tab-inner {
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
gap: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.navds-tabs__tab--small {
|
|
100
|
+
min-height: 2rem;
|
|
101
|
+
padding: var(--a-spacing-1-alt) var(--a-spacing-4);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.navds-tabs__tab-icon--top,
|
|
105
|
+
.navds-tabs__tab--small.navds-tabs__tab-icon--top {
|
|
106
|
+
padding: var(--a-spacing-1) var(--a-spacing-4);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.navds-tabs__tab svg,
|
|
110
|
+
.navds-tabs__tab--small.navds-tabs__tab--icon-only svg,
|
|
111
|
+
.navds-tabs__tab--small.navds-tabs__tab-icon--top svg {
|
|
112
|
+
font-size: 1.25rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.navds-tabs__tab--small svg {
|
|
116
|
+
font-size: 1rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.navds-tabs__tab--icon-only svg,
|
|
120
|
+
.navds-tabs__tab-icon--top svg {
|
|
121
|
+
font-size: 1.5rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.navds-tabs__tab--fill {
|
|
125
|
+
flex: 1 1 100%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.navds-tabs__tabpanel:focus-visible {
|
|
129
|
+
outline: 2px solid transparent;
|
|
130
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@supports not selector(:focus-visible) {
|
|
134
|
+
.navds-tabs__tabpanel:focus {
|
|
135
|
+
outline: 2px solid transparent;
|
|
136
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (forced-colors: active) {
|
|
141
|
+
.navds-tabs__tab[aria-selected="true"] {
|
|
142
|
+
border-bottom: 3px solid canvastext;
|
|
143
|
+
padding-block-end: calc(var(--a-spacing-3) - 3px);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.navds-tabs__tab--small[aria-selected="true"] {
|
|
147
|
+
padding-block-end: calc(var(--a-spacing-1-alt) - 3px);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.navds-tabs__tab-icon--top[aria-selected="true"],
|
|
151
|
+
.navds-tabs__tab--small.navds-tabs__tab-icon--top[aria-selected="true"] {
|
|
152
|
+
padding-block-end: calc(var(--a-spacing-1) - 3px);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
.navds-tag {
|
|
2
|
+
--__ac-tag-icon-size: 1.5rem;
|
|
3
|
+
--__ac-tag-icon-margin: -2px;
|
|
4
|
+
|
|
5
|
+
border: 1px solid;
|
|
6
|
+
border-radius: var(--a-border-radius-small);
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: var(--a-spacing-05) var(--a-spacing-2);
|
|
11
|
+
min-height: 2rem;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.navds-tag--small {
|
|
16
|
+
min-height: 1.5rem;
|
|
17
|
+
padding: 0 var(--a-spacing-1-alt);
|
|
18
|
+
|
|
19
|
+
--__ac-tag-icon-size: 1.25rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.navds-tag--xsmall {
|
|
23
|
+
min-height: 1.25rem;
|
|
24
|
+
padding: 0 var(--a-spacing-1);
|
|
25
|
+
|
|
26
|
+
--__ac-tag-icon-size: 1rem;
|
|
27
|
+
--__ac-tag-icon-margin: -1px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.navds-tag:has(.navds-tag__icon--left) {
|
|
31
|
+
gap: var(--a-spacing-05);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.navds-tag__icon--left {
|
|
35
|
+
font-size: var(--__ac-tag-icon-size);
|
|
36
|
+
margin-inline-start: var(--__ac-tag-icon-margin);
|
|
37
|
+
display: flex;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.navds-tag--error {
|
|
41
|
+
border-color: var(--ac-tag-error-border, var(--a-border-danger));
|
|
42
|
+
background-color: var(--ac-tag-error-bg, var(--a-surface-danger-subtle));
|
|
43
|
+
color: var(--ac-tag-error-text, var(--a-text-default));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.navds-tag--error-filled {
|
|
47
|
+
border-color: transparent;
|
|
48
|
+
background-color: var(--ac-tag-error-filled-bg, var(--a-surface-danger));
|
|
49
|
+
color: var(--ac-tag-error-filled-text, var(--a-text-on-danger));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.navds-tag--error-moderate {
|
|
53
|
+
border-color: transparent;
|
|
54
|
+
background-color: var(--ac-tag-error-moderate-bg, var(--a-surface-danger-moderate));
|
|
55
|
+
color: var(--ac-tag-error-moderate-text, var(--a-text-default));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.navds-tag--success {
|
|
59
|
+
border-color: var(--ac-tag-success-border, var(--a-border-success));
|
|
60
|
+
background-color: var(--ac-tag-success-bg, var(--a-surface-success-subtle));
|
|
61
|
+
color: var(--ac-tag-success-text, var(--a-text-default));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.navds-tag--success-filled {
|
|
65
|
+
border-color: transparent;
|
|
66
|
+
background-color: var(--ac-tag-success-filled-bg, var(--a-surface-success));
|
|
67
|
+
color: var(--ac-tag-success-filled-text, var(--a-text-on-success));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.navds-tag--success-moderate {
|
|
71
|
+
border-color: transparent;
|
|
72
|
+
background-color: var(--ac-tag-success-moderate-bg, var(--a-surface-success-moderate));
|
|
73
|
+
color: var(--ac-tag-success-moderate-text, var(--a-text-default));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.navds-tag--warning {
|
|
77
|
+
border-color: var(--ac-tag-warning-border, var(--a-border-warning));
|
|
78
|
+
background-color: var(--ac-tag-warning-bg, var(--a-surface-warning-subtle));
|
|
79
|
+
color: var(--ac-tag-warning-text, var(--a-text-default));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.navds-tag--warning-filled {
|
|
83
|
+
border-color: transparent;
|
|
84
|
+
background-color: var(--ac-tag-warning-filled-bg, var(--a-surface-warning));
|
|
85
|
+
color: var(--ac-tag-warning-filled-text, var(--a-text-on-warning));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.navds-tag--warning-moderate {
|
|
89
|
+
border-color: transparent;
|
|
90
|
+
background-color: var(--ac-tag-warning-moderate-bg, var(--a-surface-warning-moderate));
|
|
91
|
+
color: var(--ac-tag-warning-moderate-text, var(--a-text-default));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.navds-tag--info {
|
|
95
|
+
border-color: var(--ac-tag-info-border, var(--a-border-info));
|
|
96
|
+
background-color: var(--ac-tag-info-bg, var(--a-surface-info-subtle));
|
|
97
|
+
color: var(--ac-tag-info-text, var(--a-text-default));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.navds-tag--info-filled {
|
|
101
|
+
border-color: transparent;
|
|
102
|
+
background-color: var(--ac-tag-info-filled-bg, var(--a-surface-info));
|
|
103
|
+
color: var(--ac-tag-info-filled-text, var(--a-text-on-info));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.navds-tag--info-moderate {
|
|
107
|
+
border-color: transparent;
|
|
108
|
+
background-color: var(--ac-tag-info-moderate-bg, var(--a-surface-info-moderate));
|
|
109
|
+
color: var(--ac-tag-info-moderate-text, var(--a-text-default));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.navds-tag--neutral {
|
|
113
|
+
border-color: var(--ac-tag-neutral-border, var(--a-border-default));
|
|
114
|
+
background-color: var(--ac-tag-neutral-bg, var(--a-surface-neutral-subtle));
|
|
115
|
+
color: var(--ac-tag-neutral-text, var(--a-text-default));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.navds-tag--neutral-filled {
|
|
119
|
+
border-color: transparent;
|
|
120
|
+
background-color: var(--ac-tag-neutral-filled-bg, var(--a-surface-neutral));
|
|
121
|
+
color: var(--ac-tag-neutral-filled-text, var(--a-text-on-neutral));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.navds-tag--neutral-moderate {
|
|
125
|
+
border-color: transparent;
|
|
126
|
+
background-color: var(--ac-tag-neutral-moderate-bg, var(--a-surface-neutral-moderate));
|
|
127
|
+
color: var(--ac-tag-neutral-moderate-text, var(--a-text-default));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.navds-tag--alt1 {
|
|
131
|
+
border-color: var(--ac-tag-alt-1-border, var(--a-border-alt-1));
|
|
132
|
+
background-color: var(--ac-tag-alt-1-bg, var(--a-surface-alt-1-subtle));
|
|
133
|
+
color: var(--ac-tag-alt-1-text, var(--a-text-default));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.navds-tag--alt1-filled {
|
|
137
|
+
border-color: transparent;
|
|
138
|
+
background-color: var(--ac-tag-alt-1-filled-bg, var(--a-surface-alt-1));
|
|
139
|
+
color: var(--ac-tag-alt-1-filled-text, var(--a-text-on-alt-1));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.navds-tag--alt1-moderate {
|
|
143
|
+
border-color: transparent;
|
|
144
|
+
background-color: var(--ac-tag-alt-1-moderate-bg, var(--a-surface-alt-1-moderate));
|
|
145
|
+
color: var(--ac-tag-alt-1-moderate-text, var(--a-text-default));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.navds-tag--alt2 {
|
|
149
|
+
border-color: var(--ac-tag-alt-2-border, var(--a-border-alt-2));
|
|
150
|
+
background-color: var(--ac-tag-alt-2-bg, var(--a-surface-alt-2-subtle));
|
|
151
|
+
color: var(--ac-tag-alt-2-text, var(--a-text-default));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.navds-tag--alt2-filled {
|
|
155
|
+
border-color: transparent;
|
|
156
|
+
background-color: var(--ac-tag-alt-2-filled-bg, var(--a-surface-alt-2));
|
|
157
|
+
color: var(--ac-tag-alt-2-filled-text, var(--a-text-on-alt-2));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.navds-tag--alt2-moderate {
|
|
161
|
+
border-color: transparent;
|
|
162
|
+
background-color: var(--ac-tag-alt-2-moderate-bg, var(--a-surface-alt-2-moderate));
|
|
163
|
+
color: var(--ac-tag-alt-2-moderate-text, var(--a-text-default));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.navds-tag--alt3 {
|
|
167
|
+
border-color: var(--ac-tag-alt-3-border, var(--a-border-alt-3));
|
|
168
|
+
background-color: var(--ac-tag-alt-3-bg, var(--a-surface-alt-3-subtle));
|
|
169
|
+
color: var(--ac-tag-alt-3-text, var(--a-text-default));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.navds-tag--alt3-filled {
|
|
173
|
+
border-color: transparent;
|
|
174
|
+
background-color: var(--ac-tag-alt-3-filled-bg, var(--a-surface-alt-3));
|
|
175
|
+
color: var(--ac-tag-alt-3-filled-text, var(--a-text-on-alt-3));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.navds-tag--alt3-moderate {
|
|
179
|
+
border-color: transparent;
|
|
180
|
+
background-color: var(--ac-tag-alt-3-moderate-bg, var(--a-surface-alt-3-moderate));
|
|
181
|
+
color: var(--ac-tag-alt-3-moderate-text, var(--a-text-default));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@media (forced-colors: active) {
|
|
185
|
+
.navds-tag {
|
|
186
|
+
forced-color-adjust: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.navds-tag--neutral,
|
|
190
|
+
.navds-tag--neutral-moderate {
|
|
191
|
+
border-color: canvastext;
|
|
192
|
+
color: canvastext;
|
|
193
|
+
}
|
|
194
|
+
}
|