@navikt/ds-css 1.3.2 → 1.3.4
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 +24 -10
- package/package.json +3 -3
- package/table.css +25 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "Css for NAV Designsystem components",
|
|
5
5
|
"author": "NAV Designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"watch": "postcss --watch --use postcss-import -o dist/index.css index.css"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@navikt/ds-tokens": "^1.3.
|
|
23
|
+
"@navikt/ds-tokens": "^1.3.4",
|
|
24
24
|
"normalize.css": "^8.0.1",
|
|
25
25
|
"postcss": "^8.3.6",
|
|
26
26
|
"postcss-cli": "^8.3.1",
|
|
27
27
|
"postcss-combine-duplicated-selectors": "10.0.3",
|
|
28
28
|
"postcss-import": "^14.0.2"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "f3929075e3f936f2a0dd6369f197af21814c3400"
|
|
31
31
|
}
|
package/table.css
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
display: table-row;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.navds-table__body .navds-table__row:hover {
|
|
36
|
+
.navds-table__body .navds-table__row--shade-on-hover:hover {
|
|
37
37
|
background-color: var(--navds-table-row-color-background-hover);
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -41,20 +41,21 @@
|
|
|
41
41
|
background-color: var(--navds-table-row-color-background-selected);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.navds-table__body
|
|
44
|
+
.navds-table__body
|
|
45
|
+
.navds-table__row--shade-on-hover.navds-table__row--selected:hover {
|
|
45
46
|
background-color: var(--navds-table-row-color-background-selected-hover);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.navds-table--zebra-stripes
|
|
49
50
|
.navds-table__body
|
|
50
|
-
.navds-table__row:nth-child(odd):not(
|
|
51
|
+
:where(.navds-table__row:nth-child(odd):not(.navds-table__row--selected)) {
|
|
51
52
|
background-color: var(--navds-table-row-color-background-zebra);
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
.navds-table--zebra-stripes
|
|
55
56
|
.navds-table__body
|
|
56
|
-
.navds-table__expandable-row:nth-child(4n
|
|
57
|
-
|
|
57
|
+
:where(.navds-table__expandable-row:nth-child(4n
|
|
58
|
+
+ 1):not(.navds-table__row--selected)) {
|
|
58
59
|
background-color: transparent;
|
|
59
60
|
}
|
|
60
61
|
|
|
@@ -87,11 +88,19 @@
|
|
|
87
88
|
text-align: center;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
.navds-table__body
|
|
91
|
-
.navds-
|
|
91
|
+
where(.navds-table__body
|
|
92
|
+
.navds-table__row--shade-on-hover:hover)
|
|
93
|
+
.navds-table__header-cell,
|
|
94
|
+
where(.navds-table__body
|
|
95
|
+
.navds-table__row--shade-on-hover:hover)
|
|
96
|
+
.navds-table__data-cell {
|
|
92
97
|
border-color: var(--navds-table-cell-color-border-hover);
|
|
93
98
|
}
|
|
94
99
|
|
|
100
|
+
where(.navds-table__expandable-row--open:hover) .navds-table__data-cell {
|
|
101
|
+
border-bottom-color: transparent;
|
|
102
|
+
}
|
|
103
|
+
|
|
95
104
|
.navds-table--small .navds-table__header-cell,
|
|
96
105
|
.navds-table--small .navds-table__data-cell {
|
|
97
106
|
padding: var(--navds-spacing-2) var(--navds-spacing-3);
|
|
@@ -160,8 +169,16 @@
|
|
|
160
169
|
flex-shrink: 0;
|
|
161
170
|
}
|
|
162
171
|
|
|
163
|
-
.navds-table__expandable-row
|
|
172
|
+
.navds-table__expandable-row:not(.navds-table__expandable-row--open)
|
|
173
|
+
.navds-table__data-cell {
|
|
174
|
+
transition: border-bottom-color 190ms cubic-bezier(0.6, 0.04, 0.98, 0.335);
|
|
175
|
+
}
|
|
176
|
+
|
|
164
177
|
.navds-table__expandable-row--open .navds-table__data-cell {
|
|
178
|
+
border-bottom-color: transparent;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.navds-table__expandable-row--open .navds-table__header-cell {
|
|
165
182
|
border-color: var(--navds-semantic-color-border-muted);
|
|
166
183
|
}
|
|
167
184
|
|