@navikt/ds-css 7.1.0 → 7.1.1
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 +10 -0
- package/date.css +1 -0
- package/dist/component/date.css +1 -0
- package/dist/component/date.min.css +1 -1
- package/dist/component/form.css +26 -0
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +68 -53
- package/dist/component/index.min.css +2 -2
- package/dist/component/list.css +46 -56
- package/dist/component/list.min.css +1 -1
- package/dist/components.css +81 -56
- package/dist/components.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +68 -53
- package/dist/index.min.css +2 -2
- package/form/combobox.css +30 -0
- package/form/select.css +4 -0
- package/list.css +44 -56
- package/package.json +2 -2
package/form/combobox.css
CHANGED
|
@@ -20,6 +20,36 @@
|
|
|
20
20
|
--__ac-combobox-input-height: 1.5rem;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.navds-combobox--disabled {
|
|
24
|
+
opacity: 0.3;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.navds-combobox--disabled .navds-combobox__wrapper *:hover {
|
|
28
|
+
cursor: not-allowed;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.navds-combobox--disabled .navds-text-field__input {
|
|
32
|
+
border: 1px solid var(--a-border-default);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.navds-combobox--disabled .navds-combobox__selected-options {
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.navds-combobox--readonly {
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.navds-combobox--readonly .navds-combobox__button-toggle-list {
|
|
44
|
+
color: var(--a-gray-500);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.navds-combobox--readonly .navds-text-field__input,
|
|
48
|
+
.navds-combobox--readonly .navds-combobox__input {
|
|
49
|
+
background-color: var(--a-surface-subtle);
|
|
50
|
+
border-color: var(--a-border-subtle);
|
|
51
|
+
}
|
|
52
|
+
|
|
23
53
|
.navds-combobox__button-clear svg,
|
|
24
54
|
.navds-combobox__button-toggle-list svg,
|
|
25
55
|
.navds-combobox__list svg {
|
package/form/select.css
CHANGED
package/list.css
CHANGED
|
@@ -4,92 +4,80 @@
|
|
|
4
4
|
margin-block: var(--a-spacing-4);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.navds-list--nested ul,
|
|
8
|
-
.navds-list--nested ol {
|
|
9
|
-
margin-block: var(--a-spacing-2);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
7
|
.navds-list--small ul,
|
|
13
8
|
.navds-list--small ol {
|
|
14
9
|
margin-block: var(--a-spacing-3);
|
|
15
10
|
}
|
|
16
11
|
|
|
17
|
-
.navds-list
|
|
18
|
-
margin-block
|
|
12
|
+
.navds-list .navds-list :where(ul, ol) {
|
|
13
|
+
margin-block: var(--a-spacing-2) 0;
|
|
19
14
|
}
|
|
20
15
|
|
|
21
|
-
.navds-list
|
|
22
|
-
|
|
23
|
-
margin-bottom: 0;
|
|
16
|
+
.navds-list ol {
|
|
17
|
+
padding-left: 1.7rem;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
|
-
.navds-list
|
|
27
|
-
|
|
28
|
-
grid-template-columns: auto 1fr;
|
|
29
|
-
gap: var(--a-spacing-3);
|
|
30
|
-
padding-left: 0;
|
|
20
|
+
.navds-list ol > .navds-list__item {
|
|
21
|
+
padding-left: 0.3rem;
|
|
31
22
|
}
|
|
32
23
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
24
|
+
/* SAFARI HACK START */
|
|
25
|
+
/* stylelint-disable selector-type-no-unknown */
|
|
36
26
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
_::-webkit-full-page-media,
|
|
28
|
+
_:future,
|
|
29
|
+
:root .navds-list ol {
|
|
30
|
+
padding-left: 2.1rem;
|
|
40
31
|
}
|
|
41
32
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
grid-column: 1 / 2;
|
|
47
|
-
color: var(--ac-list-marker-ul-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
33
|
+
_::-webkit-full-page-media,
|
|
34
|
+
_:future,
|
|
35
|
+
:root .navds-list ol .navds-list__item {
|
|
36
|
+
padding-left: 0;
|
|
48
37
|
}
|
|
49
38
|
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
/* SAFARI HACK END */
|
|
40
|
+
/* stylelint-enable selector-type-no-unknown */
|
|
41
|
+
|
|
42
|
+
.navds-list__item {
|
|
43
|
+
margin-block-end: var(--a-spacing-2);
|
|
52
44
|
}
|
|
53
45
|
|
|
54
|
-
.navds-list__item-
|
|
55
|
-
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
height: var(--a-font-line-height-xlarge);
|
|
59
|
-
padding-block-end: 1px;
|
|
60
|
-
font-size: 1.5rem;
|
|
46
|
+
.navds-list__item:last-child {
|
|
47
|
+
margin-block-end: 0;
|
|
61
48
|
}
|
|
62
49
|
|
|
63
|
-
.navds-list
|
|
64
|
-
|
|
50
|
+
.navds-list ul > .navds-list__item {
|
|
51
|
+
display: grid;
|
|
52
|
+
grid-template-columns: auto 1fr;
|
|
53
|
+
gap: var(--a-spacing-2);
|
|
65
54
|
}
|
|
66
55
|
|
|
67
|
-
.navds-
|
|
68
|
-
|
|
56
|
+
.navds-list ol li::marker {
|
|
57
|
+
font-weight: var(--a-font-weight-bold);
|
|
58
|
+
color: var(--ac-list-marker-ol-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
69
59
|
}
|
|
70
60
|
|
|
71
|
-
.navds-
|
|
72
|
-
|
|
61
|
+
.navds-list__item-marker {
|
|
62
|
+
width: 1.5rem;
|
|
73
63
|
}
|
|
74
64
|
|
|
75
|
-
.navds-list
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
.navds-list ul > li > .navds-list__item-marker {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
height: var(--a-font-line-height-xlarge);
|
|
78
69
|
}
|
|
79
70
|
|
|
80
|
-
.navds-list
|
|
81
|
-
|
|
82
|
-
margin-left: var(--a-spacing-2);
|
|
71
|
+
.navds-list--small ul > li > .navds-list__item-marker {
|
|
72
|
+
height: var(--a-font-line-height-large);
|
|
83
73
|
}
|
|
84
74
|
|
|
85
|
-
.navds-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
color: var(--ac-list-marker-ol-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
89
|
-
line-height: var(--a-font-line-height-xlarge);
|
|
75
|
+
.navds-list__item-marker--bullet {
|
|
76
|
+
padding-left: 0.8rem;
|
|
77
|
+
color: var(--ac-list-marker-ul-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
90
78
|
}
|
|
91
79
|
|
|
92
|
-
.navds-
|
|
93
|
-
font-size:
|
|
94
|
-
|
|
80
|
+
.navds-list__item-marker--icon {
|
|
81
|
+
font-size: 1.5rem;
|
|
82
|
+
color: var(--ac-list-marker-icon-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
95
83
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "CSS for NAV Designsystem",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"css:get-version": "node config/get-version.js"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@navikt/ds-tokens": "^7.1.
|
|
30
|
+
"@navikt/ds-tokens": "^7.1.1",
|
|
31
31
|
"cssnano": "6.0.0",
|
|
32
32
|
"fast-glob": "3.2.11",
|
|
33
33
|
"lodash": "4.17.21",
|