@navikt/ds-css 0.15.10 → 0.15.11
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/button.css +7 -1
- package/dist/index.css +61 -6
- package/package.json +2 -2
- package/table.css +64 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.11",
|
|
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": "6f5fee96288a9d7302a595d9d5a09102387c39c2"
|
|
31
31
|
}
|
package/table.css
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.navds-table {
|
|
19
|
-
border-collapse: collapse;
|
|
20
19
|
width: 100%;
|
|
20
|
+
border-collapse: collapse;
|
|
21
21
|
display: table;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -54,11 +54,21 @@
|
|
|
54
54
|
.navds-table__header-cell,
|
|
55
55
|
.navds-table__data-cell {
|
|
56
56
|
display: table-cell;
|
|
57
|
-
padding: var(--navds-spacing-4);
|
|
57
|
+
padding: var(--navds-spacing-4) var(--navds-spacing-3);
|
|
58
58
|
border-bottom: 1px solid var(--navds-table-cell-color-border);
|
|
59
59
|
text-align: left;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
.navds-table__header-cell--align-right,
|
|
63
|
+
.navds-table__data-cell--align-right {
|
|
64
|
+
text-align: right;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.navds-table__header-cell--align-center,
|
|
68
|
+
.navds-table__data-cell--align-center {
|
|
69
|
+
text-align: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
62
72
|
.navds-table__body .navds-table__row:hover .navds-table__header-cell,
|
|
63
73
|
.navds-table__body .navds-table__row:hover .navds-table__data-cell {
|
|
64
74
|
border-color: var(--navds-table-cell-color-border-hover);
|
|
@@ -66,7 +76,7 @@
|
|
|
66
76
|
|
|
67
77
|
.navds-table--small .navds-table__header-cell,
|
|
68
78
|
.navds-table--small .navds-table__data-cell {
|
|
69
|
-
padding: var(--navds-spacing-2);
|
|
79
|
+
padding: var(--navds-spacing-2) var(--navds-spacing-3);
|
|
70
80
|
}
|
|
71
81
|
|
|
72
82
|
.navds-table .navds-checkbox .navds-checkbox__input {
|
|
@@ -80,3 +90,54 @@
|
|
|
80
90
|
.navds-table .navds-checkbox .navds-checkbox__label {
|
|
81
91
|
padding: 0;
|
|
82
92
|
}
|
|
93
|
+
|
|
94
|
+
.navds-table__header-cell[aria-sort] {
|
|
95
|
+
padding: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.navds-table__sort-button {
|
|
99
|
+
appearance: none;
|
|
100
|
+
background: none;
|
|
101
|
+
color: var(--navds-semantic-color-link);
|
|
102
|
+
border: none;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
margin: 0;
|
|
105
|
+
padding: var(--navds-spacing-4) var(--navds-spacing-3);
|
|
106
|
+
width: 100%;
|
|
107
|
+
display: flex;
|
|
108
|
+
gap: 0.5rem;
|
|
109
|
+
align-items: center;
|
|
110
|
+
line-height: inherit;
|
|
111
|
+
font-weight: inherit;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.navds-table--small .navds-table__sort-button {
|
|
115
|
+
padding: var(--navds-spacing-2) var(--navds-spacing-3);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.navds-table__sort-button:hover {
|
|
119
|
+
background-color: var(--navds-semantic-color-canvas-background);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.navds-table__sort-button:focus {
|
|
123
|
+
outline: none;
|
|
124
|
+
box-shadow: inset 0 0 0 2px var(--navds-semantic-color-focus);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.navds-table__header-cell[aria-sort="ascending"] .navds-table__sort-button,
|
|
128
|
+
.navds-table__header-cell[aria-sort="descending"] .navds-table__sort-button {
|
|
129
|
+
background-color: var(--navds-global-color-blue-50);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.navds-table__header-cell--align-right .navds-table__sort-button {
|
|
133
|
+
justify-content: end;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.navds-table__header-cell--align-center .navds-table__sort-button {
|
|
137
|
+
justify-content: center;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.navds-table__sort-button svg {
|
|
141
|
+
font-size: 1rem;
|
|
142
|
+
flex-shrink: 0;
|
|
143
|
+
}
|