@navikt/ds-css 0.16.10 → 0.16.13

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/index.css CHANGED
@@ -17,6 +17,7 @@
17
17
  @import "pagination.css";
18
18
  @import "popover.css";
19
19
  @import "tag.css";
20
+ @import "tooltip.css";
20
21
  @import "toggle-group.css";
21
22
  @import "panel.css";
22
23
  @import "link-panel.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-css",
3
- "version": "0.16.10",
3
+ "version": "0.16.13",
4
4
  "private": false,
5
5
  "description": "Css for NAV Designsystem components",
6
6
  "author": "NAV Designsystem team",
@@ -21,11 +21,11 @@
21
21
  "watch": "postcss --watch --use postcss-import -o dist/index.css index.css"
22
22
  },
23
23
  "devDependencies": {
24
- "@navikt/ds-tokens": "^0.8.4",
24
+ "@navikt/ds-tokens": "^0.8.5",
25
25
  "normalize.css": "^8.0.1",
26
26
  "postcss": "^8.3.6",
27
27
  "postcss-cli": "^8.3.1",
28
28
  "postcss-import": "^14.0.2"
29
29
  },
30
- "gitHead": "f62b9a6f7b6a172b72080548f51c15a6c814d0fd"
30
+ "gitHead": "fcbd614a3444afa7fd07c0c133cc754206e5f106"
31
31
  }
package/table.css CHANGED
@@ -141,3 +141,80 @@
141
141
  font-size: 1rem;
142
142
  flex-shrink: 0;
143
143
  }
144
+
145
+ .navds-table__expandable-row--open .navds-table__header-cell,
146
+ .navds-table__expandable-row--open .navds-table__data-cell {
147
+ border-color: var(--navds-semantic-color-border-muted);
148
+ }
149
+
150
+ .navds-table__expandable-row--open .navds-table__toggle-expand-cell--open {
151
+ border-color: transparent;
152
+ }
153
+
154
+ .navds-table__toggle-expand-cell {
155
+ padding: 0;
156
+ width: 56px;
157
+ }
158
+
159
+ .navds-table--small .navds-table__toggle-expand-cell {
160
+ padding: 0;
161
+ width: 36px;
162
+ }
163
+
164
+ .navds-table__toggle-expand-button {
165
+ all: unset;
166
+ display: flex;
167
+ align-items: center;
168
+ cursor: pointer;
169
+ padding: var(--navds-spacing-4);
170
+ }
171
+
172
+ .navds-table--small .navds-table__toggle-expand-button {
173
+ padding: var(--navds-spacing-2);
174
+ }
175
+
176
+ .navds-table__toggle-expand-button:focus {
177
+ box-shadow: inset var(--navds-shadow-focus);
178
+ }
179
+
180
+ .navds-table__expandable-icon {
181
+ font-size: 1.5rem;
182
+ }
183
+
184
+ .navds-table--small .navds-table__expandable-icon {
185
+ font-size: 1.25rem;
186
+ }
187
+
188
+ .navds-table__toggle-expand-button:hover .navds-table__expandable-icon,
189
+ .navds-table__expandable-icon--filled {
190
+ display: none;
191
+ }
192
+
193
+ .navds-table__toggle-expand-button:hover .navds-table__expandable-icon--filled {
194
+ display: block;
195
+ }
196
+
197
+ .navds-table__toggle-expand-cell--open .navds-table__expandable-icon {
198
+ transform: rotate(180deg);
199
+ }
200
+
201
+ .navds-table__expanded-row-cell {
202
+ padding: 0;
203
+ }
204
+
205
+ .navds-table__expanded-row-cell:empty {
206
+ display: none;
207
+ }
208
+
209
+ .navds-table__expanded-row-collapse {
210
+ transition: height 250ms cubic-bezier(0.4, 0, 0.2, 1);
211
+ border-bottom: 1px solid var(--navds-table-cell-color-border);
212
+ }
213
+
214
+ .navds-table__expanded-row-content {
215
+ padding: var(--navds-spacing-4) 4.25rem;
216
+ }
217
+
218
+ .navds-table--small .navds-table__expanded-row-content {
219
+ padding: var(--navds-spacing-2) var(--navds-spacing-12);
220
+ }
package/tabs.css CHANGED
@@ -24,6 +24,7 @@
24
24
  display: flex;
25
25
  justify-content: center;
26
26
  align-items: center;
27
+ cursor: pointer;
27
28
  }
28
29
 
29
30
  .navds-tabs__scroll-button--hidden {
package/tooltip.css ADDED
@@ -0,0 +1,56 @@
1
+ @keyframes tooltipFadeIn {
2
+ 0% {
3
+ opacity: 0;
4
+ }
5
+ 100% {
6
+ opacity: 1;
7
+ }
8
+ }
9
+
10
+ .navds-tooltip {
11
+ z-index: var(--navds-z-index-tooltip);
12
+ }
13
+
14
+ .navds-tooltip__inner {
15
+ background-color: var(--navds-semantic-color-component-background-inverted);
16
+ color: var(--navds-semantic-color-text-inverted);
17
+ border-radius: var(--navds-border-radius-small);
18
+ padding: 0 var(--navds-spacing-2);
19
+ align-items: center;
20
+ filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05))
21
+ drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
22
+ display: flex;
23
+ flex-direction: column;
24
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
25
+ animation-duration: 0.2s;
26
+ animation-name: tooltipFadeIn;
27
+ text-align: center;
28
+ }
29
+
30
+ .navds-tooltip__arrow {
31
+ height: 7px;
32
+ width: 7px;
33
+ transform: rotate(45deg);
34
+ z-index: -1;
35
+ background-color: var(--navds-semantic-color-component-background-inverted);
36
+ position: absolute;
37
+ }
38
+
39
+ .navds-tooltip__keys {
40
+ padding-bottom: var(--navds-spacing-1);
41
+ display: flex;
42
+ gap: var(--navds-spacing-1);
43
+ }
44
+
45
+ .navds-tooltip__key {
46
+ font-family: var(--navds-font-family);
47
+ background-color: var(--navds-global-color-gray-700);
48
+ color: var(--navds-semantic-color-text-inverted);
49
+ border-radius: var(--navds-border-radius-small);
50
+ padding: 0 var(--navds-spacing-1);
51
+ min-width: 18px;
52
+ height: 18px;
53
+ display: inline-flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ }