@helsenorge/designsystem-react 10.2.0 → 10.3.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 +25 -0
- package/components/AnchorLink/styles.module.scss +8 -9
- package/components/Avatar/styles.module.scss +9 -9
- package/components/Badge/styles.module.scss +9 -9
- package/components/Button/styles.module.scss +65 -59
- 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/index.js +2 -1
- package/components/Duolist/index.js.map +1 -1
- package/components/Duolist/styles.module.scss +57 -35
- package/components/Duolist/styles.module.scss.d.ts +1 -0
- package/components/EmptyState/styles.module.scss +12 -12
- package/components/ErrorWrapper/styles.module.scss +11 -21
- package/components/ErrorWrapper/styles.module.scss.d.ts +0 -1
- package/components/Expander/styles.module.scss +46 -46
- package/components/ExpanderHierarchy/expander.module.scss +29 -29
- package/components/ExpanderHierarchy/styles.module.scss +4 -5
- package/components/ExpanderList/styles.module.scss +30 -30
- package/components/EyebrowHeader/styles.module.scss +0 -2
- package/components/FormGroup/styles.module.scss +9 -9
- package/components/FormLayout/styles.module.scss +4 -5
- 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 +4 -3
- 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 +13 -14
- package/components/PopOver/styles.module.scss.d.ts +0 -3
- 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 +23 -15
- 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 +5 -6
- package/scss/_breakpoints.scss +2 -2
- package/scss/_font-mixins.scss +2 -2
- package/scss/_fonts.scss +0 -2
- package/scss/_input.scss +53 -50
- package/scss/_print.scss +2 -2
- package/scss/layout.module.scss +2 -2
- package/scss/typography.module.scss +44 -43
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/font-settings' as font-settings;
|
|
5
|
+
@use '../../scss/breakpoints' as *;
|
|
6
6
|
|
|
7
7
|
.stepper-wrapper {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
min-height: getSpacer(l);
|
|
10
|
+
min-height: spacers.getSpacer(l);
|
|
11
11
|
|
|
12
12
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
13
|
-
min-height: getSpacer(xl);
|
|
13
|
+
min-height: spacers.getSpacer(xl);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -47,7 +47,15 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
47
47
|
display: block;
|
|
48
48
|
height: $stepper-height;
|
|
49
49
|
border-radius: 4px;
|
|
50
|
-
background:
|
|
50
|
+
background:
|
|
51
|
+
linear-gradient(
|
|
52
|
+
to right,
|
|
53
|
+
palette.$blueberry600,
|
|
54
|
+
palette.$blueberry600 $dot-offset,
|
|
55
|
+
palette.$blueberry50 $dot-offset,
|
|
56
|
+
palette.$blueberry50
|
|
57
|
+
),
|
|
58
|
+
palette.$blueberry600;
|
|
51
59
|
background-repeat: no-repeat;
|
|
52
60
|
|
|
53
61
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -59,8 +67,8 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
59
67
|
width: $marker-size;
|
|
60
68
|
height: $marker-size;
|
|
61
69
|
top: calc(($stepper-height - $marker-size) / 2);
|
|
62
|
-
background-color:
|
|
63
|
-
border: 6px solid
|
|
70
|
+
background-color: palette.$white;
|
|
71
|
+
border: 6px solid palette.$blueberry600;
|
|
64
72
|
border-radius: 50%;
|
|
65
73
|
|
|
66
74
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -71,11 +79,11 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
71
79
|
&__number {
|
|
72
80
|
min-width: 2.5rem;
|
|
73
81
|
text-align: right;
|
|
74
|
-
margin-left: getSpacer(xs);
|
|
75
|
-
font-size:
|
|
76
|
-
line-height:
|
|
82
|
+
margin-left: spacers.getSpacer(xs);
|
|
83
|
+
font-size: font-settings.$font-size-xs;
|
|
84
|
+
line-height: font-settings.$lineheight-size-xs;
|
|
77
85
|
font-weight: 700;
|
|
78
|
-
color:
|
|
86
|
+
color: palette.$blueberry700;
|
|
79
87
|
}
|
|
80
88
|
|
|
81
89
|
&__dot {
|
|
@@ -83,7 +91,7 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
83
91
|
top: calc(($stepper-height - $dot-size) / 2);
|
|
84
92
|
width: $dot-size;
|
|
85
93
|
height: $dot-size;
|
|
86
|
-
background-color:
|
|
94
|
+
background-color: palette.$blueberry600;
|
|
87
95
|
border-radius: 50%;
|
|
88
96
|
|
|
89
97
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -91,7 +99,7 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
91
99
|
}
|
|
92
100
|
|
|
93
101
|
&--completed {
|
|
94
|
-
background-color:
|
|
102
|
+
background-color: palette.$blueberry50;
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
&--left {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '../../scss/
|
|
2
|
-
@
|
|
1
|
+
@use '../../scss/font-settings' as font-settings;
|
|
2
|
+
@import '../../scss/supernova/styles/colors';
|
|
3
3
|
|
|
4
4
|
.sticky-note {
|
|
5
5
|
position: relative;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
&__error-text {
|
|
96
96
|
color: var(--color-notification-status-error);
|
|
97
97
|
line-height: 1.875rem;
|
|
98
|
-
font-size:
|
|
98
|
+
font-size: font-settings.$font-size-sm;
|
|
99
99
|
margin-top: 0.75rem;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Kan fjernes når konvensjonen for BEM er tillatt.
|
|
2
2
|
/* stylelint-disable selector-class-pattern */
|
|
3
3
|
@use 'sass:map';
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
4
|
+
@use '../../scss/spacers' as spacers;
|
|
5
|
+
@use '../../scss/palette' as palette;
|
|
6
|
+
@use '../../scss/font-settings' as font-settings;
|
|
7
|
+
@use '../../scss/breakpoints' as *;
|
|
8
8
|
@import '../../scss/grid';
|
|
9
9
|
|
|
10
10
|
/* fix outline for Safari */
|
|
@@ -72,7 +72,7 @@ table .table-body .table-row {
|
|
|
72
72
|
top: 0;
|
|
73
73
|
left: 0;
|
|
74
74
|
width: 60%;
|
|
75
|
-
padding-right:
|
|
75
|
+
padding-right: spacers.$spacer;
|
|
76
76
|
white-space: normal;
|
|
77
77
|
display: block;
|
|
78
78
|
float: left;
|
|
@@ -85,7 +85,7 @@ table .table-body .table-row {
|
|
|
85
85
|
|
|
86
86
|
.table__expander-cell-mobile {
|
|
87
87
|
padding-left: 0.75rem;
|
|
88
|
-
border-bottom: 1px solid
|
|
88
|
+
border-bottom: 1px solid palette.$neutral500;
|
|
89
89
|
|
|
90
90
|
&--expanded {
|
|
91
91
|
border-bottom: 0;
|
|
@@ -99,7 +99,7 @@ table .table-body .table-row {
|
|
|
99
99
|
|
|
100
100
|
.table__cell:first-child {
|
|
101
101
|
border-collapse: collapse;
|
|
102
|
-
border-top: 1px solid
|
|
102
|
+
border-top: 1px solid palette.$neutral500;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.table__expanded-row {
|
|
@@ -117,7 +117,7 @@ table .table-body .table-row {
|
|
|
117
117
|
.table__row--expandable {
|
|
118
118
|
.table__cell:nth-child(2) {
|
|
119
119
|
border-collapse: collapse;
|
|
120
|
-
border-top: 1px solid
|
|
120
|
+
border-top: 1px solid palette.$neutral500;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
&:focus-within {
|
|
@@ -126,7 +126,7 @@ table .table-body .table-row {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.table-row:last-child .table__cell:last-child {
|
|
129
|
-
border-bottom: 1px solid
|
|
129
|
+
border-bottom: 1px solid palette.$neutral500;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -153,10 +153,10 @@ table .table-body .table-row {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.table__head {
|
|
156
|
-
background:
|
|
156
|
+
background: palette.$blueberry50;
|
|
157
157
|
|
|
158
158
|
&--normal {
|
|
159
|
-
background:
|
|
159
|
+
background: palette.$neutral50;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
&--transparent {
|
|
@@ -164,7 +164,7 @@ table .table-body .table-row {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
&--sortable {
|
|
167
|
-
background:
|
|
167
|
+
background: palette.$blueberry50;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
@@ -184,46 +184,46 @@ table .table-body .table-row {
|
|
|
184
184
|
// Fix for firefox hover feil
|
|
185
185
|
background-clip: padding-box;
|
|
186
186
|
height: 3.625rem;
|
|
187
|
-
font-size:
|
|
188
|
-
line-height:
|
|
187
|
+
font-size: font-settings.$font-size-sm;
|
|
188
|
+
line-height: font-settings.$lineheight-size-xs;
|
|
189
189
|
text-align: left;
|
|
190
190
|
vertical-align: bottom;
|
|
191
191
|
font-weight: 700;
|
|
192
192
|
padding: 0.5rem 0.75rem;
|
|
193
|
-
border: 1px solid
|
|
193
|
+
border: 1px solid palette.$neutral500;
|
|
194
194
|
|
|
195
195
|
&--sortable {
|
|
196
196
|
position: relative;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
&--sortable:hover {
|
|
200
|
-
background-color:
|
|
200
|
+
background-color: palette.$blueberry100;
|
|
201
201
|
cursor: pointer;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
&--sortable:focus-within {
|
|
205
|
-
outline: 3px solid
|
|
205
|
+
outline: 3px solid palette.$black;
|
|
206
206
|
outline-offset: -3px;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
210
210
|
padding: 1rem;
|
|
211
211
|
height: 5.5rem;
|
|
212
|
-
font-size:
|
|
213
|
-
line-height:
|
|
212
|
+
font-size: font-settings.$font-size-md;
|
|
213
|
+
line-height: font-settings.$lineheight-size-sm;
|
|
214
214
|
font-weight: 700;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
&--compact {
|
|
218
|
-
padding: getSpacer(2xs) getSpacer(3xs) getSpacer(4xs);
|
|
218
|
+
padding: spacers.getSpacer(2xs) spacers.getSpacer(3xs) spacers.getSpacer(4xs);
|
|
219
219
|
line-height: 18px;
|
|
220
220
|
font-size: 14px;
|
|
221
221
|
height: unset;
|
|
222
222
|
|
|
223
223
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
224
|
-
padding: getSpacer(s) getSpacer(3xs) getSpacer(3xs);
|
|
224
|
+
padding: spacers.getSpacer(s) spacers.getSpacer(3xs) spacers.getSpacer(3xs);
|
|
225
225
|
line-height: 20px;
|
|
226
|
-
font-size:
|
|
226
|
+
font-size: font-settings.$font-size-xs;
|
|
227
227
|
height: unset;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -235,11 +235,11 @@ table .table-body .table-row {
|
|
|
235
235
|
|
|
236
236
|
.table__cell {
|
|
237
237
|
height: 2, 375;
|
|
238
|
-
font-size:
|
|
238
|
+
font-size: font-settings.$font-size-xs;
|
|
239
239
|
line-height: 1.5rem;
|
|
240
240
|
padding: 0.5rem 0.75rem;
|
|
241
241
|
text-align: left;
|
|
242
|
-
border: 1px solid
|
|
242
|
+
border: 1px solid palette.$neutral500;
|
|
243
243
|
|
|
244
244
|
&--center {
|
|
245
245
|
text-align: center;
|
|
@@ -256,17 +256,17 @@ table .table-body .table-row {
|
|
|
256
256
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
257
257
|
padding: 1rem;
|
|
258
258
|
height: 3.625rem;
|
|
259
|
-
font-size:
|
|
259
|
+
font-size: font-settings.$font-size-sm;
|
|
260
260
|
line-height: 1.75rem;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
&--compact {
|
|
264
|
-
padding: getSpacer(4xs) getSpacer(3xs);
|
|
264
|
+
padding: spacers.getSpacer(4xs) spacers.getSpacer(3xs);
|
|
265
265
|
font-size: 14px;
|
|
266
266
|
|
|
267
267
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
268
|
-
padding: getSpacer(3xs);
|
|
269
|
-
font-size:
|
|
268
|
+
padding: spacers.getSpacer(3xs);
|
|
269
|
+
font-size: font-settings.$font-size-xs;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
@@ -274,18 +274,18 @@ table .table-body .table-row {
|
|
|
274
274
|
.table__cell-expander {
|
|
275
275
|
text-align: center;
|
|
276
276
|
width: min-content;
|
|
277
|
-
padding: 0 getSpacer(3xs);
|
|
277
|
+
padding: 0 spacers.getSpacer(3xs);
|
|
278
278
|
vertical-align: middle;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.table__row--expandable {
|
|
282
282
|
&--selected {
|
|
283
|
-
background:
|
|
283
|
+
background: palette.$neutral100;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
&:hover {
|
|
287
287
|
cursor: pointer;
|
|
288
|
-
background:
|
|
288
|
+
background: palette.$blueberry50;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
@@ -301,7 +301,7 @@ table .table-body .table-row {
|
|
|
301
301
|
|
|
302
302
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
303
303
|
&--open {
|
|
304
|
-
border-bottom: 1px solid
|
|
304
|
+
border-bottom: 1px solid palette.$neutral100;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
2
|
+
@use '../../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../../scss/palette' as palette;
|
|
4
|
+
@use '../../../scss/breakpoints' as *;
|
|
5
5
|
@import '../../../scss/supernova/styles/colors';
|
|
6
6
|
|
|
7
7
|
.tab-panel {
|
|
8
8
|
$tab-panel: &;
|
|
9
9
|
$colors: 'blueberry', 'neutral', 'white';
|
|
10
10
|
|
|
11
|
-
padding: getSpacer(l) getSpacer(s) getSpacer(xl);
|
|
11
|
+
padding: spacers.getSpacer(l) spacers.getSpacer(s) spacers.getSpacer(xl);
|
|
12
12
|
width: 100%;
|
|
13
13
|
border-bottom: 1px solid var(--color-action-border-onlight-focus);
|
|
14
14
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
border-radius: 0 0 0.5rem 0.5rem;
|
|
23
23
|
border: 1px solid var(--color-action-border-onlight-focus);
|
|
24
24
|
border-top: 0;
|
|
25
|
-
padding: getSpacer(xl) getSpacer(m) getSpacer(2xl);
|
|
25
|
+
padding: spacers.getSpacer(xl) spacers.getSpacer(m) spacers.getSpacer(2xl);
|
|
26
26
|
|
|
27
27
|
&#{$tab-panel}--first {
|
|
28
28
|
border-radius: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/breakpoints' as *;
|
|
5
5
|
|
|
6
6
|
.tag {
|
|
7
7
|
$tag: &;
|
|
@@ -28,45 +28,45 @@
|
|
|
28
28
|
&--#{$color}[type='button'] {
|
|
29
29
|
// banana og kiwi har unntak fra hovedregelen
|
|
30
30
|
@if $color == 'banana' {
|
|
31
|
-
color: map.get(
|
|
32
|
-
border-color: map.get(
|
|
31
|
+
color: map.get(palette.$palette-map, #{$color}900);
|
|
32
|
+
border-color: map.get(palette.$palette-map, #{$color}300);
|
|
33
33
|
} @else if $color == 'kiwi' {
|
|
34
|
-
color: map.get(
|
|
35
|
-
border-color: map.get(
|
|
34
|
+
color: map.get(palette.$palette-map, #{$color}900);
|
|
35
|
+
border-color: map.get(palette.$palette-map, #{$color}200);
|
|
36
36
|
} @else {
|
|
37
|
-
color: map.get(
|
|
38
|
-
border-color: map.get(
|
|
37
|
+
color: map.get(palette.$palette-map, #{$color}800);
|
|
38
|
+
border-color: map.get(palette.$palette-map, #{$color}200);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&#{$tag}--emphasised {
|
|
42
|
-
background-color: map.get(
|
|
42
|
+
background-color: map.get(palette.$palette-map, #{$color}50);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&--medium {
|
|
48
|
-
padding: 0 getSpacer(xs);
|
|
48
|
+
padding: 0 spacers.getSpacer(xs);
|
|
49
49
|
min-height: 1.625rem;
|
|
50
50
|
|
|
51
51
|
&#{$tag}--has-icon {
|
|
52
|
-
padding: 0 getSpacer(xs) 0 0.375rem;
|
|
52
|
+
padding: 0 spacers.getSpacer(xs) 0 0.375rem;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
#{$tag}__icon {
|
|
56
|
-
margin-right: getSpacer(4xs);
|
|
56
|
+
margin-right: spacers.getSpacer(4xs);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&--large {
|
|
61
|
-
padding: 0 getSpacer(xs);
|
|
61
|
+
padding: 0 spacers.getSpacer(xs);
|
|
62
62
|
min-height: 1.875rem;
|
|
63
63
|
|
|
64
64
|
&#{$tag}--has-icon {
|
|
65
|
-
padding: getSpacer(4xs) getSpacer(xs) getSpacer(4xs) 0.375rem;
|
|
65
|
+
padding: spacers.getSpacer(4xs) spacers.getSpacer(xs) spacers.getSpacer(4xs) 0.375rem;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
#{$tag}__icon {
|
|
69
|
-
margin-right: getSpacer(4xs);
|
|
69
|
+
margin-right: spacers.getSpacer(4xs);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@use '../../scss/spacers' as spacers;
|
|
2
|
+
@use '../../scss/palette' as palette;
|
|
3
|
+
@use '../../scss/breakpoints' as *;
|
|
4
4
|
|
|
5
5
|
.tag-list {
|
|
6
6
|
all: unset;
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
flex-wrap: wrap;
|
|
10
|
-
gap: getSpacer(2xs);
|
|
10
|
+
gap: spacers.getSpacer(2xs);
|
|
11
11
|
|
|
12
12
|
&__item {
|
|
13
13
|
all: unset;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
1
|
+
@use '../../scss/spacers' as spacers;
|
|
2
|
+
@use '../../scss/palette' as palette;
|
|
3
|
+
@use '../../scss/font-mixins' as fonts;
|
|
4
|
+
@use '../../scss/input' as input;
|
|
5
|
+
@use '../../scss/breakpoints' as *;
|
|
6
6
|
|
|
7
7
|
.textarea {
|
|
8
|
-
@include input-wrapper;
|
|
8
|
+
@include input.input-wrapper;
|
|
9
9
|
|
|
10
10
|
&--gutterBottom {
|
|
11
|
-
margin-bottom: getSpacer(s);
|
|
11
|
+
margin-bottom: spacers.getSpacer(s);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.input-container {
|
|
16
|
-
@include input-container;
|
|
16
|
+
@include input.input-container;
|
|
17
17
|
|
|
18
18
|
&__input {
|
|
19
|
-
@include input-text;
|
|
19
|
+
@include fonts.input-text;
|
|
20
20
|
|
|
21
21
|
height: auto;
|
|
22
22
|
padding: 16px;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@use '../../scss/font-settings' as font-settings;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/spacers' as spacers;
|
|
5
|
+
@use '../../scss/screen-reader' as *;
|
|
6
|
+
@use '../../scss/breakpoints' as *;
|
|
7
7
|
@import '../../scss/supernova/styles/colors';
|
|
8
8
|
|
|
9
9
|
.tile {
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
|
|
13
13
|
display: flex;
|
|
14
14
|
width: inherit;
|
|
15
|
-
padding: getSpacer(2xs) getSpacer(2xs) getSpacer(xs);
|
|
15
|
+
padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) spacers.getSpacer(xs);
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
background-color: var(--core-color-white);
|
|
19
|
-
color:
|
|
19
|
+
color: palette.$black;
|
|
20
20
|
text-decoration: none;
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
border: 1px solid var(--color-base-border-blueberry);
|
|
23
23
|
outline: none;
|
|
24
24
|
|
|
25
25
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
26
|
-
padding: getSpacer(l) getSpacer(m) getSpacer(l) getSpacer(s);
|
|
26
|
+
padding: spacers.getSpacer(l) spacers.getSpacer(m) spacers.getSpacer(l) spacers.getSpacer(s);
|
|
27
27
|
justify-content: flex-start;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
@media print {
|
|
31
|
-
border: 1px solid
|
|
31
|
+
border: 1px solid palette.$black;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&--fixed {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&--compact {
|
|
40
|
-
padding: getSpacer(2xs) getSpacer(2xs) getSpacer(xs);
|
|
40
|
+
padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) spacers.getSpacer(xs);
|
|
41
41
|
|
|
42
42
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
43
|
-
padding: getSpacer(s) getSpacer(m) getSpacer(s) getSpacer(s);
|
|
43
|
+
padding: spacers.getSpacer(s) spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(s);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&--highlighted {
|
|
62
|
-
background-color:
|
|
63
|
-
border-color:
|
|
64
|
-
color:
|
|
62
|
+
background-color: palette.$blueberry500;
|
|
63
|
+
border-color: palette.$blueberry500;
|
|
64
|
+
color: palette.$white;
|
|
65
65
|
|
|
66
66
|
&:hover,
|
|
67
67
|
&:active {
|
|
68
|
-
background-color:
|
|
69
|
-
border-color:
|
|
68
|
+
background-color: palette.$blueberry700;
|
|
69
|
+
border-color: palette.$blueberry700;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&:focus-visible {
|
|
@@ -78,26 +78,26 @@
|
|
|
78
78
|
overflow-wrap: break-word;
|
|
79
79
|
word-wrap: break-word;
|
|
80
80
|
word-break: break-word;
|
|
81
|
-
font-size:
|
|
81
|
+
font-size: font-settings.$font-size-sm;
|
|
82
82
|
text-align: center;
|
|
83
83
|
line-height: 1.74rem;
|
|
84
84
|
font-weight: 400;
|
|
85
|
-
margin: getSpacer(3xs) 0 0;
|
|
85
|
+
margin: spacers.getSpacer(3xs) 0 0;
|
|
86
86
|
|
|
87
87
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
88
88
|
text-align: left;
|
|
89
89
|
font-weight: 600;
|
|
90
|
-
font-size:
|
|
90
|
+
font-size: font-settings.$font-size-md;
|
|
91
91
|
line-height: 1.625rem;
|
|
92
|
-
margin: getSpacer(s) 0 0 getSpacer(2xs);
|
|
92
|
+
margin: spacers.getSpacer(s) 0 0 spacers.getSpacer(2xs);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&--compact {
|
|
96
|
-
margin: 0 0 0 getSpacer(3xs);
|
|
96
|
+
margin: 0 0 0 spacers.getSpacer(3xs);
|
|
97
97
|
text-align: left;
|
|
98
98
|
|
|
99
99
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
100
|
-
margin-left: getSpacer(2xs);
|
|
100
|
+
margin-left: spacers.getSpacer(2xs);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
&__description {
|
|
114
114
|
font-size: 1.125rem;
|
|
115
115
|
line-height: 1.75rem;
|
|
116
|
-
margin: getSpacer(2xs) 0 0 getSpacer(2xs);
|
|
116
|
+
margin: spacers.getSpacer(2xs) 0 0 spacers.getSpacer(2xs);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&__children {
|
|
120
|
-
margin: getSpacer(s) 0 0 getSpacer(2xs);
|
|
120
|
+
margin: spacers.getSpacer(s) 0 0 spacers.getSpacer(2xs);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
&--compact {
|
|
138
138
|
flex-direction: row;
|
|
139
139
|
align-items: center;
|
|
140
|
-
padding-right: getSpacer(s);
|
|
140
|
+
padding-right: spacers.getSpacer(s);
|
|
141
141
|
padding-bottom: 0;
|
|
142
142
|
|
|
143
143
|
svg {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../scss/font-mixins' as fonts;
|
|
2
2
|
|
|
3
3
|
.title {
|
|
4
4
|
overflow-wrap: break-word;
|
|
@@ -7,30 +7,30 @@
|
|
|
7
7
|
margin-right: 0;
|
|
8
8
|
|
|
9
9
|
&--feature {
|
|
10
|
-
@include title-feature;
|
|
10
|
+
@include fonts.title-feature;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&--title1 {
|
|
14
|
-
@include title1;
|
|
14
|
+
@include fonts.title1;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&--title2 {
|
|
18
|
-
@include title2;
|
|
18
|
+
@include fonts.title2;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&--title3 {
|
|
22
|
-
@include title3;
|
|
22
|
+
@include fonts.title3;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&--title4 {
|
|
26
|
-
@include title4;
|
|
26
|
+
@include fonts.title4;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&--title5 {
|
|
30
|
-
@include title5;
|
|
30
|
+
@include fonts.title5;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&--title6 {
|
|
34
|
-
@include title6;
|
|
34
|
+
@include fonts.title6;
|
|
35
35
|
}
|
|
36
36
|
}
|