@navikt/ds-css 7.6.0 → 7.8.0
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 +12 -0
- package/darkside/alert.darkside.css +2 -2
- package/darkside/button.darkside.css +12 -14
- package/darkside/chat.darkside.css +2 -2
- package/darkside/date.darkside.css +171 -232
- package/darkside/expansioncard.darkside.css +1 -0
- package/darkside/form/combobox.darkside.css +0 -21
- package/darkside/form/error-summary.darkside.css +2 -2
- package/darkside/form/file-upload.darkside.css +3 -4
- package/darkside/form/form-progress.darkside.css +1 -1
- package/darkside/form/form-summary.darkside.css +2 -2
- package/darkside/form/search.darkside.css +84 -158
- package/darkside/form/text-field.darkside.css +1 -1
- package/darkside/guide-panel.darkside.css +78 -60
- package/darkside/index.css +1 -4
- package/darkside/modal.darkside.css +6 -6
- package/darkside/popover.darkside.css +1 -1
- package/darkside/primitives/base.darkside.css +350 -350
- package/darkside/primitives/bleed.darkside.css +52 -52
- package/darkside/primitives/box.darkside.css +21 -21
- package/darkside/primitives/hgrid.darkside.css +28 -28
- package/darkside/primitives/index.css +0 -25
- package/darkside/primitives/page.darkside.css +6 -9
- package/darkside/primitives/stack.darkside.css +58 -58
- package/darkside/table.darkside.css +52 -97
- package/darkside/toggle-group.darkside.css +52 -120
- package/dist/component/form.css +2 -21
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +3 -23
- package/dist/component/index.min.css +2 -2
- package/dist/components.css +3 -982
- package/dist/components.min.css +2 -4
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +3 -23
- package/dist/index.min.css +2 -2
- package/form/combobox.css +2 -22
- package/package.json +2 -2
- package/tokens.json +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.navds-error-summary {
|
|
2
2
|
background-color: var(--ax-bg-default);
|
|
3
|
-
padding: var(--ax-spacing-5);
|
|
3
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
4
4
|
border: 4px solid var(--ax-border-danger);
|
|
5
5
|
border-radius: var(--ax-border-radius-xlarge);
|
|
6
6
|
outline-offset: 2px;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.navds-error-summary--small {
|
|
21
|
-
padding: var(--ax-spacing-3);
|
|
21
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
22
22
|
|
|
23
23
|
& .navds-error-summary__heading {
|
|
24
24
|
scroll-margin-top: var(--ax-spacing-4);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* --------------------------- FileUpload Dropzone -------------------------- */
|
|
2
2
|
.navds-dropzone__area {
|
|
3
3
|
--__axc-dropzone-background: var(--ax-bg-input);
|
|
4
|
-
--__axc-dropzone-padding: var(--ax-spacing-6);
|
|
5
4
|
--__axc-dropzone-icon-padding: var(--ax-spacing-2);
|
|
6
5
|
--__axc-dropzone-animation-length-long: 400ms;
|
|
7
6
|
--__axc-dropzone-animation-length-short: 250ms;
|
|
@@ -15,7 +14,7 @@
|
|
|
15
14
|
flex-direction: column;
|
|
16
15
|
gap: var(--ax-spacing-4);
|
|
17
16
|
text-align: center;
|
|
18
|
-
padding: var(--
|
|
17
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
19
18
|
border: 1px dashed var(--ax-border-default);
|
|
20
19
|
border-radius: var(--ax-border-radius-xlarge);
|
|
21
20
|
background-color: var(--__axc-dropzone-background);
|
|
@@ -95,7 +94,7 @@
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
.navds-dropzone__area-release {
|
|
98
|
-
top: var(--
|
|
97
|
+
top: var(--ax-spacing-4);
|
|
99
98
|
display: grid;
|
|
100
99
|
position: absolute;
|
|
101
100
|
z-index: 1;
|
|
@@ -159,7 +158,7 @@ li.navds-file-item {
|
|
|
159
158
|
outline-offset: -1px;
|
|
160
159
|
transition: outline-color 250ms cubic-bezier(0, 0.3, 0.15, 1);
|
|
161
160
|
border-radius: var(--ax-border-radius-xlarge);
|
|
162
|
-
padding: var(--ax-spacing-3);
|
|
161
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
163
162
|
display: flex;
|
|
164
163
|
gap: var(--ax-spacing-3);
|
|
165
164
|
align-items: flex-start;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
.navds-form-progress__stepper {
|
|
52
52
|
border: 1px solid var(--ax-border-subtle);
|
|
53
53
|
border-radius: var(--ax-border-radius-large);
|
|
54
|
-
padding: var(--ax-spacing-4);
|
|
54
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
55
55
|
margin-top: var(--ax-spacing-1);
|
|
56
56
|
background: var(--ax-bg-raised);
|
|
57
57
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.navds-form-summary__answers {
|
|
34
|
-
padding: var(--ax-spacing-
|
|
34
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
35
35
|
margin: 0;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
.navds-form-summary__value .navds-form-summary__answers {
|
|
74
74
|
margin-top: var(--ax-spacing-2);
|
|
75
|
-
padding: var(--ax-spacing-4);
|
|
75
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
76
76
|
background: var(--ax-bg-info-moderateA);
|
|
77
77
|
border-radius: var(--ax-border-radius-large);
|
|
78
78
|
border: 1px solid var(--ax-border-info-subtleA);
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
[data-theme="dark"] {
|
|
2
|
-
--__ac-search-button-border: var(--a-border-on-inverted);
|
|
3
|
-
--__ac-search-button-border-hover: var(--a-blue-200);
|
|
4
|
-
--__ac-search-clear-icon: var(--a-white);
|
|
5
|
-
--__ac-search-clear-icon-hover: var(--a-blue-200);
|
|
6
|
-
--__ac-search-error-border: var(--a-red-300);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
[data-theme="light"] {
|
|
10
|
-
--__ac-search-button-border: initial;
|
|
11
|
-
--__ac-search-button-border-hover: initial;
|
|
12
|
-
--__ac-search-clear-icon: initial;
|
|
13
|
-
--__ac-search-clear-icon-hover: initial;
|
|
14
|
-
--__ac-search-error-border: initial;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
1
|
.navds-search {
|
|
18
2
|
display: flex;
|
|
19
3
|
flex-direction: column;
|
|
@@ -25,204 +9,146 @@
|
|
|
25
9
|
width: 100%;
|
|
26
10
|
}
|
|
27
11
|
|
|
28
|
-
.navds-search--with-size
|
|
29
|
-
|
|
12
|
+
.navds-search--with-size {
|
|
13
|
+
& .navds-search__wrapper-inner {
|
|
14
|
+
width: inherit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
& .navds-search__wrapper {
|
|
18
|
+
width: fit-content;
|
|
19
|
+
}
|
|
30
20
|
}
|
|
31
21
|
|
|
32
22
|
.navds-search__wrapper {
|
|
33
23
|
display: inline-flex;
|
|
34
24
|
align-items: center;
|
|
25
|
+
border-radius: var(--ax-border-radius-medium);
|
|
26
|
+
|
|
27
|
+
/* We have to outline the whole container to include the Search-buttons */
|
|
28
|
+
&:has(.navds-search__input:focus-visible) {
|
|
29
|
+
outline: 2px solid var(--ax-border-focus);
|
|
30
|
+
outline-offset: 2px;
|
|
31
|
+
}
|
|
35
32
|
}
|
|
36
33
|
|
|
34
|
+
/* ------------------------------ Search input ------------------------------ */
|
|
37
35
|
.navds-search__input {
|
|
38
|
-
padding-right: var(--
|
|
39
|
-
|
|
36
|
+
padding-right: var(--ax-spacing-10);
|
|
37
|
+
|
|
38
|
+
&:focus-visible {
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
&.navds-search__input--primary,
|
|
43
|
+
&.navds-search__input--secondary {
|
|
44
|
+
border-top-right-radius: 0;
|
|
45
|
+
border-bottom-right-radius: 0;
|
|
46
|
+
border-right: none;
|
|
47
|
+
}
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
.navds-search__input--simple {
|
|
46
|
-
padding-left: var(--
|
|
51
|
+
padding-left: var(--ax-spacing-10);
|
|
47
52
|
}
|
|
48
53
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
/* ------------------------------ Search sizing ----------------------------- */
|
|
55
|
+
.navds-form-field--small {
|
|
56
|
+
& .navds-search__input {
|
|
57
|
+
padding-right: var(--ax-spacing-7);
|
|
58
|
+
}
|
|
52
59
|
|
|
53
|
-
.navds-search__input
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
& .navds-search__input--simple {
|
|
61
|
+
padding-left: var(--ax-spacing-7);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .navds-search__search-icon {
|
|
65
|
+
left: var(--ax-spacing-1);
|
|
66
|
+
font-size: 1.25rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .navds-search__button-clear {
|
|
70
|
+
right: var(--ax-spacing-1);
|
|
71
|
+
}
|
|
56
72
|
}
|
|
57
73
|
|
|
74
|
+
/* ------------------------------- Search icon ------------------------------ */
|
|
58
75
|
.navds-search__search-icon {
|
|
59
76
|
position: absolute;
|
|
60
|
-
left: var(--
|
|
77
|
+
left: var(--ax-spacing-2);
|
|
61
78
|
top: 50%;
|
|
62
79
|
transform: translateY(-50%);
|
|
63
80
|
pointer-events: none;
|
|
64
81
|
font-size: 1.5rem;
|
|
65
|
-
}
|
|
66
82
|
|
|
67
|
-
.navds-
|
|
68
|
-
|
|
69
|
-
|
|
83
|
+
.navds-search--disabled & {
|
|
84
|
+
opacity: 0.3;
|
|
85
|
+
}
|
|
70
86
|
}
|
|
71
87
|
|
|
88
|
+
/* --------------------------- Search Clear-button -------------------------- */
|
|
72
89
|
.navds-search__button-clear {
|
|
73
90
|
position: absolute;
|
|
74
|
-
right:
|
|
75
|
-
border-radius: var(--a-border-radius-medium);
|
|
76
|
-
color: var(--ac-search-clear-icon, var(--__ac-search-clear-icon, var(--a-text-default)));
|
|
77
|
-
height: 32px;
|
|
78
|
-
width: 32px;
|
|
91
|
+
right: var(--ax-spacing-2);
|
|
79
92
|
top: 50%;
|
|
80
93
|
transform: translateY(-50%);
|
|
81
|
-
display: flex;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
align-items: center;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
background: none;
|
|
86
|
-
border: none;
|
|
87
|
-
font-size: 1.25rem;
|
|
88
|
-
padding: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.navds-form-field--small .navds-search__button-clear {
|
|
92
|
-
right: 0.5rem;
|
|
93
|
-
height: 24px;
|
|
94
|
-
width: 24px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.navds-search__button-clear:hover {
|
|
98
|
-
color: var(--ac-search-clear-icon-hover, var(--__ac-search-clear-icon-hover, var(--a-text-action-hover)));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.navds-search__button-clear:focus-visible {
|
|
102
|
-
outline: 2px solid transparent;
|
|
103
|
-
box-shadow: var(--a-shadow-focus);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@supports not selector(:focus-visible) {
|
|
107
|
-
.navds-search__button-clear:focus {
|
|
108
|
-
outline: 2px solid transparent;
|
|
109
|
-
box-shadow: var(--a-shadow-focus);
|
|
110
|
-
}
|
|
111
94
|
}
|
|
112
95
|
|
|
96
|
+
/* ------------------------------ Search Button ----------------------------- */
|
|
113
97
|
.navds-search__button-search {
|
|
114
98
|
flex-shrink: 0;
|
|
115
|
-
min-width: 4rem;
|
|
116
|
-
min-height: 2rem;
|
|
117
99
|
border-radius: 0;
|
|
118
|
-
border-top-right-radius: var(--
|
|
119
|
-
border-bottom-right-radius: var(--
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.navds-form-field--small .navds-search__button-search svg {
|
|
123
|
-
font-size: 1rem;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.navds-form-field--small .navds-search__button-search {
|
|
127
|
-
min-width: 2.5rem;
|
|
100
|
+
border-top-right-radius: var(--ax-border-radius-medium);
|
|
101
|
+
border-bottom-right-radius: var(--ax-border-radius-medium);
|
|
128
102
|
}
|
|
129
103
|
|
|
130
104
|
.navds-search__button-search.navds-button--secondary {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
0 1px 0 0 var(--ac-search-button-border, var(--__ac-search-button-border, var(--a-border-default))) inset,
|
|
134
|
-
0 -1px 0 0 var(--ac-search-button-border, var(--__ac-search-button-border, var(--a-border-default))) inset;
|
|
135
|
-
}
|
|
105
|
+
--__axc-button-border-width: 1px;
|
|
106
|
+
--__axc-button-border-color: var(--ax-border-default);
|
|
136
107
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
-1px 0 0 0 var(--ac-search-button-border-hover, var(--__ac-search-button-border-hover, var(--a-border-action-hover))) inset,
|
|
140
|
-
0 1px 0 0 var(--ac-search-button-border-hover, var(--__ac-search-button-border-hover, var(--a-border-action-hover))) inset,
|
|
141
|
-
0 -1px 0 0 var(--ac-search-button-border-hover, var(--__ac-search-button-border-hover, var(--a-border-action-hover))) inset,
|
|
142
|
-
-1px 0 0 0 var(--ac-search-button-border-hover, var(--__ac-search-button-border-hover, var(--a-border-action-hover)));
|
|
143
|
-
z-index: 1;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.navds-search__wrapper-inner:focus-within + .navds-search__button-search.navds-button--secondary:hover {
|
|
147
|
-
z-index: auto;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.navds-search__button-search.navds-button--secondary:focus-visible {
|
|
151
|
-
box-shadow:
|
|
152
|
-
0 0 0 1px var(--ac-search-button-border, var(--__ac-search-button-border, var(--a-border-default))) inset,
|
|
153
|
-
var(--a-shadow-focus);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.navds-search__button-search.navds-button--secondary:focus-visible:hover {
|
|
157
|
-
box-shadow:
|
|
158
|
-
0 0 0 1px var(--ac-search-button-border-hover, var(--__ac-search-button-border-hover, var(--a-border-action-hover))) inset,
|
|
159
|
-
var(--a-shadow-focus);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.navds-search__button-search.navds-button--secondary:focus-visible:active {
|
|
163
|
-
box-shadow:
|
|
164
|
-
0 0 0 1px var(--ac-search-button-focus-active-border, var(--a-surface-default)) inset,
|
|
165
|
-
var(--a-shadow-focus);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
@supports not selector(:focus-visible) {
|
|
169
|
-
.navds-search__button-search.navds-button--secondary:focus {
|
|
170
|
-
box-shadow:
|
|
171
|
-
0 0 0 1px var(--ac-search-button-border, var(--__ac-search-button-border, var(--a-border-default))) inset,
|
|
172
|
-
var(--a-shadow-focus);
|
|
108
|
+
&:not(:hover, :active) {
|
|
109
|
+
background-color: var(--ax-bg-input);
|
|
173
110
|
}
|
|
174
111
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
0 0 0 1px var(--ac-search-button-border-hover, var(--__ac-search-button-border-hover, var(--a-border-action))) inset,
|
|
178
|
-
var(--a-shadow-focus);
|
|
112
|
+
&:hover:not(:disabled) {
|
|
113
|
+
--__axc-button-border-color: var(--ax-border-accent-strong);
|
|
179
114
|
}
|
|
180
115
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
0 0 0 1px var(--ac-search-button-focus-active-border, var(--a-surface-default)) inset,
|
|
184
|
-
var(--a-shadow-focus);
|
|
116
|
+
&:active:not(:disabled) {
|
|
117
|
+
--__axc-button-border-color: transparent;
|
|
185
118
|
}
|
|
186
119
|
}
|
|
187
120
|
|
|
188
|
-
/*
|
|
189
|
-
.navds-search--error .navds-
|
|
190
|
-
|
|
191
|
-
|
|
121
|
+
/* Special-case where we hover/focus input, and want the secondary-button to match input-border */
|
|
122
|
+
.navds-search:not(.navds-search--error, .navds-search--disabled)
|
|
123
|
+
.navds-search__wrapper:has(.navds-search__input:is(:hover, :focus-visible))
|
|
124
|
+
.navds-search__button-search.navds-button--secondary:not(:hover, :active) {
|
|
125
|
+
--__axc-button-border-color: var(--ax-border-accent-strong);
|
|
192
126
|
}
|
|
193
127
|
|
|
194
|
-
|
|
128
|
+
/* --------------------------- Search Error-state --------------------------- */
|
|
129
|
+
.navds-search--error .navds-search__input:not(:disabled) {
|
|
130
|
+
border-color: var(--ax-border-danger);
|
|
195
131
|
box-shadow:
|
|
196
|
-
inset 0 0 0
|
|
197
|
-
var(--
|
|
132
|
+
inset -2px 0 0 0 var(--ax-border-danger),
|
|
133
|
+
inset 0 0 0 1px var(--ax-border-danger);
|
|
134
|
+
|
|
135
|
+
&.navds-search__input--simple {
|
|
136
|
+
box-shadow: inset 0 0 0 1px var(--ax-border-danger);
|
|
137
|
+
}
|
|
198
138
|
}
|
|
199
139
|
|
|
200
|
-
/* Focus layering */
|
|
140
|
+
/* -------------------------- Search Focus layering ------------------------- */
|
|
201
141
|
.navds-search__input:focus-visible,
|
|
202
|
-
.navds-search__button-clear,
|
|
203
142
|
.navds-search__button-search:focus-visible {
|
|
204
143
|
z-index: 1;
|
|
205
144
|
}
|
|
206
145
|
|
|
207
|
-
|
|
208
|
-
.navds-search--error .navds-search__input:focus:not(:hover, :disabled) {
|
|
209
|
-
box-shadow:
|
|
210
|
-
inset 0 0 0 1px var(--ac-search-error-border, var(--__ac-search-error-border, var(--a-border-danger))),
|
|
211
|
-
var(--a-shadow-focus);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.navds-search__input:focus,
|
|
215
|
-
.navds-search__button-search:focus {
|
|
216
|
-
z-index: 1;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
@media (forced-colors: active) {
|
|
221
|
-
.navds-modal {
|
|
222
|
-
outline: 2px solid transparent;
|
|
223
|
-
}
|
|
146
|
+
/* -------------------------- Search disabled state ------------------------- */
|
|
224
147
|
|
|
225
|
-
|
|
226
|
-
|
|
148
|
+
/* We can't re-use disabled-state for form-fields since opacity multiplies on search-button */
|
|
149
|
+
.navds-search--disabled {
|
|
150
|
+
.navds-search__input {
|
|
151
|
+
opacity: 0.3;
|
|
152
|
+
cursor: not-allowed;
|
|
227
153
|
}
|
|
228
154
|
}
|
|
@@ -1,20 +1,41 @@
|
|
|
1
1
|
.navds-guide-panel {
|
|
2
|
-
--
|
|
2
|
+
--__axc-guide-panel-guide-size: 3.75rem;
|
|
3
3
|
|
|
4
4
|
position: relative;
|
|
5
|
-
|
|
5
|
+
display: flex;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
|
|
8
|
+
&[data-poster="true"],
|
|
9
|
+
&[data-responsive="true"] {
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[data-poster="false"] {
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 480px) {
|
|
20
|
+
& {
|
|
21
|
+
--__axc-guide-panel-guide-size: 5rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-responsive="true"] {
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
6
29
|
}
|
|
7
30
|
|
|
8
31
|
.navds-guide {
|
|
9
|
-
|
|
10
|
-
border: 2px solid var(--
|
|
11
|
-
border-radius: var(--
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
border: 2px solid var(--ax-border-info);
|
|
34
|
+
border-radius: var(--ax-border-radius-full);
|
|
12
35
|
overflow: hidden;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
left: 50%;
|
|
17
|
-
transform: translate(-50%, -50%);
|
|
36
|
+
width: var(--__axc-guide-panel-guide-size);
|
|
37
|
+
height: var(--__axc-guide-panel-guide-size);
|
|
38
|
+
flex-shrink: 0;
|
|
18
39
|
}
|
|
19
40
|
|
|
20
41
|
.navds-guide svg,
|
|
@@ -24,73 +45,70 @@
|
|
|
24
45
|
}
|
|
25
46
|
|
|
26
47
|
.navds-guide-panel__content {
|
|
27
|
-
background-color: var(--
|
|
28
|
-
border: 2px solid var(--
|
|
29
|
-
border-radius: var(--
|
|
30
|
-
|
|
31
|
-
padding-top: var(--a-spacing-12);
|
|
32
|
-
}
|
|
48
|
+
background-color: var(--ax-bg-raised);
|
|
49
|
+
border: 2px solid var(--ax-border-info);
|
|
50
|
+
border-radius: var(--ax-border-radius-xlarge);
|
|
51
|
+
position: relative;
|
|
33
52
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
--__ac-guide-panel-guide-size: 6.25rem;
|
|
53
|
+
.navds-guide-panel:is([data-poster="true"], [data-responsive="true"]) > & {
|
|
54
|
+
margin-top: var(--ax-spacing-5);
|
|
37
55
|
}
|
|
38
56
|
|
|
39
|
-
.navds-guide-
|
|
40
|
-
|
|
41
|
-
padding-top: 4.25rem;
|
|
57
|
+
.navds-guide-panel[data-poster="false"] > & {
|
|
58
|
+
margin-left: var(--ax-spacing-5);
|
|
42
59
|
}
|
|
43
|
-
}
|
|
44
60
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.navds-guide-panel--not-poster .navds-guide {
|
|
53
|
-
left: 0;
|
|
54
|
-
top: var(--a-spacing-5);
|
|
55
|
-
transform: none;
|
|
61
|
+
@media (min-width: 480px) {
|
|
62
|
+
.navds-guide-panel[data-responsive="true"] > & {
|
|
63
|
+
margin-top: 0;
|
|
64
|
+
margin-left: var(--ax-spacing-5);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
56
67
|
}
|
|
57
68
|
|
|
58
|
-
.navds-guide-
|
|
59
|
-
padding: var(--
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
.navds-guide-panel__content-inner {
|
|
70
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
71
|
+
border-radius: var(--ax-border-radius-xlarge);
|
|
72
|
+
background-color: var(--ax-bg-raised);
|
|
73
|
+
position: relative;
|
|
74
|
+
height: 100%;
|
|
63
75
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
--__ac-guide-panel-guide-size: 5rem;
|
|
76
|
+
.navds-guide-panel[data-poster="false"] & {
|
|
77
|
+
min-height: var(--__axc-guide-panel-guide-size);
|
|
67
78
|
}
|
|
68
79
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
80
|
+
@media (min-width: 480px) {
|
|
81
|
+
& {
|
|
82
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.navds-guide-panel[data-responsive="true"] & {
|
|
86
|
+
min-height: var(--__axc-guide-panel-guide-size);
|
|
87
|
+
}
|
|
72
88
|
}
|
|
73
89
|
}
|
|
74
90
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.navds-guide-panel--responsive-poster {
|
|
79
|
-
--__ac-guide-panel-guide-size: 5rem;
|
|
91
|
+
.navds-guide-panel__tail {
|
|
92
|
+
position: absolute;
|
|
93
|
+
z-index: 0;
|
|
80
94
|
|
|
81
|
-
|
|
82
|
-
|
|
95
|
+
.navds-guide-panel:is([data-poster="true"], [data-responsive="true"]) & {
|
|
96
|
+
left: 50%;
|
|
97
|
+
top: calc(var(--ax-spacing-4) * -1 - 2px);
|
|
98
|
+
transform: translateX(-48%);
|
|
83
99
|
}
|
|
84
100
|
|
|
85
|
-
.navds-guide-panel
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
transform:
|
|
101
|
+
.navds-guide-panel[data-poster="false"] & {
|
|
102
|
+
top: calc(var(--__axc-guide-panel-guide-size) / 2);
|
|
103
|
+
left: calc(var(--ax-spacing-5) * -1 - 2px);
|
|
104
|
+
transform: translateY(-48%) rotateZ(-90deg) scaleX(-1);
|
|
89
105
|
}
|
|
90
106
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
107
|
+
@media (min-width: 480px) {
|
|
108
|
+
.navds-guide-panel[data-responsive="true"] & {
|
|
109
|
+
top: calc(var(--__axc-guide-panel-guide-size) / 2);
|
|
110
|
+
left: calc(var(--ax-spacing-5) * -1 - 2px);
|
|
111
|
+
transform: translateY(-48%) rotateZ(-90deg) scaleX(-1);
|
|
112
|
+
}
|
|
95
113
|
}
|
|
96
114
|
}
|
package/darkside/index.css
CHANGED
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
@import "@navikt/ds-tokens/dist/darkside/tokens.css" layer(aksel.theme);
|
|
14
14
|
@import "./baseline/theme.darkside.css" layer(aksel.theme);
|
|
15
15
|
|
|
16
|
-
/* TODO: Remove this reference after stack is updated with darkside support */
|
|
17
|
-
@import "../primitives/stack.css" layer(aksel.components);
|
|
18
|
-
|
|
19
16
|
/* ------------------------------- Components ------------------------------- */
|
|
20
17
|
@import "./button.darkside.css" layer(aksel.components);
|
|
21
18
|
@import "./chips.darkside.css" layer(aksel.components);
|
|
@@ -31,6 +28,7 @@
|
|
|
31
28
|
@import "./alert.darkside.css" layer(aksel.components);
|
|
32
29
|
@import "./chat.darkside.css" layer(aksel.components);
|
|
33
30
|
@import "./copybutton.darkside.css" layer(aksel.components);
|
|
31
|
+
@import "./date.darkside.css" layer(aksel.components);
|
|
34
32
|
@import "./dropdown.darkside.css" layer(aksel.components);
|
|
35
33
|
@import "./action-menu.darkside.css" layer(aksel.components);
|
|
36
34
|
@import "./expansioncard.darkside.css" layer(aksel.components);
|
|
@@ -42,7 +40,6 @@
|
|
|
42
40
|
@import "./modal.darkside.css" layer(aksel.components);
|
|
43
41
|
@import "./pagination.darkside.css" layer(aksel.components);
|
|
44
42
|
@import "./popover.darkside.css" layer(aksel.components);
|
|
45
|
-
@import "./date.darkside.css" layer(aksel.components);
|
|
46
43
|
@import "./tag.darkside.css" layer(aksel.components);
|
|
47
44
|
@import "./timeline.darkside.css" layer(aksel.components);
|
|
48
45
|
@import "./tooltip.darkside.css" layer(aksel.components);
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
width: 450px;
|
|
61
61
|
|
|
62
62
|
& .navds-modal__header {
|
|
63
|
-
padding: var(--ax-spacing-
|
|
63
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
& .navds-modal__body {
|
|
67
|
-
padding: var(--ax-spacing-
|
|
67
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
& .navds-modal__footer {
|
|
71
|
-
padding: var(--ax-spacing-4);
|
|
71
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.navds-modal__header {
|
|
124
|
-
padding: var(--ax-spacing-
|
|
124
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.navds-modal__header-icon {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
.navds-modal__body {
|
|
141
|
-
padding: var(--ax-spacing-
|
|
141
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
142
142
|
overflow: auto;
|
|
143
143
|
overscroll-behavior: contain;
|
|
144
144
|
position: relative; /* Needed to make sr-only elements position correctly - see Storybook */
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
display: flex;
|
|
165
165
|
flex-flow: row-reverse wrap;
|
|
166
166
|
gap: var(--ax-spacing-4);
|
|
167
|
-
padding: var(--ax-spacing-4) var(--ax-spacing-
|
|
167
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.navds-modal__footer :nth-of-type(2) {
|