@navikt/ds-css 7.5.0 → 7.5.2
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 +8 -0
- package/darkside/button.darkside.css +8 -6
- package/darkside/copybutton.darkside.css +1 -1
- package/darkside/expansioncard.darkside.css +123 -175
- package/darkside/form/error-summary.darkside.css +30 -36
- package/darkside/form/fieldset.darkside.css +2 -10
- package/darkside/form/file-upload.darkside.css +106 -110
- package/darkside/form/form-progress.darkside.css +30 -25
- package/darkside/form/form-summary.darkside.css +28 -24
- package/darkside/form/form.darkside.css +6 -14
- package/darkside/form/radio-checkbox.darkside.css +73 -142
- package/darkside/form/text-field.darkside.css +38 -81
- package/darkside/help-text.darkside.css +16 -40
- package/darkside/index.css +1 -1
- package/darkside/link.darkside.css +40 -56
- package/darkside/list.darkside.css +36 -35
- package/darkside/loader.darkside.css +72 -58
- package/darkside/modal.darkside.css +59 -54
- package/darkside/pagination.darkside.css +12 -44
- package/darkside/popover.darkside.css +12 -75
- package/darkside/progress-bar.darkside.css +12 -12
- package/dist/component/form.css +5 -1
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +8 -2
- package/dist/component/index.min.css +2 -2
- package/dist/component/loader.css +1 -0
- package/dist/component/loader.min.css +1 -1
- package/dist/components.css +8 -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 +8 -2
- package/dist/index.min.css +2 -2
- package/form/combobox.css +4 -0
- package/form/form-progress.css +2 -1
- package/loader.css +1 -0
- package/package.json +2 -2
|
@@ -1,79 +1,63 @@
|
|
|
1
1
|
.navds-link {
|
|
2
|
-
color: var(--
|
|
3
|
-
text-decoration: underline;
|
|
2
|
+
color: var(--ax-text-accent);
|
|
4
3
|
display: inline-flex;
|
|
5
4
|
align-items: center;
|
|
6
|
-
gap: var(--
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
display: inline;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.navds-link.navds-link--inline-text > svg {
|
|
14
|
-
/* stylelint-disable-next-line plugin/declaration-block-no-ignored-properties */
|
|
15
|
-
margin: 0.1em 0.1em -0.1em;
|
|
16
|
-
transform: translateY(0.05em);
|
|
17
|
-
display: inline;
|
|
18
|
-
vertical-align: baseline;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.navds-link:hover {
|
|
22
|
-
text-decoration: none;
|
|
23
|
-
}
|
|
5
|
+
gap: var(--ax-spacing-1);
|
|
6
|
+
text-decoration: underline;
|
|
7
|
+
text-underline-offset: 0.1em;
|
|
8
|
+
text-decoration-thickness: 0.05em;
|
|
24
9
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
&:hover,
|
|
11
|
+
&:active {
|
|
12
|
+
text-decoration-thickness: 0.111em;
|
|
13
|
+
}
|
|
28
14
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
&:focus-visible {
|
|
16
|
+
outline: 2px solid var(--ax-border-focus);
|
|
17
|
+
outline-offset: 2px;
|
|
18
|
+
}
|
|
32
19
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
color: var(--a-text-default);
|
|
36
|
-
}
|
|
20
|
+
&.navds-link--inline-text {
|
|
21
|
+
display: inline;
|
|
37
22
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
23
|
+
& > svg {
|
|
24
|
+
/* stylelint-disable-next-line plugin/declaration-block-no-ignored-properties */
|
|
25
|
+
margin: 0.1em 0.1em -0.1em;
|
|
26
|
+
transform: translateY(0.05em);
|
|
27
|
+
display: inline;
|
|
28
|
+
vertical-align: baseline;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
45
31
|
|
|
46
|
-
|
|
47
|
-
.navds-link:focus {
|
|
48
|
-
outline: 2px solid transparent;
|
|
49
|
-
color: var(--ac-link-focus-text, var(--a-text-on-action));
|
|
32
|
+
&.navds-link--remove-underline {
|
|
50
33
|
text-decoration: none;
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
text-decoration: underline;
|
|
37
|
+
}
|
|
53
38
|
}
|
|
54
|
-
}
|
|
55
39
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
background-color: var(--ac-link-active-bg, var(--a-border-focus));
|
|
61
|
-
box-shadow: 0 0 0 2px var(--ac-link-active-border, var(--a-border-focus));
|
|
40
|
+
& svg {
|
|
41
|
+
color: inherit;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
}
|
|
62
44
|
}
|
|
63
45
|
|
|
64
|
-
.navds-
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
.navds-alert,
|
|
47
|
+
.navds-confirmation-panel {
|
|
48
|
+
& .navds-link {
|
|
49
|
+
color: var(--ax-text-default);
|
|
50
|
+
}
|
|
67
51
|
}
|
|
68
52
|
|
|
69
53
|
.navds-link--action {
|
|
70
|
-
color: var(--
|
|
54
|
+
color: var(--ax-text-accent);
|
|
71
55
|
}
|
|
72
56
|
|
|
73
57
|
.navds-link--neutral {
|
|
74
|
-
color: var(--
|
|
58
|
+
color: var(--ax-text-default);
|
|
75
59
|
}
|
|
76
60
|
|
|
77
61
|
.navds-link--subtle {
|
|
78
|
-
color: var(--
|
|
62
|
+
color: var(--ax-text-subtle);
|
|
79
63
|
}
|
|
@@ -1,25 +1,45 @@
|
|
|
1
1
|
.navds-list ul,
|
|
2
2
|
.navds-list ol {
|
|
3
3
|
padding: 0;
|
|
4
|
-
margin-block: var(--
|
|
4
|
+
margin-block: var(--ax-spacing-4);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.navds-list--small ul,
|
|
8
8
|
.navds-list--small ol {
|
|
9
|
-
margin-block: var(--
|
|
9
|
+
margin-block: var(--ax-spacing-3);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.navds-list
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
.navds-list {
|
|
13
|
+
& .navds-list :where(ul, ol) {
|
|
14
|
+
margin-block: var(--ax-spacing-2) 0;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
& ol {
|
|
18
|
+
list-style: decimal; /* This is the default value, but some frameworks have `ol,ul { list-style:none }` */
|
|
19
|
+
padding-left: 1.7rem;
|
|
20
|
+
|
|
21
|
+
& > .navds-list__item {
|
|
22
|
+
padding-left: 0.3rem;
|
|
23
|
+
}
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
& li::marker {
|
|
26
|
+
font-weight: var(--ax-font-weight-bold);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& ul {
|
|
31
|
+
& > .navds-list__item {
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: auto 1fr;
|
|
34
|
+
gap: var(--ax-spacing-2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
& > li > .navds-list__item-marker {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
height: var(--ax-font-line-height-xlarge);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
23
43
|
}
|
|
24
44
|
|
|
25
45
|
/* SAFARI HACK START */
|
|
@@ -41,45 +61,26 @@ _:future,
|
|
|
41
61
|
/* stylelint-enable selector-type-no-unknown */
|
|
42
62
|
|
|
43
63
|
.navds-list__item {
|
|
44
|
-
margin-block-end: var(--
|
|
45
|
-
}
|
|
64
|
+
margin-block-end: var(--ax-spacing-2);
|
|
46
65
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.navds-list ul > .navds-list__item {
|
|
52
|
-
display: grid;
|
|
53
|
-
grid-template-columns: auto 1fr;
|
|
54
|
-
gap: var(--a-spacing-2);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.navds-list ol li::marker {
|
|
58
|
-
font-weight: var(--a-font-weight-bold);
|
|
59
|
-
color: var(--ac-list-marker-ol-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
66
|
+
&:last-child {
|
|
67
|
+
margin-block-end: 0;
|
|
68
|
+
}
|
|
60
69
|
}
|
|
61
70
|
|
|
62
71
|
.navds-list__item-marker {
|
|
63
72
|
width: 1.5rem;
|
|
64
73
|
}
|
|
65
74
|
|
|
66
|
-
.navds-list ul > li > .navds-list__item-marker {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
height: var(--a-font-line-height-xlarge);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
75
|
.navds-list--small ul > li > .navds-list__item-marker {
|
|
73
|
-
height: var(--
|
|
76
|
+
height: var(--ax-font-line-height-large);
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
.navds-list__item-marker--bullet {
|
|
77
80
|
padding-left: 0.8rem;
|
|
78
|
-
color: var(--ac-list-marker-ul-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
.navds-list__item-marker--icon {
|
|
82
84
|
font-size: 1.5rem;
|
|
83
85
|
justify-content: center;
|
|
84
|
-
color: var(--ac-list-marker-icon-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
85
86
|
}
|
|
@@ -5,88 +5,102 @@
|
|
|
5
5
|
animation: loader-rotate 1.8s linear infinite;
|
|
6
6
|
stroke-width: 6;
|
|
7
7
|
|
|
8
|
-
--
|
|
9
|
-
}
|
|
8
|
+
--__axc-loader-stroke-width: 5.9;
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
stroke-dashoffset: 0;
|
|
15
|
-
stroke: var(--ac-loader-stroke, var(--a-border-default));
|
|
16
|
-
}
|
|
10
|
+
&.navds-loader--3xlarge {
|
|
11
|
+
width: 5.5rem;
|
|
12
|
+
stroke-width: 5;
|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
stroke-width: var(--ac-loader-background-stroke-width);
|
|
21
|
-
}
|
|
14
|
+
--__axc-loader-stroke-width: 4.8;
|
|
15
|
+
}
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
&.navds-loader--2xlarge {
|
|
18
|
+
width: 4rem;
|
|
19
|
+
stroke-width: 6;
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
21
|
+
--__axc-loader-stroke-width: 5.8;
|
|
22
|
+
}
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
&.navds-loader--xlarge {
|
|
25
|
+
width: 2.5rem;
|
|
26
|
+
stroke-width: 6;
|
|
34
27
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
28
|
+
--__axc-loader-stroke-width: 5.8;
|
|
29
|
+
}
|
|
38
30
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
&.navds-loader--large {
|
|
32
|
+
width: 2rem;
|
|
33
|
+
stroke-width: 7;
|
|
42
34
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
stroke-width: 5;
|
|
35
|
+
--__axc-loader-stroke-width: 6.8;
|
|
36
|
+
}
|
|
46
37
|
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
&.navds-loader--medium {
|
|
39
|
+
width: 1.5rem;
|
|
40
|
+
stroke-width: 7;
|
|
49
41
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
stroke-width: 6;
|
|
42
|
+
--__axc-loader-stroke-width: 6.8;
|
|
43
|
+
}
|
|
53
44
|
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
&.navds-loader--small {
|
|
46
|
+
width: 1.25rem;
|
|
47
|
+
stroke-width: 8;
|
|
56
48
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
stroke-width: 6;
|
|
49
|
+
--__axc-loader-stroke-width: 7.8;
|
|
50
|
+
}
|
|
60
51
|
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
&.navds-loader--xsmall {
|
|
53
|
+
width: 1rem;
|
|
54
|
+
stroke-width: 8;
|
|
63
55
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
56
|
+
--__axc-loader-stroke-width: 7.8;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
67
59
|
|
|
68
|
-
|
|
60
|
+
.navds-loader__foreground {
|
|
61
|
+
animation: loader-dasharray 1.5s ease-in-out infinite;
|
|
62
|
+
stroke-dasharray: 80px, 200px;
|
|
63
|
+
stroke-dashoffset: 0;
|
|
64
|
+
stroke: var(--ax-border-strong);
|
|
65
|
+
stroke-linecap: round;
|
|
66
|
+
stroke-width: var(--__axc-loader-stroke-width);
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
.navds-
|
|
72
|
-
|
|
73
|
-
stroke-width:
|
|
69
|
+
.navds-loader__background {
|
|
70
|
+
stroke: var(--ax-border-neutral-subtleA);
|
|
71
|
+
stroke-width: var(--__axc-loader-stroke-width);
|
|
72
|
+
}
|
|
74
73
|
|
|
75
|
-
|
|
74
|
+
.navds-loader--neutral {
|
|
75
|
+
& .navds-loader__foreground {
|
|
76
|
+
stroke: var(--ax-border-strong);
|
|
77
|
+
}
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
.navds-loader--
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
.navds-loader--interaction {
|
|
81
|
+
& .navds-loader__foreground {
|
|
82
|
+
stroke: var(--ax-border-accent-strong);
|
|
83
|
+
}
|
|
81
84
|
|
|
82
|
-
|
|
85
|
+
& .navds-loader__background {
|
|
86
|
+
stroke: var(--ax-border-accent-subtleA);
|
|
87
|
+
}
|
|
83
88
|
}
|
|
84
89
|
|
|
85
|
-
.navds-loader--
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
.navds-loader--inverted {
|
|
91
|
+
& .navds-loader__foreground {
|
|
92
|
+
stroke: var(--ax-border-subtle);
|
|
93
|
+
}
|
|
88
94
|
|
|
89
|
-
|
|
95
|
+
& .navds-loader__background {
|
|
96
|
+
stroke: var(--ax-border-strong);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.navds-loader--transparent {
|
|
101
|
+
& .navds-loader__background {
|
|
102
|
+
stroke: transparent;
|
|
103
|
+
}
|
|
90
104
|
}
|
|
91
105
|
|
|
92
106
|
@keyframes loader-rotate {
|
|
@@ -3,23 +3,26 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.navds-modal {
|
|
6
|
-
--
|
|
7
|
-
|
|
8
|
-
background-color: var(--
|
|
9
|
-
border:
|
|
10
|
-
border-radius: var(--
|
|
11
|
-
box-shadow:
|
|
6
|
+
--__axc-modal-bg: var(--ax-bg-raised);
|
|
7
|
+
|
|
8
|
+
background-color: var(--__axc-modal-bg);
|
|
9
|
+
border: 1px solid var(--ax-border-subtleA);
|
|
10
|
+
border-radius: var(--ax-border-radius-xlarge);
|
|
11
|
+
box-shadow:
|
|
12
|
+
0 0 1px 0 rgb(0 0 0/ 0.08),
|
|
13
|
+
0 2px 5px 0 rgb(0 0 0/ 0.15),
|
|
14
|
+
0 10px 24px 0 rgb(0 0 0/ 0.18);
|
|
12
15
|
padding: 0;
|
|
13
16
|
position: fixed;
|
|
14
17
|
max-height: 100%;
|
|
15
18
|
max-width: 100%;
|
|
16
|
-
color: var(--
|
|
17
|
-
}
|
|
19
|
+
color: var(--ax-text-default);
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
&[open] {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
animation: akselModalFadeIn 0.35s cubic-bezier(0.15, 1, 0.3, 1);
|
|
25
|
+
}
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
.navds-modal--polyfilled {
|
|
@@ -32,14 +35,14 @@
|
|
|
32
35
|
width: fit-content;
|
|
33
36
|
height: fit-content;
|
|
34
37
|
margin: auto;
|
|
35
|
-
}
|
|
36
38
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
39
|
+
&:not([open]) {
|
|
40
|
+
display: none; /* from polyfill */
|
|
41
|
+
}
|
|
40
42
|
|
|
41
|
-
.navds-modal--polyfilled
|
|
42
|
-
|
|
43
|
+
& .navds-modal--polyfilled {
|
|
44
|
+
overflow: auto;
|
|
45
|
+
}
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
._dialog_overlay {
|
|
@@ -52,12 +55,24 @@
|
|
|
52
55
|
left: 0;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
|
-
.navds-modal--
|
|
56
|
-
width:
|
|
58
|
+
.navds-modal--medium {
|
|
59
|
+
width: 700px;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
.navds-modal--
|
|
60
|
-
width:
|
|
62
|
+
.navds-modal--small {
|
|
63
|
+
width: 450px;
|
|
64
|
+
|
|
65
|
+
& .navds-modal__header {
|
|
66
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-4) var(--ax-spacing-3) var(--ax-spacing-4);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .navds-modal__body {
|
|
70
|
+
padding: var(--ax-spacing-2) var(--ax-spacing-4) var(--ax-spacing-4);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
& .navds-modal__footer {
|
|
74
|
+
padding: var(--ax-spacing-4);
|
|
75
|
+
}
|
|
61
76
|
}
|
|
62
77
|
|
|
63
78
|
@media (min-width: 480px) {
|
|
@@ -83,16 +98,16 @@
|
|
|
83
98
|
|
|
84
99
|
.navds-modal::backdrop {
|
|
85
100
|
/*
|
|
86
|
-
* Cannot use --
|
|
87
|
-
*
|
|
88
|
-
*
|
|
101
|
+
* Cannot use --ax-bg-overlay because ::backdrop does not inherit from anything but itself.
|
|
102
|
+
* TODO: Consider adding `::backdrop` to global token definitions.
|
|
103
|
+
* TODO: Check that overlay-color is correct after the new colors is set in stone.
|
|
89
104
|
*/
|
|
90
|
-
background:
|
|
105
|
+
background: #0214317d;
|
|
91
106
|
animation: akselModalBackdropFadeIn 0.35s cubic-bezier(0.15, 1, 0.3, 1);
|
|
92
107
|
}
|
|
93
108
|
|
|
94
109
|
.navds-modal--polyfilled + .backdrop /* Cannot be combined with ::backdrop selector */ {
|
|
95
|
-
background:
|
|
110
|
+
background: #0214317d;
|
|
96
111
|
|
|
97
112
|
/* From polyfill: */
|
|
98
113
|
position: fixed;
|
|
@@ -104,37 +119,35 @@
|
|
|
104
119
|
}
|
|
105
120
|
|
|
106
121
|
.navds-modal__button {
|
|
107
|
-
margin-left: var(--
|
|
122
|
+
margin-left: var(--ax-spacing-4);
|
|
108
123
|
float: right;
|
|
109
124
|
}
|
|
110
125
|
|
|
111
126
|
.navds-modal__header {
|
|
112
|
-
padding: var(--
|
|
127
|
+
padding: var(--ax-spacing-6) var(--ax-spacing-6) var(--ax-spacing-4) var(--ax-spacing-6);
|
|
113
128
|
}
|
|
114
129
|
|
|
115
|
-
.navds-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
vertical-align: -0.25rem;
|
|
122
|
-
margin-right: var(--a-spacing-1);
|
|
130
|
+
.navds-modal__header-icon {
|
|
131
|
+
& svg {
|
|
132
|
+
display: inline;
|
|
133
|
+
vertical-align: -0.25rem;
|
|
134
|
+
margin-right: var(--ax-spacing-1);
|
|
135
|
+
}
|
|
123
136
|
}
|
|
124
137
|
|
|
125
138
|
.navds-modal__label {
|
|
126
|
-
font-weight:
|
|
127
|
-
color: var(--
|
|
139
|
+
font-weight: var(--ax-font-weight-bold);
|
|
140
|
+
color: var(--ax-text-subtle);
|
|
128
141
|
}
|
|
129
142
|
|
|
130
143
|
.navds-modal__body {
|
|
131
|
-
padding: var(--
|
|
144
|
+
padding: var(--ax-spacing-6);
|
|
132
145
|
overflow: auto;
|
|
133
146
|
overscroll-behavior: contain;
|
|
134
147
|
position: relative; /* Needed to make sr-only elements position correctly - see Storybook */
|
|
135
148
|
background:
|
|
136
|
-
linear-gradient(var(--
|
|
137
|
-
linear-gradient(transparent, var(--
|
|
149
|
+
linear-gradient(var(--__axc-modal-bg) 30%, transparent) top,
|
|
150
|
+
linear-gradient(transparent, var(--__axc-modal-bg) 60%) bottom,
|
|
138
151
|
radial-gradient(farthest-side at 50% 0, rgba(0 0 0 / 0.3), transparent) top,
|
|
139
152
|
radial-gradient(farthest-side at 50% 100%, rgba(0 0 0 / 0.3), transparent) bottom;
|
|
140
153
|
background-size:
|
|
@@ -146,23 +159,15 @@
|
|
|
146
159
|
background-repeat: no-repeat;
|
|
147
160
|
}
|
|
148
161
|
|
|
149
|
-
.navds-modal--small .navds-modal__body {
|
|
150
|
-
padding: var(--a-spacing-2) var(--a-spacing-4) var(--a-spacing-4);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
162
|
.navds-modal__header + .navds-modal__body {
|
|
154
|
-
padding-top: var(--
|
|
163
|
+
padding-top: var(--ax-spacing-0);
|
|
155
164
|
}
|
|
156
165
|
|
|
157
166
|
.navds-modal__footer {
|
|
158
167
|
display: flex;
|
|
159
168
|
flex-flow: row-reverse wrap;
|
|
160
|
-
gap: var(--
|
|
161
|
-
padding: var(--
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.navds-modal--small .navds-modal__footer {
|
|
165
|
-
padding: var(--a-spacing-4);
|
|
169
|
+
gap: var(--ax-spacing-4);
|
|
170
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-6) var(--ax-spacing-6) var(--ax-spacing-6);
|
|
166
171
|
}
|
|
167
172
|
|
|
168
173
|
.navds-modal__footer :nth-of-type(2) {
|
|
@@ -180,7 +185,7 @@
|
|
|
180
185
|
@keyframes akselModalFadeIn {
|
|
181
186
|
0% {
|
|
182
187
|
opacity: 0.0001; /* Safari will not set focus inside the modal when it opens if we set this to 0 */
|
|
183
|
-
transform: translate3d(0, calc(
|
|
188
|
+
transform: translate3d(0, calc(2% + 4px), 0);
|
|
184
189
|
}
|
|
185
190
|
|
|
186
191
|
50% {
|
|
@@ -7,65 +7,33 @@
|
|
|
7
7
|
padding: 0;
|
|
8
8
|
list-style: none;
|
|
9
9
|
display: flex;
|
|
10
|
-
gap: var(--
|
|
10
|
+
gap: var(--ax-spacing-3);
|
|
11
|
+
|
|
12
|
+
& li {
|
|
13
|
+
list-style: none;
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
.navds-pagination__ellipsis {
|
|
14
19
|
display: flex;
|
|
15
20
|
align-items: center;
|
|
16
21
|
justify-content: center;
|
|
17
|
-
width:
|
|
22
|
+
width: 3rem;
|
|
18
23
|
cursor: default;
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
.navds-pagination--small .navds-pagination__ellipsis {
|
|
22
|
-
width:
|
|
27
|
+
width: 2rem;
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
.navds-pagination--xsmall .navds-pagination__ellipsis {
|
|
26
|
-
width:
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.navds-pagination__item {
|
|
30
|
-
color: var(--ac-pagination-text, var(--a-text-default));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.navds-pagination--medium .navds-pagination__item {
|
|
34
|
-
border-radius: var(--a-border-radius-medium);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.navds-pagination__item[aria-current="true"] {
|
|
38
|
-
background-color: var(--ac-pagination-selected-bg, var(--a-surface-action-selected));
|
|
39
|
-
color: var(--ac-pagination-selected-text, var(--a-text-on-action));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.navds-pagination__item[aria-current="true"]:focus-visible {
|
|
43
|
-
box-shadow:
|
|
44
|
-
inset 0 0 0 1px var(--a-surface-default),
|
|
45
|
-
var(--a-shadow-focus);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@supports not selector(:focus-visible) {
|
|
49
|
-
.navds-pagination__item[aria-current="true"]:focus {
|
|
50
|
-
box-shadow:
|
|
51
|
-
inset 0 0 0 1px var(--a-surface-default),
|
|
52
|
-
var(--a-shadow-focus);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.navds-pagination__prev-next {
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
gap: var(--a-spacing-1);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.navds-pagination--small .navds-pagination__prev-next:where(.navds-pagination--prev-next--with-text) {
|
|
63
|
-
padding-inline: var(--a-spacing-1-alt);
|
|
31
|
+
width: 1.5rem;
|
|
64
32
|
}
|
|
65
33
|
|
|
66
|
-
.navds-
|
|
67
|
-
|
|
68
|
-
|
|
34
|
+
.navds-pagination__item[data-selected="true"] {
|
|
35
|
+
background-color: var(--ax-bg-neutral-strong-pressed);
|
|
36
|
+
color: var(--ax-text-neutral-contrast);
|
|
69
37
|
}
|
|
70
38
|
|
|
71
39
|
.navds-pagination--invisible {
|