@navikt/ds-css 7.23.1 → 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 +24 -0
- package/config/_mappings.js +5 -0
- package/darkside/alert.darkside.css +2 -2
- package/darkside/chat.darkside.css +2 -2
- package/darkside/expansioncard.darkside.css +2 -2
- package/darkside/form/error-summary.darkside.css +2 -2
- package/darkside/form/file-upload.darkside.css +2 -2
- package/darkside/form/form-progress.darkside.css +1 -1
- package/darkside/form/form-summary.darkside.css +2 -2
- package/darkside/form/form.darkside.css +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/guide-panel.darkside.css +2 -2
- package/darkside/index.css +2 -0
- package/darkside/link-anchor.darkside.css +53 -0
- package/darkside/link-card.darkside.css +109 -0
- package/darkside/modal.darkside.css +6 -4
- package/darkside/popover.darkside.css +2 -2
- package/darkside/table.darkside.css +13 -0
- package/darkside/tag.darkside.css +0 -4
- package/dist/component/form.css +29 -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 +207 -9
- package/dist/components.min.css +1 -1
- package/dist/darkside/component/alert.css +2 -2
- package/dist/darkside/component/alert.min.css +1 -1
- package/dist/darkside/component/chat.css +2 -2
- package/dist/darkside/component/chat.min.css +1 -1
- package/dist/darkside/component/expansioncard.css +2 -2
- package/dist/darkside/component/expansioncard.min.css +1 -1
- package/dist/darkside/component/form.css +41 -19
- package/dist/darkside/component/form.min.css +1 -1
- package/dist/darkside/component/guidepanel.css +2 -2
- package/dist/darkside/component/guidepanel.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/modal.css +6 -8
- package/dist/darkside/component/modal.min.css +1 -1
- package/dist/darkside/component/popover.css +2 -2
- package/dist/darkside/component/popover.min.css +1 -1
- package/dist/darkside/component/table.css +13 -0
- package/dist/darkside/component/table.min.css +1 -1
- package/dist/darkside/component/tag.css +0 -6
- package/dist/darkside/component/tag.min.css +1 -1
- package/dist/darkside/components.css +228 -43
- 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 +229 -44
- package/dist/darkside/index.min.css +1 -1
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/alert.css +2 -2
- package/dist/darkside/version/7.24.0/component/alert.min.css +1 -0
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/chat.css +2 -2
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/chat.min.css +1 -1
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/expansioncard.css +2 -2
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/expansioncard.min.css +1 -1
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/form.css +41 -19
- package/dist/darkside/version/7.24.0/component/form.min.css +1 -0
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/guidepanel.css +2 -2
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/guidepanel.min.css +1 -1
- 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.1 → 7.24.0}/component/modal.css +6 -8
- package/dist/darkside/version/7.24.0/component/modal.min.css +1 -0
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/popover.css +2 -2
- package/dist/darkside/version/{7.23.1 → 7.24.0}/component/popover.min.css +1 -1
- package/dist/darkside/version/{7.23.1 → 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.1 → 7.24.0}/component/tag.css +0 -6
- package/dist/darkside/version/7.24.0/component/tag.min.css +1 -0
- package/dist/darkside/version/{7.23.1 → 7.24.0}/components.css +228 -43
- package/dist/darkside/version/7.24.0/components.min.css +1 -0
- package/dist/darkside/version/{7.23.1 → 7.24.0}/global/tokens.css +1 -1
- package/dist/darkside/version/{7.23.1 → 7.24.0}/global/tokens.min.css +1 -1
- package/dist/darkside/version/{7.23.1 → 7.24.0}/index.css +229 -44
- 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 +208 -10
- package/dist/index.min.css +2 -2
- package/form/form.css +4 -0
- 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.1/component/alert.min.css +0 -1
- package/dist/darkside/version/7.23.1/component/form.min.css +0 -1
- package/dist/darkside/version/7.23.1/component/modal.min.css +0 -1
- package/dist/darkside/version/7.23.1/component/table.min.css +0 -1
- package/dist/darkside/version/7.23.1/component/tag.min.css +0 -1
- package/dist/darkside/version/7.23.1/components.min.css +0 -1
- package/dist/darkside/version/7.23.1/index.min.css +0 -1
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/accordion.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/accordion.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/actionmenu.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/actionmenu.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/button.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/button.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/chips.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/chips.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/copybutton.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/copybutton.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/date.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/date.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/dropdown.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/dropdown.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/helptext.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/helptext.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/internalheader.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/internalheader.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/link.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/link.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/linkpanel.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/linkpanel.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/list.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/list.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/loader.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/loader.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/pagination.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/pagination.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/panel.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/panel.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/primitives.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/primitives.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/progressbar.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/progressbar.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/readmore.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/readmore.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/skeleton.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/skeleton.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/stepper.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/stepper.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/tabs.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/tabs.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/theme.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/theme.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/timeline.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/timeline.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/togglegroup.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/togglegroup.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/tooltip.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/tooltip.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/typography.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/component/typography.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/global/baseline.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/global/baseline.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/global/fonts.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/global/fonts.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/global/print.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/global/print.min.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/global/reset.css +0 -0
- /package/dist/darkside/version/{7.23.1 → 7.24.0}/global/reset.min.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
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
|
+
|
|
17
|
+
## 7.23.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Darkside: Outline Tag in high-contrast mode had wrong text-color. ([#3889](https://github.com/navikt/aksel/pull/3889))
|
|
22
|
+
|
|
23
|
+
- Darkside: Update padding for all 'panel' type components. ([#3864](https://github.com/navikt/aksel/pull/3864))
|
|
24
|
+
|
|
25
|
+
- Form components: Fix edge case where description container would take up space when empty ([#3866](https://github.com/navikt/aksel/pull/3866))
|
|
26
|
+
|
|
3
27
|
## 7.23.1
|
|
4
28
|
|
|
5
29
|
## 7.23.0
|
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",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.aksel-alert {
|
|
2
2
|
border-radius: var(--ax-radius-12);
|
|
3
3
|
border: 1px solid;
|
|
4
|
-
padding: var(--ax-space-20);
|
|
4
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
5
5
|
display: flex;
|
|
6
6
|
gap: var(--ax-space-12);
|
|
7
7
|
align-items: center;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.aksel-alert--small {
|
|
34
|
-
padding: var(--ax-space-16);
|
|
34
|
+
padding: var(--ax-space-12) var(--ax-space-16);
|
|
35
35
|
gap: var(--ax-space-8);
|
|
36
36
|
|
|
37
37
|
> .aksel-alert__icon {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.aksel-chat__bubble {
|
|
73
|
-
padding: var(--ax-space-20);
|
|
73
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
74
74
|
width: fit-content;
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: column;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.aksel-chat--small .aksel-chat__bubble {
|
|
83
|
-
padding: var(--ax-space-16);
|
|
83
|
+
padding: var(--ax-space-12) var(--ax-space-16);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/* ------------------------------ Chat top text ----------------------------- */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.aksel-expansioncard {
|
|
2
2
|
--__axc-expansioncard-border-radius: calc(var(--ax-radius-12) - 1px);
|
|
3
|
-
--__axc-expansioncard-padding-block: var(--ax-space-
|
|
3
|
+
--__axc-expansioncard-padding-block: var(--ax-space-16);
|
|
4
4
|
--__axc-expansioncard-padding-inline: var(--ax-space-20);
|
|
5
5
|
|
|
6
6
|
border-radius: var(--ax-radius-12);
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
/* ------------------------ ExpansionCard Small-size ------------------------ */
|
|
22
22
|
.aksel-expansioncard--small {
|
|
23
23
|
--__axc-expansioncard-padding-inline: var(--ax-space-16);
|
|
24
|
-
--__axc-expansioncard-padding-block: var(--ax-space-
|
|
24
|
+
--__axc-expansioncard-padding-block: var(--ax-space-12);
|
|
25
25
|
|
|
26
26
|
& > .aksel-expansioncard__header .aksel-expansioncard__title--small {
|
|
27
27
|
margin-top: var(--ax-space-2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.aksel-error-summary {
|
|
2
2
|
background-color: var(--ax-bg-default);
|
|
3
|
-
padding: var(--ax-space-20);
|
|
3
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
4
4
|
border: 4px solid var(--ax-border-danger);
|
|
5
5
|
border-radius: var(--ax-radius-12);
|
|
6
6
|
outline-offset: 3px;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.aksel-error-summary--small {
|
|
21
|
-
padding: var(--ax-space-16);
|
|
21
|
+
padding: var(--ax-space-12) var(--ax-space-16);
|
|
22
22
|
|
|
23
23
|
& .aksel-error-summary__heading {
|
|
24
24
|
scroll-margin-top: var(--ax-space-16);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
gap: var(--ax-space-16);
|
|
16
16
|
text-align: center;
|
|
17
|
-
padding: var(--ax-space-20);
|
|
17
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
18
18
|
border: 1px dashed var(--ax-border-neutral);
|
|
19
19
|
border-radius: var(--ax-radius-12);
|
|
20
20
|
background-color: var(--__axc-dropzone-background);
|
|
@@ -162,7 +162,7 @@ li.aksel-file-item {
|
|
|
162
162
|
outline-offset: -1px;
|
|
163
163
|
transition: outline-color 250ms cubic-bezier(0, 0.3, 0.15, 1);
|
|
164
164
|
border-radius: var(--ax-radius-12);
|
|
165
|
-
padding: var(--ax-space-20);
|
|
165
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
166
166
|
display: flex;
|
|
167
167
|
gap: var(--ax-space-12);
|
|
168
168
|
align-items: flex-start;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
.aksel-form-summary__header {
|
|
9
9
|
background: var(--ax-bg-neutral-moderateA);
|
|
10
|
-
padding: var(--ax-space-
|
|
10
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
11
11
|
display: flex;
|
|
12
12
|
justify-content: space-between;
|
|
13
13
|
gap: 0 var(--ax-space-12);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
@media (max-width: 479px) {
|
|
17
17
|
.aksel-form-summary__header {
|
|
18
|
-
padding: var(--ax-space-
|
|
18
|
+
padding: var(--ax-space-12) var(--ax-space-16);
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -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
|
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.aksel-guide-panel__content-inner {
|
|
74
|
-
padding: var(--ax-space-16);
|
|
74
|
+
padding: var(--ax-space-12) var(--ax-space-16);
|
|
75
75
|
border-radius: var(--ax-radius-12);
|
|
76
76
|
background-color: var(--ax-bg-raised);
|
|
77
77
|
position: relative;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
@media (min-width: 480px) {
|
|
85
85
|
& {
|
|
86
|
-
padding: var(--ax-space-20);
|
|
86
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.aksel-guide-panel[data-responsive="true"] & {
|
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
|
+
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
width: 450px;
|
|
62
62
|
|
|
63
63
|
& .aksel-modal__header {
|
|
64
|
-
padding: var(--ax-space-16);
|
|
64
|
+
padding: var(--ax-space-12) var(--ax-space-16);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
& .aksel-modal__body {
|
|
@@ -69,7 +69,8 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
& .aksel-modal__footer {
|
|
72
|
-
padding: var(--ax-space-16);
|
|
72
|
+
padding-block: var(--ax-space-12) var(--ax-space-16);
|
|
73
|
+
padding-inline: var(--ax-space-16);
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
.aksel-modal__header {
|
|
125
|
-
padding: var(--ax-space-20);
|
|
126
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
.aksel-modal__header-icon {
|
|
@@ -165,7 +166,8 @@
|
|
|
165
166
|
display: flex;
|
|
166
167
|
flex-flow: row-reverse wrap;
|
|
167
168
|
gap: var(--ax-space-16);
|
|
168
|
-
padding: var(--ax-space-20);
|
|
169
|
+
padding-block: var(--ax-space-16) var(--ax-space-20);
|
|
170
|
+
padding-inline: var(--ax-space-20);
|
|
169
171
|
}
|
|
170
172
|
|
|
171
173
|
.aksel-modal__footer :nth-of-type(2) {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.aksel-popover__content {
|
|
13
|
-
padding: var(--ax-space-16);
|
|
13
|
+
padding: var(--ax-space-12) var(--ax-space-16);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
@media (min-width: 480px) {
|
|
17
17
|
.aksel-popover__content {
|
|
18
|
-
padding: var(--ax-space-20);
|
|
18
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -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 {
|