@navikt/ds-css 0.14.2 → 0.15.3
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/dist/index.css +36 -15
- package/form/radio-checkbox.css +9 -2
- package/package.json +2 -2
- package/typography.css +24 -11
package/form/radio-checkbox.css
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
--navds-radio-checkbox-color-background: var(
|
|
3
3
|
--navds-semantic-color-component-background-light
|
|
4
4
|
);
|
|
5
|
+
--navds-radio-checkbox-color-text: var(--navds-semantic-color-text);
|
|
5
6
|
--navds-radio-checkbox-color-background-hover: var(
|
|
6
7
|
--navds-semantic-color-interaction-primary-hover-subtle
|
|
7
8
|
);
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
|
|
74
75
|
.navds-checkbox__description,
|
|
75
76
|
.navds-radio__description {
|
|
76
|
-
color: var(--navds-color-text
|
|
77
|
+
color: var(--navds-radio-checkbox-color-text);
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
.navds-checkbox--small > .navds-checkbox__input,
|
|
@@ -167,9 +168,15 @@
|
|
|
167
168
|
|
|
168
169
|
.navds-checkbox__input:hover:not(:disabled):not(:checked):not(:indeterminate):not(:focus)
|
|
169
170
|
+ .navds-checkbox__label::before,
|
|
170
|
-
.navds-radio__input:hover:not(:disabled):not(:checked):not(:
|
|
171
|
+
.navds-radio__input:hover:not(:disabled):not(:checked):not(:focus)
|
|
171
172
|
+ .navds-radio__label::before {
|
|
172
173
|
box-shadow: inset 0 0 0 2px var(--navds-radio-checkbox-color-shadow-hover);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.navds-checkbox__input:hover:not(:disabled):not(:checked):not(:indeterminate)
|
|
177
|
+
+ .navds-checkbox__label::before,
|
|
178
|
+
.navds-radio__input:hover:not(:disabled):not(:checked)
|
|
179
|
+
+ .navds-radio__label::before {
|
|
173
180
|
background-color: var(--navds-radio-checkbox-color-background-hover);
|
|
174
181
|
}
|
|
175
182
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Css for NAV Designsystem components",
|
|
6
6
|
"author": "NAV Designsystem team",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"postcss-cli": "^8.3.1",
|
|
28
28
|
"postcss-import": "^14.0.2"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "a9e58e7bb2a86ee0742f8633da9fc81788539580"
|
|
31
31
|
}
|
package/typography.css
CHANGED
|
@@ -4,34 +4,47 @@
|
|
|
4
4
|
margin: 0;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.navds-heading--
|
|
7
|
+
.navds-heading--xlarge {
|
|
8
8
|
font-size: var(--navds-font-size-heading-2xlarge);
|
|
9
9
|
letter-spacing: -0.01em;
|
|
10
10
|
line-height: var(--navds-font-line-height-heading-2xlarge);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.navds-heading--
|
|
13
|
+
.navds-heading--xlarge.navds-typo--spacing {
|
|
14
14
|
margin-bottom: var(--navds-spacing-5);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.navds-heading--
|
|
17
|
+
.navds-heading--large {
|
|
18
18
|
font-size: var(--navds-font-size-heading-xlarge);
|
|
19
19
|
letter-spacing: -0.008em;
|
|
20
20
|
line-height: var(--navds-font-line-height-heading-xlarge);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.navds-heading--
|
|
23
|
+
.navds-heading--large.navds-typo--spacing {
|
|
24
24
|
margin-bottom: var(--navds-spacing-4);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
/* Mobile scale */
|
|
28
|
+
@media (max-width: 480px) {
|
|
29
|
+
.navds-heading--xlarge {
|
|
30
|
+
font-size: var(--navds-font-size-heading-xlarge);
|
|
31
|
+
letter-spacing: -0.008em;
|
|
32
|
+
line-height: var(--navds-font-line-height-heading-xlarge);
|
|
33
|
+
}
|
|
32
34
|
|
|
33
|
-
.navds-heading--
|
|
34
|
-
|
|
35
|
+
.navds-heading--xlarge.navds-typo--spacing {
|
|
36
|
+
margin-bottom: var(--navds-spacing-4);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.navds-heading--large {
|
|
40
|
+
font-size: var(--navds-font-size-heading-large);
|
|
41
|
+
letter-spacing: -0.004em;
|
|
42
|
+
line-height: var(--navds-font-line-height-heading-large);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.navds-heading--large.navds-typo--spacing {
|
|
46
|
+
margin-bottom: var(--navds-spacing-3);
|
|
47
|
+
}
|
|
35
48
|
}
|
|
36
49
|
|
|
37
50
|
.navds-heading--medium {
|