@navikt/ds-css 8.0.0 → 8.1.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 +12 -0
- package/dist/component/accordion.css +17 -6
- package/dist/component/accordion.min.css +1 -1
- package/dist/component/actionmenu.css +10 -2
- package/dist/component/alert.css +15 -6
- package/dist/component/alert.min.css +1 -1
- package/dist/component/button.css +30 -1
- package/dist/component/button.min.css +1 -1
- package/dist/component/chat.css +19 -3
- package/dist/component/chat.min.css +1 -1
- package/dist/component/date.css +62 -11
- package/dist/component/date.min.css +1 -1
- package/dist/component/dialog.css +61 -16
- package/dist/component/dialog.min.css +1 -1
- package/dist/component/dropdown.css +2 -1
- package/dist/component/dropdown.min.css +1 -1
- package/dist/component/expansioncard.css +32 -6
- package/dist/component/expansioncard.min.css +1 -1
- package/dist/component/form.css +202 -37
- package/dist/component/form.min.css +1 -1
- package/dist/component/guidepanel.css +17 -1
- package/dist/component/guidepanel.min.css +1 -1
- package/dist/component/helptext.css +5 -1
- package/dist/component/helptext.min.css +1 -1
- package/dist/component/internalheader.css +10 -1
- package/dist/component/internalheader.min.css +1 -1
- package/dist/component/link.css +5 -1
- package/dist/component/linkanchor.css +14 -2
- package/dist/component/linkanchor.min.css +1 -1
- package/dist/component/linkcard.css +56 -9
- package/dist/component/linkcard.min.css +1 -1
- package/dist/component/list.css +3 -3
- package/dist/component/list.min.css +1 -1
- package/dist/component/modal.css +20 -4
- package/dist/component/modal.min.css +1 -1
- package/dist/component/primitives.css +17 -5
- package/dist/component/primitives.min.css +1 -1
- package/dist/component/process.css +56 -12
- package/dist/component/process.min.css +1 -1
- package/dist/component/readmore.css +15 -2
- package/dist/component/readmore.min.css +1 -1
- package/dist/component/skeleton.css +1 -0
- package/dist/component/skeleton.min.css +1 -1
- package/dist/component/stepper.css +30 -6
- package/dist/component/stepper.min.css +1 -1
- package/dist/component/table.css +27 -6
- package/dist/component/table.min.css +1 -1
- package/dist/component/tabs.css +3 -3
- package/dist/component/tabs.min.css +1 -1
- package/dist/component/tag.css +12 -1
- package/dist/component/tag.min.css +1 -1
- package/dist/component/timeline.css +16 -4
- package/dist/component/timeline.min.css +1 -1
- package/dist/component/togglegroup.css +1 -0
- package/dist/component/togglegroup.min.css +1 -1
- package/dist/component/typography.css +0 -1
- package/dist/component/typography.min.css +1 -1
- package/dist/components.css +758 -151
- package/dist/components.min.css +1 -1
- package/dist/global/baseline.css +0 -2
- package/dist/global/baseline.min.css +1 -1
- package/dist/global/print.css +3 -3
- package/dist/global/print.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +762 -157
- package/dist/index.min.css +1 -1
- package/package.json +2 -2
- package/src/baseline/baseline.css +0 -2
- package/src/baseline/fonts.css +24 -16
- package/src/baseline/print.css +3 -3
- package/src/dialog.css +2 -2
- package/src/form/file-upload.css +0 -4
- package/src/form/select.css +4 -8
- package/src/guide-panel.css +1 -3
- package/src/link-anchor.css +4 -0
- package/src/modal.css +4 -4
- package/src/table.css +0 -4
- package/src/tooltip.css +2 -6
- package/src/typography.css +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "CSS for Nav Designsystem",
|
|
5
5
|
"author": "Aksel | Nav designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"css:get-version": "node config/get-version.js"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@navikt/ds-tokens": "^8.
|
|
33
|
+
"@navikt/ds-tokens": "^8.1.0",
|
|
34
34
|
"browserslist": "^4.25.0",
|
|
35
35
|
"esbuild": "^0.25.11",
|
|
36
36
|
"fast-glob": "3.2.11",
|
|
@@ -49,7 +49,6 @@ body,
|
|
|
49
49
|
.sr-only,
|
|
50
50
|
.aksel-sr-only {
|
|
51
51
|
border: 0;
|
|
52
|
-
clip: rect(0, 0, 0, 0);
|
|
53
52
|
clip-path: inset(50%);
|
|
54
53
|
height: 1px;
|
|
55
54
|
margin: -1px;
|
|
@@ -72,7 +71,6 @@ body,
|
|
|
72
71
|
.sr-only.focusable:focus,
|
|
73
72
|
.aksel-sr-only.focusable:active,
|
|
74
73
|
.aksel-sr-only.focusable:focus {
|
|
75
|
-
clip: auto;
|
|
76
74
|
clip-path: none;
|
|
77
75
|
height: auto;
|
|
78
76
|
margin: 0;
|
package/src/baseline/fonts.css
CHANGED
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
font-weight: 400 650;
|
|
26
26
|
font-display: swap;
|
|
27
27
|
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic-latin_ext.woff2) format("woff2");
|
|
28
|
-
unicode-range:
|
|
29
|
-
U+
|
|
28
|
+
unicode-range:
|
|
29
|
+
U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
|
|
30
|
+
U+A720-A7FF;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
/* latin */
|
|
@@ -36,8 +37,9 @@
|
|
|
36
37
|
font-weight: 400 650;
|
|
37
38
|
font-display: swap;
|
|
38
39
|
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic.woff2) format("woff2");
|
|
39
|
-
unicode-range:
|
|
40
|
-
U+
|
|
40
|
+
unicode-range:
|
|
41
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
|
|
42
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
/* cyrillic-ext */
|
|
@@ -67,8 +69,9 @@
|
|
|
67
69
|
font-weight: 400 650;
|
|
68
70
|
font-display: swap;
|
|
69
71
|
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal-latin_ext.woff2) format("woff2");
|
|
70
|
-
unicode-range:
|
|
71
|
-
U+
|
|
72
|
+
unicode-range:
|
|
73
|
+
U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
|
|
74
|
+
U+A720-A7FF;
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
/* latin */
|
|
@@ -78,8 +81,9 @@
|
|
|
78
81
|
font-weight: 400 650;
|
|
79
82
|
font-display: swap;
|
|
80
83
|
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2) format("woff2");
|
|
81
|
-
unicode-range:
|
|
82
|
-
U+
|
|
84
|
+
unicode-range:
|
|
85
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
|
|
86
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
/* Legacy support */
|
|
@@ -91,8 +95,9 @@
|
|
|
91
95
|
font-weight: 400 650;
|
|
92
96
|
font-display: swap;
|
|
93
97
|
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic-latin_ext.woff2) format("woff2");
|
|
94
|
-
unicode-range:
|
|
95
|
-
U+
|
|
98
|
+
unicode-range:
|
|
99
|
+
U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
|
|
100
|
+
U+A720-A7FF;
|
|
96
101
|
}
|
|
97
102
|
|
|
98
103
|
/* latin */
|
|
@@ -102,8 +107,9 @@
|
|
|
102
107
|
font-weight: 400 650;
|
|
103
108
|
font-display: swap;
|
|
104
109
|
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-italic.woff2) format("woff2");
|
|
105
|
-
unicode-range:
|
|
106
|
-
U+
|
|
110
|
+
unicode-range:
|
|
111
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
|
|
112
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
107
113
|
}
|
|
108
114
|
|
|
109
115
|
/* latin-ext */
|
|
@@ -113,8 +119,9 @@
|
|
|
113
119
|
font-weight: 400 650;
|
|
114
120
|
font-display: swap;
|
|
115
121
|
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal-latin_ext.woff2) format("woff2");
|
|
116
|
-
unicode-range:
|
|
117
|
-
U+
|
|
122
|
+
unicode-range:
|
|
123
|
+
U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
|
|
124
|
+
U+A720-A7FF;
|
|
118
125
|
}
|
|
119
126
|
|
|
120
127
|
/* latin */
|
|
@@ -124,6 +131,7 @@
|
|
|
124
131
|
font-weight: 400 650;
|
|
125
132
|
font-display: swap;
|
|
126
133
|
src: url(https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2) format("woff2");
|
|
127
|
-
unicode-range:
|
|
128
|
-
U+
|
|
134
|
+
unicode-range:
|
|
135
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
|
|
136
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
129
137
|
}
|
package/src/baseline/print.css
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
pre,
|
|
46
46
|
blockquote {
|
|
47
47
|
border: 1px solid #999;
|
|
48
|
-
|
|
48
|
+
break-inside: avoid;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/*
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
tr,
|
|
60
60
|
img {
|
|
61
|
-
|
|
61
|
+
break-inside: avoid;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
p,
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
|
|
71
71
|
h2,
|
|
72
72
|
h3 {
|
|
73
|
-
|
|
73
|
+
break-after: avoid;
|
|
74
74
|
}
|
|
75
75
|
}
|
package/src/dialog.css
CHANGED
|
@@ -227,8 +227,8 @@
|
|
|
227
227
|
background:
|
|
228
228
|
linear-gradient(var(--ax-bg-raised) 30%, transparent) top,
|
|
229
229
|
linear-gradient(transparent, var(--ax-bg-raised) 60%) bottom,
|
|
230
|
-
radial-gradient(farthest-side at 50% 0,
|
|
231
|
-
radial-gradient(farthest-side at 50% 100%,
|
|
230
|
+
radial-gradient(farthest-side at 50% 0, rgb(0 0 0 / 0.3), transparent) top,
|
|
231
|
+
radial-gradient(farthest-side at 50% 100%, rgb(0 0 0 / 0.3), transparent) bottom;
|
|
232
232
|
background-size:
|
|
233
233
|
100% 40px,
|
|
234
234
|
100% 50px,
|
package/src/form/file-upload.css
CHANGED
package/src/form/select.css
CHANGED
|
@@ -25,11 +25,9 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@media (forced-colors: active) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
color: ButtonText;
|
|
32
|
-
}
|
|
28
|
+
background-color: ButtonFace;
|
|
29
|
+
border-color: ButtonText;
|
|
30
|
+
color: ButtonText;
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
|
|
@@ -50,9 +48,7 @@
|
|
|
50
48
|
color: var(--ax-text-neutral);
|
|
51
49
|
|
|
52
50
|
@media (forced-colors: active) {
|
|
53
|
-
|
|
54
|
-
color: ButtonText;
|
|
55
|
-
}
|
|
51
|
+
color: ButtonText;
|
|
56
52
|
}
|
|
57
53
|
}
|
|
58
54
|
|
package/src/guide-panel.css
CHANGED
|
@@ -82,9 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
@media (min-width: 480px) {
|
|
85
|
-
|
|
86
|
-
padding: var(--ax-space-16) var(--ax-space-20);
|
|
87
|
-
}
|
|
85
|
+
padding: var(--ax-space-16) var(--ax-space-20);
|
|
88
86
|
|
|
89
87
|
.aksel-guide-panel[data-responsive="true"] & {
|
|
90
88
|
min-height: var(--__axc-guide-panel-guide-size);
|
package/src/link-anchor.css
CHANGED
package/src/modal.css
CHANGED
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
* Cannot use --ax-bg-overlay because ::backdrop does not inherit from anything but itself.
|
|
97
97
|
* TODO: Consider adding `::backdrop` to global token definitions.
|
|
98
98
|
*/
|
|
99
|
-
background:
|
|
99
|
+
background: rgb(12 22 39 / 0.659);
|
|
100
100
|
animation: akselModalBackdropFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.aksel-modal--polyfilled + .backdrop /* Cannot be combined with ::backdrop selector */ {
|
|
104
|
-
background:
|
|
104
|
+
background: rgb(12 22 39 / 0.659);
|
|
105
105
|
|
|
106
106
|
/* From polyfill: */
|
|
107
107
|
position: fixed;
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
background:
|
|
143
143
|
linear-gradient(var(--__axc-modal-bg) 30%, transparent) top,
|
|
144
144
|
linear-gradient(transparent, var(--__axc-modal-bg) 60%) bottom,
|
|
145
|
-
radial-gradient(farthest-side at 50% 0,
|
|
146
|
-
radial-gradient(farthest-side at 50% 100%,
|
|
145
|
+
radial-gradient(farthest-side at 50% 0, rgb(0 0 0 / 0.3), transparent) top,
|
|
146
|
+
radial-gradient(farthest-side at 50% 100%, rgb(0 0 0 / 0.3), transparent) bottom;
|
|
147
147
|
background-size:
|
|
148
148
|
100% 40px,
|
|
149
149
|
100% 50px,
|
package/src/table.css
CHANGED
|
@@ -250,11 +250,7 @@
|
|
|
250
250
|
.aksel-table__toggle-expand-cell:hover > .aksel-table__toggle-expand-button,
|
|
251
251
|
.aksel-table__expandable-row--clickable:hover .aksel-table__toggle-expand-button {
|
|
252
252
|
background-color: var(--ax-bg-neutral-moderate-hoverA);
|
|
253
|
-
}
|
|
254
253
|
|
|
255
|
-
& .aksel-table__toggle-expand-button:hover,
|
|
256
|
-
& .aksel-table__toggle-expand-cell:hover > .aksel-table__toggle-expand-button,
|
|
257
|
-
& .aksel-table__expandable-row--clickable:hover .aksel-table__toggle-expand-button {
|
|
258
254
|
.aksel-table__row--selected & {
|
|
259
255
|
background-color: var(--ax-bg-moderate-hoverA);
|
|
260
256
|
}
|
package/src/tooltip.css
CHANGED
|
@@ -28,9 +28,7 @@
|
|
|
28
28
|
transform: rotate(45deg);
|
|
29
29
|
|
|
30
30
|
@media (forced-colors: active) {
|
|
31
|
-
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
31
|
+
display: none;
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
34
|
|
|
@@ -119,8 +117,6 @@
|
|
|
119
117
|
background: var(--ax-bg-neutral-moderate);
|
|
120
118
|
|
|
121
119
|
@media (forced-colors: active) {
|
|
122
|
-
|
|
123
|
-
outline: 1px solid;
|
|
124
|
-
}
|
|
120
|
+
outline: 1px solid;
|
|
125
121
|
}
|
|
126
122
|
}
|