@navikt/ds-css 7.23.2 → 7.24.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 +14 -0
- package/config/_mappings.js +5 -0
- package/darkside/form/select.darkside.css +1 -0
- package/darkside/form/switch.darkside.css +27 -12
- package/darkside/form/text-field.darkside.css +1 -0
- package/darkside/form/textarea.darkside.css +1 -0
- package/darkside/index.css +2 -0
- package/darkside/link-anchor.darkside.css +53 -0
- package/darkside/link-card.darkside.css +109 -0
- package/darkside/table.darkside.css +13 -0
- package/dist/component/form.css +26 -8
- package/dist/component/form.min.css +1 -1
- package/dist/component/linkanchor.css +53 -0
- package/dist/component/linkanchor.min.css +1 -0
- package/dist/component/linkcard.css +94 -0
- package/dist/component/linkcard.min.css +1 -0
- package/dist/component/table.css +13 -0
- package/dist/component/table.min.css +1 -1
- package/dist/components.css +203 -9
- package/dist/components.min.css +1 -1
- package/dist/darkside/component/form.css +30 -12
- package/dist/darkside/component/form.min.css +1 -1
- package/dist/darkside/component/linkanchor.css +52 -0
- package/dist/darkside/component/linkanchor.min.css +1 -0
- package/dist/darkside/component/linkcard.css +108 -0
- package/dist/darkside/component/linkcard.min.css +1 -0
- package/dist/darkside/component/table.css +13 -0
- package/dist/darkside/component/table.min.css +1 -1
- package/dist/darkside/components.css +201 -12
- package/dist/darkside/components.min.css +1 -1
- package/dist/darkside/global/tokens.css +1 -1
- package/dist/darkside/global/tokens.min.css +1 -1
- package/dist/darkside/index.css +202 -13
- package/dist/darkside/index.min.css +1 -1
- package/dist/darkside/version/{7.23.2 → 7.24.0}/component/form.css +30 -12
- package/dist/darkside/version/7.24.0/component/form.min.css +1 -0
- package/dist/darkside/version/7.24.0/component/linkanchor.css +52 -0
- package/dist/darkside/version/7.24.0/component/linkanchor.min.css +1 -0
- package/dist/darkside/version/7.24.0/component/linkcard.css +108 -0
- package/dist/darkside/version/7.24.0/component/linkcard.min.css +1 -0
- package/dist/darkside/version/{7.23.2 → 7.24.0}/component/table.css +13 -0
- package/dist/darkside/version/7.24.0/component/table.min.css +1 -0
- package/dist/darkside/version/{7.23.2 → 7.24.0}/components.css +201 -12
- package/dist/darkside/version/7.24.0/components.min.css +1 -0
- package/dist/darkside/version/{7.23.2 → 7.24.0}/global/tokens.css +1 -1
- package/dist/darkside/version/{7.23.2 → 7.24.0}/global/tokens.min.css +1 -1
- package/dist/darkside/version/{7.23.2 → 7.24.0}/index.css +202 -13
- package/dist/darkside/version/7.24.0/index.min.css +1 -0
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +204 -10
- package/dist/index.min.css +2 -2
- package/form/select.css +1 -0
- package/form/switch.css +25 -9
- package/form/text-field.css +1 -0
- package/form/textarea.css +1 -0
- package/index.css +2 -0
- package/link-anchor.css +53 -0
- package/link-card.css +106 -0
- package/package.json +2 -2
- package/table.css +13 -0
- package/dist/darkside/version/7.23.2/component/form.min.css +0 -1
- package/dist/darkside/version/7.23.2/component/table.min.css +0 -1
- package/dist/darkside/version/7.23.2/components.min.css +0 -1
- package/dist/darkside/version/7.23.2/index.min.css +0 -1
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/accordion.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/accordion.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/actionmenu.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/actionmenu.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/alert.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/alert.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/button.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/button.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/chat.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/chat.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/chips.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/chips.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/copybutton.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/copybutton.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/date.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/date.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/dropdown.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/dropdown.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/expansioncard.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/expansioncard.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/guidepanel.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/guidepanel.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/helptext.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/helptext.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/internalheader.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/internalheader.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/link.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/link.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/linkpanel.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/linkpanel.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/list.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/list.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/loader.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/loader.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/modal.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/modal.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/pagination.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/pagination.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/panel.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/panel.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/popover.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/popover.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/primitives.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/primitives.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/progressbar.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/progressbar.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/readmore.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/readmore.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/skeleton.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/skeleton.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/stepper.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/stepper.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/tabs.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/tabs.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/tag.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/tag.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/theme.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/theme.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/timeline.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/timeline.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/togglegroup.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/togglegroup.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/tooltip.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/tooltip.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/typography.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/component/typography.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/global/baseline.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/global/baseline.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/global/fonts.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/global/fonts.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/global/print.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/global/print.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/global/reset.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.24.0}/global/reset.min.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @navikt/ds-css
|
|
2
2
|
|
|
3
|
+
## 7.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- LinkCard: :tada: Added new component 'LinkCard'. ([#3883](https://github.com/navikt/aksel/pull/3883))
|
|
8
|
+
|
|
9
|
+
- Table: :tada: Added prop 'stickyHeader', allowing header to remain sticky while scrolling in table. ([#3893](https://github.com/navikt/aksel/pull/3893))
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Forms: Added built-in scroll-margin to TextField, Textarea and Select. ([#3897](https://github.com/navikt/aksel/pull/3897))
|
|
14
|
+
|
|
15
|
+
- Switch: Size='small' are now visually comparable to radio and checkbox in the same size. ([#3892](https://github.com/navikt/aksel/pull/3892))
|
|
16
|
+
|
|
3
17
|
## 7.23.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/config/_mappings.js
CHANGED
|
@@ -145,6 +145,11 @@ const StyleMappings = {
|
|
|
145
145
|
},
|
|
146
146
|
{ component: "Label", main: typoCss },
|
|
147
147
|
{ component: "Link", main: "link.css", dependencies: [typoCss] },
|
|
148
|
+
{
|
|
149
|
+
component: "LinkCard",
|
|
150
|
+
main: "link-card.css",
|
|
151
|
+
dependencies: [typoCss, "link-anchor.css"],
|
|
152
|
+
},
|
|
148
153
|
{
|
|
149
154
|
component: "LinkPanel",
|
|
150
155
|
main: "link-panel.css",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
.aksel-switch--small > & {
|
|
22
22
|
height: 2rem;
|
|
23
|
+
width: 2.5rem;
|
|
23
24
|
top: 0;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -32,19 +33,21 @@
|
|
|
32
33
|
|
|
33
34
|
.aksel-switch__content {
|
|
34
35
|
--__axc-switch-block-padding: 0.75rem;
|
|
36
|
+
--__axc-switch-inline-padding: 3.25rem;
|
|
35
37
|
|
|
36
38
|
position: relative;
|
|
37
39
|
display: flex;
|
|
38
40
|
flex-direction: column;
|
|
39
41
|
gap: var(--ax-space-2);
|
|
40
|
-
padding: var(--__axc-switch-block-padding) 0 var(--__axc-switch-block-padding)
|
|
42
|
+
padding: var(--__axc-switch-block-padding) 0 var(--__axc-switch-block-padding) var(--__axc-switch-inline-padding);
|
|
41
43
|
|
|
42
44
|
.aksel-switch--right & {
|
|
43
|
-
padding: var(--__axc-switch-block-padding)
|
|
45
|
+
padding: var(--__axc-switch-block-padding) var(--__axc-switch-inline-padding) var(--__axc-switch-block-padding) 0;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.aksel-switch--small & {
|
|
47
49
|
--__axc-switch-block-padding: 0.375rem;
|
|
50
|
+
--__axc-switch-inline-padding: 2.75rem;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
&.aksel-switch--with-description {
|
|
@@ -87,7 +90,9 @@
|
|
|
87
90
|
transition-timing-function: ease;
|
|
88
91
|
|
|
89
92
|
.aksel-switch--small > & {
|
|
90
|
-
top: var(--ax-space-
|
|
93
|
+
top: var(--ax-space-6);
|
|
94
|
+
width: 2.25rem;
|
|
95
|
+
height: 1.25rem;
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
.aksel-switch__input:checked ~ & {
|
|
@@ -135,6 +140,11 @@
|
|
|
135
140
|
left: 0.0625rem;
|
|
136
141
|
top: 0.0625rem;
|
|
137
142
|
|
|
143
|
+
.aksel-switch--small & {
|
|
144
|
+
width: 0.875rem;
|
|
145
|
+
height: 0.875rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
138
148
|
.aksel-switch__input:checked ~ .aksel-switch__track > & {
|
|
139
149
|
background-color: var(--ax-bg-raised);
|
|
140
150
|
transform: translateX(1.25rem);
|
|
@@ -145,18 +155,15 @@
|
|
|
145
155
|
top: 0;
|
|
146
156
|
}
|
|
147
157
|
|
|
148
|
-
.aksel-switch__input:checked ~ .aksel-switch__track > &
|
|
149
|
-
|
|
150
|
-
|
|
158
|
+
.aksel-switch--small > .aksel-switch__input:checked ~ .aksel-switch__track > & {
|
|
159
|
+
transform: translateX(1rem);
|
|
160
|
+
width: 1rem;
|
|
161
|
+
height: 1rem;
|
|
162
|
+
left: 0;
|
|
163
|
+
top: 0;
|
|
151
164
|
}
|
|
152
165
|
}
|
|
153
166
|
|
|
154
|
-
.aksel-switch__checkmark {
|
|
155
|
-
visibility: hidden;
|
|
156
|
-
opacity: 0;
|
|
157
|
-
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
167
|
@media (hover: hover) and (pointer: fine) {
|
|
161
168
|
.aksel-switch__input:hover:not(:disabled) ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
162
169
|
transform: translateX(0.17rem);
|
|
@@ -165,6 +172,10 @@
|
|
|
165
172
|
.aksel-switch__input:checked:hover:not(:disabled) ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
166
173
|
transform: translateX(1.1rem);
|
|
167
174
|
}
|
|
175
|
+
|
|
176
|
+
.aksel-switch--small > .aksel-switch__input:checked:hover:not(:disabled) ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
177
|
+
transform: translateX(0.875rem);
|
|
178
|
+
}
|
|
168
179
|
}
|
|
169
180
|
|
|
170
181
|
.aksel-switch--right {
|
|
@@ -227,6 +238,10 @@
|
|
|
227
238
|
& > .aksel-switch__input:checked:hover ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
228
239
|
transform: translateX(1.25rem);
|
|
229
240
|
}
|
|
241
|
+
|
|
242
|
+
&.aksel-switch--small > .aksel-switch__input:checked:hover ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
243
|
+
transform: translateX(1rem);
|
|
244
|
+
}
|
|
230
245
|
}
|
|
231
246
|
}
|
|
232
247
|
|
package/darkside/index.css
CHANGED
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
@import "./internalheader.darkside.css" layer(aksel.components);
|
|
39
39
|
@import "./link.darkside.css" layer(aksel.components);
|
|
40
40
|
@import "./link-panel.darkside.css" layer(aksel.components);
|
|
41
|
+
@import "./link-anchor.darkside.css" layer(aksel.components);
|
|
42
|
+
@import "./link-card.darkside.css" layer(aksel.components);
|
|
41
43
|
@import "./loader.darkside.css" layer(aksel.components);
|
|
42
44
|
@import "./modal.darkside.css" layer(aksel.components);
|
|
43
45
|
@import "./pagination.darkside.css" layer(aksel.components);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.aksel-link-anchor__overlay {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
|
|
4
|
+
&:focus-within {
|
|
5
|
+
outline: 3px solid var(--ax-border-focus);
|
|
6
|
+
outline-offset: 3px;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@supports selector(:has(*)) {
|
|
11
|
+
.aksel-link-anchor__overlay:focus-within {
|
|
12
|
+
outline: unset;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.aksel-link-anchor__overlay:has(:focus-visible) {
|
|
16
|
+
outline: 3px solid var(--ax-border-focus);
|
|
17
|
+
outline-offset: 3px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.aksel-link-anchor {
|
|
22
|
+
text-decoration: underline;
|
|
23
|
+
text-decoration-color: currentColor;
|
|
24
|
+
text-underline-offset: 0.1em;
|
|
25
|
+
text-decoration-thickness: 0.05em;
|
|
26
|
+
color: inherit;
|
|
27
|
+
|
|
28
|
+
&:hover,
|
|
29
|
+
.aksel-link-anchor__overlay:hover & {
|
|
30
|
+
text-decoration-thickness: 0.111em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:focus-visible {
|
|
34
|
+
outline: 3px solid var(--ax-border-focus);
|
|
35
|
+
outline-offset: 3px;
|
|
36
|
+
border-radius: 1px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.aksel-link-anchor__overlay &:focus-visible {
|
|
40
|
+
outline: none;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aksel-link-anchor__arrow {
|
|
45
|
+
transition: transform 200ms;
|
|
46
|
+
transform: translateX(0);
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
|
|
49
|
+
.aksel-link-anchor:hover &,
|
|
50
|
+
.aksel-link-anchor__overlay:hover & {
|
|
51
|
+
transform: translateX(4px);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
.aksel-link-card {
|
|
2
|
+
--__axc-link-card-padding-block: var(--ax-space-16);
|
|
3
|
+
--__axc-link-card-padding-inline: var(--ax-space-20);
|
|
4
|
+
|
|
5
|
+
border-radius: var(--ax-border-radius-xlarge);
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
color: var(--ax-text-neutral);
|
|
8
|
+
transition-property: border-color, box-shadow, transform, background-color;
|
|
9
|
+
transition-duration: 300ms;
|
|
10
|
+
transition-timing-function: cubic-bezier(0, 0, 0, 1);
|
|
11
|
+
position: relative;
|
|
12
|
+
background-color: var(--ax-bg-raised);
|
|
13
|
+
border: 1px solid var(--ax-border-subtleA);
|
|
14
|
+
padding: var(--__axc-link-card-padding-block) var(--__axc-link-card-padding-inline);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-areas:
|
|
18
|
+
"image image"
|
|
19
|
+
"icon title"
|
|
20
|
+
"icon description"
|
|
21
|
+
"icon footer";
|
|
22
|
+
grid-template-columns: auto 1fr;
|
|
23
|
+
grid-template-rows: min-content min-content min-content auto;
|
|
24
|
+
align-items: center;
|
|
25
|
+
|
|
26
|
+
&:not(:has(.aksel-link-card__description, .aksel-link-card__footer)) {
|
|
27
|
+
grid-template-rows: auto 1fr;
|
|
28
|
+
|
|
29
|
+
& .aksel-link-card__title {
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
& .aksel-link-card__icon {
|
|
34
|
+
align-self: center;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
border-color: var(--ax-border-default);
|
|
40
|
+
box-shadow: 0 0 0 1px var(--ax-border-default);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aksel-link-card--small {
|
|
45
|
+
--__axc-link-card-padding-block: var(--ax-space-12);
|
|
46
|
+
--__axc-link-card-padding-inline: var(--ax-space-16);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.aksel-link-card__title {
|
|
50
|
+
grid-area: title;
|
|
51
|
+
color: var(--ax-text-subtle);
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: flex-start;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
gap: var(--ax-space-8);
|
|
56
|
+
hyphens: auto;
|
|
57
|
+
|
|
58
|
+
.aksel-link-card[data-color="neutral"] &,
|
|
59
|
+
&[data-color="neutral"] {
|
|
60
|
+
color: var(--ax-text-default);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.aksel-link-card__description {
|
|
65
|
+
grid-area: description;
|
|
66
|
+
margin-block-start: var(--ax-space-4);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.aksel-link-card__footer {
|
|
70
|
+
grid-area: footer;
|
|
71
|
+
margin-block-start: var(--ax-space-16);
|
|
72
|
+
display: flex;
|
|
73
|
+
align-self: flex-end;
|
|
74
|
+
gap: var(--ax-space-8);
|
|
75
|
+
flex-wrap: wrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.aksel-link-card__icon {
|
|
79
|
+
grid-area: icon;
|
|
80
|
+
width: max-content;
|
|
81
|
+
height: max-content;
|
|
82
|
+
display: grid;
|
|
83
|
+
place-content: center;
|
|
84
|
+
color: var(--ax-text-default);
|
|
85
|
+
align-self: flex-start;
|
|
86
|
+
margin-inline-end: var(--ax-space-16);
|
|
87
|
+
|
|
88
|
+
.aksel-link-card--small & {
|
|
89
|
+
margin-inline-end: var(--ax-space-12);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.aksel-link-card__image-container {
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
grid-area: image;
|
|
96
|
+
margin-block: calc(var(--__axc-link-card-padding-block) * -1) var(--__axc-link-card-padding-block);
|
|
97
|
+
margin-inline: calc(var(--__axc-link-card-padding-inline) * 1 * -1);
|
|
98
|
+
border-radius: calc(var(--ax-border-radius-xlarge) - 1px);
|
|
99
|
+
border-bottom-left-radius: 0;
|
|
100
|
+
border-bottom-right-radius: 0;
|
|
101
|
+
position: relative;
|
|
102
|
+
|
|
103
|
+
& :is(img, picture) {
|
|
104
|
+
object-fit: cover;
|
|
105
|
+
display: block;
|
|
106
|
+
max-width: 100%;
|
|
107
|
+
height: 100%;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -2,10 +2,23 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
border-collapse: collapse;
|
|
4
4
|
display: table;
|
|
5
|
+
|
|
6
|
+
&.aksel-table--sticky-header {
|
|
7
|
+
border-collapse: separate;
|
|
8
|
+
border-spacing: 0;
|
|
9
|
+
}
|
|
5
10
|
}
|
|
6
11
|
|
|
7
12
|
.aksel-table__header {
|
|
8
13
|
display: table-header-group;
|
|
14
|
+
|
|
15
|
+
.aksel-table--sticky-header & {
|
|
16
|
+
position: sticky;
|
|
17
|
+
top: 0;
|
|
18
|
+
z-index: 10;
|
|
19
|
+
background-color: var(--ax-bg-default);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
9
22
|
}
|
|
10
23
|
|
|
11
24
|
.aksel-table__body {
|
package/dist/component/form.css
CHANGED
|
@@ -743,6 +743,7 @@ li.navds-file-item {
|
|
|
743
743
|
position: relative;
|
|
744
744
|
padding: 0.5rem;
|
|
745
745
|
padding-right: 2rem;
|
|
746
|
+
scroll-margin-block-start: 4rem;
|
|
746
747
|
}
|
|
747
748
|
@media (forced-colors: active) {
|
|
748
749
|
.navds-select__input.navds-select__input.navds-select__input {
|
|
@@ -852,6 +853,7 @@ li.navds-file-item {
|
|
|
852
853
|
}
|
|
853
854
|
.navds-switch--small > .navds-switch__input {
|
|
854
855
|
height: 2rem;
|
|
856
|
+
width: 2.5rem;
|
|
855
857
|
top: 0;
|
|
856
858
|
}
|
|
857
859
|
/* Label */
|
|
@@ -869,10 +871,10 @@ li.navds-file-item {
|
|
|
869
871
|
padding: 0.75rem 3.25rem 0.75rem 0;
|
|
870
872
|
}
|
|
871
873
|
.navds-switch--small > .navds-switch__label-wrapper > .navds-switch__content {
|
|
872
|
-
padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 0 calc(var(--a-spacing-2) - var(--a-spacing-05))
|
|
874
|
+
padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 0 calc(var(--a-spacing-2) - var(--a-spacing-05)) 2.75rem;
|
|
873
875
|
}
|
|
874
876
|
.navds-switch--right.navds-switch--small > .navds-switch__label-wrapper > .navds-switch__content {
|
|
875
|
-
padding: calc(var(--a-spacing-2) - var(--a-spacing-05))
|
|
877
|
+
padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 2.75rem calc(var(--a-spacing-2) - var(--a-spacing-05)) 0;
|
|
876
878
|
}
|
|
877
879
|
.navds-switch--with-description,
|
|
878
880
|
.navds-switch--small > .navds-switch__label-wrapper > .navds-switch--with-description {
|
|
@@ -900,7 +902,9 @@ li.navds-file-item {
|
|
|
900
902
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
901
903
|
}
|
|
902
904
|
.navds-switch--small > .navds-switch__track {
|
|
903
|
-
top: var(--a-spacing-1);
|
|
905
|
+
top: var(--a-spacing-1-alt);
|
|
906
|
+
width: 2.25rem;
|
|
907
|
+
height: 1.25rem;
|
|
904
908
|
}
|
|
905
909
|
.navds-switch--right > .navds-switch__input,
|
|
906
910
|
.navds-switch--right > .navds-switch__track {
|
|
@@ -955,6 +959,10 @@ li.navds-file-item {
|
|
|
955
959
|
align-items: center;
|
|
956
960
|
justify-content: center;
|
|
957
961
|
}
|
|
962
|
+
.navds-switch--small .navds-switch__thumb {
|
|
963
|
+
width: 0.875rem;
|
|
964
|
+
height: 0.875rem;
|
|
965
|
+
}
|
|
958
966
|
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
959
967
|
transform: translateX(1.25rem);
|
|
960
968
|
color: var(--ac-switch-thumb-icon-checked, var(--a-icon-action-selected));
|
|
@@ -964,11 +972,12 @@ li.navds-file-item {
|
|
|
964
972
|
left: 0;
|
|
965
973
|
top: 0;
|
|
966
974
|
}
|
|
967
|
-
.navds-switch__input:checked ~ .navds-switch__track .navds-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
975
|
+
.navds-switch--small > .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
976
|
+
transform: translateX(1rem);
|
|
977
|
+
width: 1rem;
|
|
978
|
+
height: 1rem;
|
|
979
|
+
left: 0;
|
|
980
|
+
top: 0;
|
|
972
981
|
}
|
|
973
982
|
@media (hover: hover) and (pointer: fine) {
|
|
974
983
|
.navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
@@ -978,6 +987,10 @@ li.navds-file-item {
|
|
|
978
987
|
.navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
979
988
|
transform: translateX(1.125rem);
|
|
980
989
|
}
|
|
990
|
+
|
|
991
|
+
.navds-switch--small > .navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
992
|
+
transform: translateX(0.875rem);
|
|
993
|
+
}
|
|
981
994
|
}
|
|
982
995
|
.navds-switch__input:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
983
996
|
transform: translateX(0);
|
|
@@ -985,6 +998,9 @@ li.navds-file-item {
|
|
|
985
998
|
.navds-switch__input:checked:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
986
999
|
transform: translateX(1.25rem);
|
|
987
1000
|
}
|
|
1001
|
+
.navds-switch--small > .navds-switch__input:checked:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
1002
|
+
transform: translateX(1rem);
|
|
1003
|
+
}
|
|
988
1004
|
/* Disabled */
|
|
989
1005
|
.navds-switch__input:disabled {
|
|
990
1006
|
appearance: none;
|
|
@@ -1085,6 +1101,7 @@ li.navds-file-item {
|
|
|
1085
1101
|
min-height: 3rem;
|
|
1086
1102
|
width: 100%;
|
|
1087
1103
|
color: var(--ac-textfield-text, var(--__ac-textfield-text, var(--a-text-default)));
|
|
1104
|
+
scroll-margin-block-start: 4rem;
|
|
1088
1105
|
}
|
|
1089
1106
|
.navds-text-field__input[size] {
|
|
1090
1107
|
width: auto;
|
|
@@ -1169,6 +1186,7 @@ li.navds-file-item {
|
|
|
1169
1186
|
width: 100%;
|
|
1170
1187
|
display: block;
|
|
1171
1188
|
color: var(--ac-textarea-text, var(--__ac-textarea-text, var(--a-text-default)));
|
|
1189
|
+
scroll-margin-block-start: 4rem;
|
|
1172
1190
|
}
|
|
1173
1191
|
.navds-textarea__input::placeholder {
|
|
1174
1192
|
color: var(--ac-textarea-placeholder, var(--__ac-textarea-placeholder, var(--a-text-subtle)));
|