@helsenorge/designsystem-react 10.6.0 → 10.6.2
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 +852 -1402
- package/components/AnchorLink/styles.module.scss +9 -8
- package/components/Avatar/styles.module.scss +9 -9
- package/components/Badge/styles.module.scss +9 -9
- package/components/Button/styles.module.scss +59 -65
- package/components/Checkbox/styles.module.scss +103 -103
- package/components/Chip/styles.module.scss +22 -22
- package/components/Close/styles.module.scss +4 -4
- package/components/DictionaryTrigger/styles.module.scss +5 -5
- package/components/Drawer/styles.module.scss +16 -16
- package/components/Dropdown/styles.module.scss +51 -51
- package/components/Duolist/styles.module.scss +4 -5
- package/components/EmptyState/styles.module.scss +12 -12
- package/components/Expander/styles.module.scss +46 -46
- package/components/ExpanderHierarchy/expander.module.scss +29 -29
- package/components/ExpanderHierarchy/styles.module.scss +5 -4
- package/components/ExpanderList/styles.module.scss +30 -30
- package/components/EyebrowHeader/styles.module.scss +2 -0
- package/components/FormGroup/styles.module.scss +9 -9
- package/components/FormLayout/styles.module.scss +5 -4
- package/components/HelpBubble/styles.module.scss +13 -13
- package/components/HelpPanel/styles.module.scss +2 -2
- package/components/HelpQuestion/styles.module.scss +19 -19
- package/components/HighlightPanel/styles.module.scss +20 -20
- package/components/HorizontalScroll/styles.module.scss +3 -4
- package/components/Input/styles.module.scss +12 -12
- package/components/Label/styles.module.scss +15 -15
- package/components/LinkList/styles.module.scss +33 -33
- package/components/ListHeader/styles.module.scss +8 -8
- package/components/Loader/styles.module.scss +14 -14
- package/components/MaxCharacters/styles.module.scss +11 -11
- package/components/Modal/styles.module.scss +34 -34
- package/components/NotificationPanel/styles.module.scss +33 -33
- package/components/Panel/styles.module.scss +45 -45
- package/components/PanelList/styles.module.scss +5 -5
- package/components/PopMenu/styles.module.scss +15 -15
- package/components/PopOver/styles.module.scss +14 -13
- package/components/PopOver/styles.module.scss.d.ts +3 -0
- package/components/Progressbar/styles.module.scss +4 -4
- package/components/PromoPanel/styles.module.scss +22 -22
- package/components/RadioButton/styles.module.scss +99 -99
- package/components/Select/styles.module.scss +21 -21
- package/components/ServiceMessage/styles.module.scss +49 -49
- package/components/SharingStatus/styles.module.scss +13 -13
- package/components/Slider/styles.module.scss +24 -24
- package/components/Spacer/styles.module.scss +14 -14
- package/components/StatusDot/styles.module.scss +22 -22
- package/components/Step/styles.module.scss +3 -3
- package/components/StepButtons/styles.module.scss +9 -9
- package/components/Stepper/styles.module.scss +15 -23
- package/components/StickyNote/styles.module.scss +3 -3
- package/components/Table/styles.module.scss +32 -32
- package/components/Tabs/TabList/styles.module.scss +1 -1
- package/components/Tabs/TabPanel/styles.module.scss +5 -5
- package/components/Tabs/styles.module.scss +1 -1
- package/components/Tag/styles.module.scss +16 -16
- package/components/TagList/styles.module.scss +4 -4
- package/components/Textarea/styles.module.scss +9 -9
- package/components/Tile/styles.module.scss +25 -25
- package/components/Title/styles.module.scss +8 -8
- package/components/Toggle/styles.module.scss +14 -14
- package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
- package/components/Trigger/styles.module.scss +21 -21
- package/components/Validation/styles.module.scss +10 -10
- package/package.json +1 -1
- package/scss/_body.scss +6 -5
- package/scss/_breakpoints.scss +2 -2
- package/scss/_font-mixins.scss +2 -2
- package/scss/_fonts.scss +2 -0
- package/scss/_input.scss +50 -53
- package/scss/_print.scss +2 -2
- package/scss/layout.module.scss +2 -2
- package/scss/typography.module.scss +43 -44
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
2
|
+
@import '../../scss/palette';
|
|
3
|
+
@import '../../scss/spacers';
|
|
4
|
+
@import '../../scss/breakpoints';
|
|
5
5
|
|
|
6
6
|
$colors: 'neutral', 'blueberry', 'cherry';
|
|
7
7
|
|
|
@@ -11,14 +11,14 @@ $colors: 'neutral', 'blueberry', 'cherry';
|
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
border-radius: 8px;
|
|
14
|
-
padding-left:
|
|
15
|
-
padding-right:
|
|
14
|
+
padding-left: getSpacer(s);
|
|
15
|
+
padding-right: getSpacer(2xs);
|
|
16
16
|
transition: background-color 0.15s ease-in-out;
|
|
17
17
|
|
|
18
18
|
&:focus-within {
|
|
19
19
|
box-shadow:
|
|
20
|
-
0 0 0 2px
|
|
21
|
-
inset 0 0 0 2px
|
|
20
|
+
0 0 0 2px $black,
|
|
21
|
+
inset 0 0 0 2px $black;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@media (min-width: map.get($grid-breakpoints, xs)) {
|
|
@@ -26,27 +26,27 @@ $colors: 'neutral', 'blueberry', 'cherry';
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
29
|
-
padding-right:
|
|
29
|
+
padding-right: getSpacer(s);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
33
|
-
padding-right:
|
|
33
|
+
padding-right: getSpacer(l);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&--no-illustration {
|
|
37
|
-
padding-left:
|
|
37
|
+
padding-left: getSpacer(s);
|
|
38
38
|
|
|
39
39
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
40
|
-
padding-left:
|
|
40
|
+
padding-left: getSpacer(l);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
@each $color in $colors {
|
|
45
45
|
&--#{$color} {
|
|
46
|
-
background-color: map.get(palette
|
|
46
|
+
background-color: map.get($palette-map, #{$color}50);
|
|
47
47
|
|
|
48
48
|
&:hover {
|
|
49
|
-
background-color: map.get(palette
|
|
49
|
+
background-color: map.get($palette-map, #{$color}100);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -63,14 +63,14 @@ $colors: 'neutral', 'blueberry', 'cherry';
|
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
65
65
|
flex-grow: 1;
|
|
66
|
-
gap:
|
|
67
|
-
padding-top:
|
|
68
|
-
padding-bottom:
|
|
66
|
+
gap: getSpacer(3xs);
|
|
67
|
+
padding-top: getSpacer(m);
|
|
68
|
+
padding-bottom: getSpacer(m);
|
|
69
69
|
|
|
70
70
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
71
|
-
gap:
|
|
72
|
-
padding-top:
|
|
73
|
-
padding-bottom:
|
|
71
|
+
gap: getSpacer(2xs);
|
|
72
|
+
padding-top: getSpacer(l);
|
|
73
|
+
padding-bottom: getSpacer(l);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
a,
|
|
@@ -87,14 +87,14 @@ $colors: 'neutral', 'blueberry', 'cherry';
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&__icon {
|
|
90
|
-
margin-left:
|
|
90
|
+
margin-left: getSpacer(xs);
|
|
91
91
|
|
|
92
92
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
93
|
-
margin-left:
|
|
93
|
+
margin-left: getSpacer(s);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
97
|
-
margin-left:
|
|
97
|
+
margin-left: getSpacer(l);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:meta';
|
|
3
3
|
@use 'sass:string';
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
4
|
+
@import '../../scss/spacers';
|
|
5
|
+
@import '../../scss/breakpoints';
|
|
6
|
+
@import '../../scss/palette';
|
|
7
|
+
@import '../../scss/font-settings';
|
|
8
8
|
|
|
9
9
|
@mixin dashed-border() {
|
|
10
10
|
box-shadow: none;
|
|
11
11
|
|
|
12
|
-
$encoded-color: string.slice(meta.inspect(
|
|
12
|
+
$encoded-color: string.slice(meta.inspect($neutral600), 2);
|
|
13
13
|
|
|
14
14
|
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%23" + $encoded-color + "' stroke-width='4' stroke-dasharray='0.5, 7' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
|
|
15
15
|
border-radius: 100px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.radio-button-errors {
|
|
19
|
-
font-size: font-
|
|
19
|
+
font-size: $font-size-sm;
|
|
20
20
|
font-weight: 600;
|
|
21
|
-
color:
|
|
21
|
+
color: $cherry600;
|
|
22
22
|
margin-top: 0;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
|
|
28
28
|
&__large {
|
|
29
|
-
margin:
|
|
29
|
+
margin: getSpacer(2xs) 0;
|
|
30
30
|
|
|
31
31
|
&--focused {
|
|
32
|
-
box-shadow: 0 0 0
|
|
33
|
-
color:
|
|
32
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
33
|
+
color: $neutral500;
|
|
34
34
|
}
|
|
35
35
|
&--focused#{&}--on-blueberry {
|
|
36
|
-
color:
|
|
36
|
+
color: $blueberry500;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&--focused#{&}--selected {
|
|
40
|
-
color:
|
|
40
|
+
color: $blueberry900;
|
|
41
41
|
}
|
|
42
42
|
&--focused#{&}--invalid {
|
|
43
|
-
color:
|
|
43
|
+
color: $cherry400;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -49,123 +49,123 @@
|
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: flex-start;
|
|
51
51
|
cursor: pointer;
|
|
52
|
-
line-height:
|
|
53
|
-
color:
|
|
52
|
+
line-height: $lineheight-size-sm;
|
|
53
|
+
color: $black;
|
|
54
54
|
|
|
55
55
|
&--on-dark {
|
|
56
|
-
color:
|
|
56
|
+
color: $white;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&--invalid {
|
|
60
|
-
color:
|
|
60
|
+
color: $black;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&--disabled {
|
|
64
64
|
cursor: default;
|
|
65
|
-
color:
|
|
65
|
+
color: $neutral700;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&__large {
|
|
69
|
-
padding:
|
|
70
|
-
background-color:
|
|
69
|
+
padding: getSpacer(s);
|
|
70
|
+
background-color: $neutral50;
|
|
71
71
|
|
|
72
72
|
&:hover {
|
|
73
|
-
background-color:
|
|
73
|
+
background-color: $neutral100;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&--on-blueberry {
|
|
77
|
-
background-color:
|
|
77
|
+
background-color: $white;
|
|
78
78
|
|
|
79
79
|
&:focus {
|
|
80
|
-
background-color:
|
|
80
|
+
background-color: $white;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&:hover {
|
|
84
|
-
background-color:
|
|
84
|
+
background-color: $blueberry100;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
&--on-grey {
|
|
89
|
-
background-color:
|
|
89
|
+
background-color: $white;
|
|
90
90
|
|
|
91
91
|
&:hover {
|
|
92
|
-
background-color:
|
|
92
|
+
background-color: $neutral100;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&:focus {
|
|
96
|
-
background-color:
|
|
96
|
+
background-color: $white;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&__large#{&}--on-dark {
|
|
102
|
-
background-color:
|
|
102
|
+
background-color: $blueberry800;
|
|
103
103
|
}
|
|
104
104
|
&__large#{&}--invalid {
|
|
105
|
-
background-color:
|
|
105
|
+
background-color: $white;
|
|
106
106
|
|
|
107
107
|
&:hover {
|
|
108
|
-
background-color:
|
|
108
|
+
background-color: $cherry100;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
&__large#{&}__large--selected-invalid {
|
|
112
|
-
background-color:
|
|
113
|
-
color:
|
|
112
|
+
background-color: $cherry100;
|
|
113
|
+
color: $black;
|
|
114
114
|
|
|
115
115
|
&:hover {
|
|
116
|
-
background-color:
|
|
116
|
+
background-color: $cherry200;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
&__large#{&}__large--on-grey {
|
|
121
|
-
background-color:
|
|
121
|
+
background-color: $white;
|
|
122
122
|
|
|
123
123
|
&:hover {
|
|
124
|
-
background-color:
|
|
124
|
+
background-color: $neutral100;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
&:focus {
|
|
128
|
-
background-color:
|
|
128
|
+
background-color: $white;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
&__large#{&}__large--on-blueberry {
|
|
133
|
-
background-color:
|
|
133
|
+
background-color: $white;
|
|
134
134
|
|
|
135
135
|
&:hover {
|
|
136
|
-
background-color:
|
|
136
|
+
background-color: $blueberry100;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&:focus {
|
|
140
|
-
background-color:
|
|
140
|
+
background-color: $white;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
&__large--selected {
|
|
145
|
-
background-color:
|
|
146
|
-
color:
|
|
145
|
+
background-color: $blueberry500;
|
|
146
|
+
color: $white;
|
|
147
147
|
|
|
148
148
|
&:hover {
|
|
149
|
-
background-color:
|
|
149
|
+
background-color: $blueberry600;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
&__large#{&}__large--disabled {
|
|
154
|
-
color:
|
|
155
|
-
background-color:
|
|
154
|
+
color: $neutral700;
|
|
155
|
+
background-color: $neutral50;
|
|
156
156
|
|
|
157
157
|
&:hover {
|
|
158
|
-
background-color:
|
|
158
|
+
background-color: $neutral50;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
&:focus {
|
|
162
|
-
background-color:
|
|
162
|
+
background-color: $neutral50;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
167
167
|
&__large {
|
|
168
|
-
padding: 1.68rem
|
|
168
|
+
padding: 1.68rem getSpacer(l);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -177,102 +177,102 @@
|
|
|
177
177
|
justify-content: center;
|
|
178
178
|
align-items: center;
|
|
179
179
|
border-radius: 10rem;
|
|
180
|
-
margin: 0
|
|
180
|
+
margin: 0 getSpacer(s) 0 0;
|
|
181
181
|
height: 1.5rem;
|
|
182
182
|
width: 1.5rem;
|
|
183
183
|
min-height: 1.5rem;
|
|
184
184
|
min-width: 1.5rem;
|
|
185
|
-
color:
|
|
186
|
-
box-shadow: 0 0 0
|
|
185
|
+
color: $neutral700;
|
|
186
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
187
187
|
outline: none;
|
|
188
188
|
|
|
189
189
|
&:focus {
|
|
190
|
-
box-shadow: 0 0 0
|
|
191
|
-
color:
|
|
190
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
191
|
+
color: $black;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
&:hover {
|
|
195
|
-
box-shadow: 0 0 0
|
|
196
|
-
background-color:
|
|
195
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
196
|
+
background-color: $neutral100;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
:active > & {
|
|
200
|
-
box-shadow: 0 0 0
|
|
201
|
-
color:
|
|
200
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
201
|
+
color: $black;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
&:checked {
|
|
205
|
-
color:
|
|
205
|
+
color: $blueberry500;
|
|
206
206
|
|
|
207
207
|
&:hover {
|
|
208
|
-
box-shadow: 0 0 0
|
|
209
|
-
background-color:
|
|
208
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
209
|
+
background-color: $blueberry50;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
&:focus {
|
|
213
|
-
box-shadow: 0 0 0
|
|
214
|
-
color:
|
|
213
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
214
|
+
color: $black;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
&--on-blueberry {
|
|
219
|
-
color:
|
|
219
|
+
color: $blueberry500;
|
|
220
220
|
|
|
221
221
|
:hover > & {
|
|
222
|
-
background-color:
|
|
222
|
+
background-color: $blueberry100;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
&--on-dark {
|
|
227
|
-
color:
|
|
227
|
+
color: $neutral200;
|
|
228
228
|
|
|
229
229
|
&:hover {
|
|
230
|
-
background-color:
|
|
231
|
-
box-shadow: 0 0 0
|
|
230
|
+
background-color: $inverted-hover-old;
|
|
231
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
&:focus {
|
|
235
|
-
color:
|
|
235
|
+
color: $white;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
:active > & {
|
|
239
|
-
box-shadow: 0 0 0
|
|
240
|
-
color:
|
|
239
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
240
|
+
color: $white;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
&:checked {
|
|
244
|
-
color:
|
|
244
|
+
color: $blueberry200;
|
|
245
245
|
|
|
246
246
|
&:hover {
|
|
247
|
-
background-color:
|
|
247
|
+
background-color: $inverted-hover-old;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
&:focus {
|
|
251
|
-
color:
|
|
251
|
+
color: $white;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
&--invalid {
|
|
257
|
-
color:
|
|
257
|
+
color: $cherry600;
|
|
258
258
|
|
|
259
259
|
&:hover {
|
|
260
|
-
background-color:
|
|
260
|
+
background-color: $cherry100;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
&:active {
|
|
264
|
-
color:
|
|
264
|
+
color: $black;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
&:focus {
|
|
268
|
-
color:
|
|
268
|
+
color: $black;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
&:checked {
|
|
272
|
-
color:
|
|
272
|
+
color: $cherry600;
|
|
273
273
|
|
|
274
274
|
&:hover {
|
|
275
|
-
background-color:
|
|
275
|
+
background-color: $cherry100;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -294,15 +294,15 @@
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
&:active {
|
|
297
|
-
color:
|
|
297
|
+
color: $neutral600;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
&:checked {
|
|
301
|
-
color:
|
|
301
|
+
color: $neutral600;
|
|
302
302
|
|
|
303
303
|
&:hover {
|
|
304
|
-
box-shadow: 0 0 0
|
|
305
|
-
background-color:
|
|
304
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
305
|
+
background-color: $neutral50;
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
&:checked::before {
|
|
312
312
|
content: '';
|
|
313
313
|
display: flex;
|
|
314
|
-
background-color:
|
|
314
|
+
background-color: $blueberry500;
|
|
315
315
|
width: 0.875rem;
|
|
316
316
|
height: 0.875rem;
|
|
317
317
|
border-radius: 10rem;
|
|
@@ -324,11 +324,11 @@
|
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
&--on-dark:checked::before {
|
|
327
|
-
background-color:
|
|
327
|
+
background-color: $blueberry200;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
&--invalid:checked::before {
|
|
331
|
-
background-color:
|
|
331
|
+
background-color: $cherry600;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
&--disabled:checked::before {
|
|
@@ -338,43 +338,43 @@
|
|
|
338
338
|
&__large {
|
|
339
339
|
&:checked {
|
|
340
340
|
outline: none;
|
|
341
|
-
color:
|
|
341
|
+
color: $blueberry100;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
&:hover {
|
|
345
|
-
box-shadow: 0 0 0
|
|
345
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
&:focus {
|
|
349
|
-
box-shadow: 0 0 0
|
|
350
|
-
color:
|
|
349
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
350
|
+
color: $black;
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
&:focus:checked {
|
|
354
|
-
color:
|
|
354
|
+
color: $white;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
&:checked::before {
|
|
358
|
-
background-color:
|
|
358
|
+
background-color: $blueberry100;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
&:checked:hover {
|
|
362
|
-
box-shadow: 0 0 0
|
|
362
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
363
363
|
background-color: unset;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
&:checked:hover:focus {
|
|
367
|
-
box-shadow: 0 0 0
|
|
368
|
-
color:
|
|
367
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
368
|
+
color: $white;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
&--invalid {
|
|
372
372
|
&:checked {
|
|
373
|
-
color:
|
|
373
|
+
color: $cherry500;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
&:checked::before {
|
|
377
|
-
background-color:
|
|
377
|
+
background-color: $cherry500;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
&:checked:hover {
|
|
@@ -382,11 +382,11 @@
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
&:checked:focus {
|
|
385
|
-
color:
|
|
385
|
+
color: $black;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
&:checked:focus:hover {
|
|
389
|
-
color:
|
|
389
|
+
color: $black;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
&:checked::before {
|
|
401
|
-
background-color:
|
|
401
|
+
background-color: $neutral600;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
6
|
|
|
7
7
|
.select-wrapper {
|
|
8
8
|
display: flex;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
.select-inner-wrapper {
|
|
13
13
|
// Grid brukes til å kunne plassere custom ikon fritt over select elementet
|
|
14
14
|
display: inline-grid;
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: $white;
|
|
16
16
|
align-items: center;
|
|
17
17
|
|
|
18
18
|
// Andre kolonne her styrer plassering av select ikonet
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&:hover {
|
|
26
|
-
background:
|
|
26
|
+
background: $neutral50;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&--on-blueberry {
|
|
30
30
|
&:hover {
|
|
31
|
-
background-color:
|
|
31
|
+
background-color: $blueberry50;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&--invalid {
|
|
36
36
|
&:hover {
|
|
37
|
-
background-color:
|
|
37
|
+
background-color: $cherry50;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&--disabled {
|
|
42
|
-
color:
|
|
42
|
+
color: $neutral700;
|
|
43
43
|
background: transparent;
|
|
44
44
|
|
|
45
45
|
&:hover {
|
|
@@ -56,26 +56,26 @@
|
|
|
56
56
|
background-color: transparent;
|
|
57
57
|
grid-column: 1 / 3;
|
|
58
58
|
grid-row: 1;
|
|
59
|
-
padding-left:
|
|
59
|
+
padding-left: getSpacer(xs);
|
|
60
60
|
border: none;
|
|
61
|
-
outline:
|
|
61
|
+
outline: $neutral700 solid 2px;
|
|
62
62
|
outline-offset: -2px;
|
|
63
63
|
font-family: inherit;
|
|
64
|
-
font-size: font-
|
|
65
|
-
line-height:
|
|
64
|
+
font-size: $font-size-sm;
|
|
65
|
+
line-height: $lineheight-size-sm;
|
|
66
66
|
border-radius: 0;
|
|
67
67
|
|
|
68
68
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
69
69
|
height: 3.125rem;
|
|
70
|
-
font-size: font-
|
|
70
|
+
font-size: $font-size-md;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&--on-blueberry {
|
|
74
|
-
outline-color:
|
|
74
|
+
outline-color: $blueberry500;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&--invalid {
|
|
78
|
-
outline-color:
|
|
78
|
+
outline-color: $cherry600;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
:hover > & {
|
|
@@ -84,22 +84,22 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&:focus {
|
|
87
|
-
outline:
|
|
87
|
+
outline: $black solid 4px;
|
|
88
88
|
outline-offset: -2px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
&:disabled {
|
|
92
|
-
outline:
|
|
92
|
+
outline: $neutral600 dashed 2px;
|
|
93
93
|
outline-offset: -2px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
& > option {
|
|
97
|
-
background:
|
|
97
|
+
background: $white;
|
|
98
98
|
font-family: inherit;
|
|
99
|
-
font-size: font-
|
|
99
|
+
font-size: $font-size-sm;
|
|
100
100
|
|
|
101
101
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
102
|
-
font-size: font-
|
|
102
|
+
font-size: $font-size-md;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|