@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,11 +1,11 @@
|
|
|
1
1
|
/* stylelint-disable no-descending-specificity */
|
|
2
2
|
@use 'sass:map';
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
3
|
+
@use '../../scss/spacers' as spacers;
|
|
4
|
+
@use '../../scss/palette' as palette;
|
|
5
|
+
@use '../../scss/font-settings' as font-settings;
|
|
6
|
+
@use '../Button/styles.module' as button;
|
|
7
|
+
@use '../../scss/breakpoints' as *;
|
|
7
8
|
@import '../../scss/supernova/styles/colors';
|
|
8
|
-
@import '../Button/styles.module';
|
|
9
9
|
|
|
10
10
|
.expander {
|
|
11
11
|
position: initial;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@media print {
|
|
19
|
-
border: 1px solid
|
|
19
|
+
border: 1px solid palette.$black;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&__icon {
|
|
@@ -24,27 +24,27 @@
|
|
|
24
24
|
align-items: center;
|
|
25
25
|
|
|
26
26
|
&--left {
|
|
27
|
-
margin-right: getSpacer(2xs);
|
|
27
|
+
margin-right: spacers.getSpacer(2xs);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&--right {
|
|
31
31
|
margin-left: auto;
|
|
32
|
-
padding-left: getSpacer(2xs);
|
|
32
|
+
padding-left: spacers.getSpacer(2xs);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&__button {
|
|
37
37
|
position: relative;
|
|
38
|
-
padding-right: getSpacer(s);
|
|
38
|
+
padding-right: spacers.getSpacer(s);
|
|
39
39
|
text-align: left;
|
|
40
40
|
|
|
41
41
|
&--expanded {
|
|
42
|
-
@include outline-borderless-hover;
|
|
42
|
+
@include button.outline-borderless-hover;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&__button &__button__text {
|
|
47
|
-
@include outline-borderless-text-hover;
|
|
47
|
+
@include button.outline-borderless-text-hover;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&__trigger {
|
|
@@ -55,31 +55,31 @@
|
|
|
55
55
|
align-items: center;
|
|
56
56
|
border: none;
|
|
57
57
|
outline: none;
|
|
58
|
-
font-size:
|
|
59
|
-
line-height:
|
|
58
|
+
font-size: font-settings.$font-size-sm;
|
|
59
|
+
line-height: font-settings.$lineheight-size-sm;
|
|
60
60
|
font-weight: 600;
|
|
61
61
|
text-align: left;
|
|
62
62
|
|
|
63
63
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
64
|
-
font-size:
|
|
65
|
-
line-height:
|
|
64
|
+
font-size: font-settings.$font-size-md;
|
|
65
|
+
line-height: font-settings.$lineheight-size-md;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&--large {
|
|
69
69
|
width: 100%;
|
|
70
|
-
padding: getSpacer(xs) getSpacer(2xs) getSpacer(xs) getSpacer(s);
|
|
70
|
+
padding: spacers.getSpacer(xs) spacers.getSpacer(2xs) spacers.getSpacer(xs) spacers.getSpacer(s);
|
|
71
71
|
cursor: pointer;
|
|
72
72
|
|
|
73
73
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
74
|
-
padding: getSpacer(xs) getSpacer(s) getSpacer(xs) getSpacer(l);
|
|
74
|
+
padding: spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(l);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&--icon {
|
|
79
|
-
padding-left: getSpacer(2xs);
|
|
79
|
+
padding-left: spacers.getSpacer(2xs);
|
|
80
80
|
|
|
81
81
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
82
|
-
padding-left: getSpacer(s);
|
|
82
|
+
padding-left: spacers.getSpacer(s);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -87,22 +87,22 @@
|
|
|
87
87
|
|
|
88
88
|
@each $color in $colors {
|
|
89
89
|
&--#{$color} {
|
|
90
|
-
background-color: map.get(
|
|
90
|
+
background-color: map.get(palette.$palette-map, #{$color}50);
|
|
91
91
|
|
|
92
92
|
&:hover {
|
|
93
|
-
background-color: map.get(
|
|
93
|
+
background-color: map.get(palette.$palette-map, #{$color}100);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&:focus {
|
|
97
97
|
box-shadow:
|
|
98
|
-
0 0 0 1.5px
|
|
99
|
-
inset 0 0 0 1.5px
|
|
98
|
+
0 0 0 1.5px palette.$neutral600,
|
|
99
|
+
inset 0 0 0 1.5px palette.$neutral600;
|
|
100
100
|
}
|
|
101
101
|
&#{$trigger}--expanded {
|
|
102
|
-
background-color: map.get(
|
|
102
|
+
background-color: map.get(palette.$palette-map, #{$color}100);
|
|
103
103
|
|
|
104
104
|
&:hover {
|
|
105
|
-
background-color: map.get(
|
|
105
|
+
background-color: map.get(palette.$palette-map, #{$color}200);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -110,25 +110,25 @@
|
|
|
110
110
|
|
|
111
111
|
// Hvit bakgrunn har egne regler for bakgrunnsfarge, hover og fokus
|
|
112
112
|
&--white {
|
|
113
|
-
background-color:
|
|
113
|
+
background-color: palette.$white;
|
|
114
114
|
|
|
115
115
|
&:hover {
|
|
116
|
-
background-color:
|
|
116
|
+
background-color: palette.$neutral100;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&:focus {
|
|
120
120
|
box-shadow:
|
|
121
|
-
0 0 0 1.5px
|
|
122
|
-
inset 0 0 0 1.5px
|
|
121
|
+
0 0 0 1.5px palette.$neutral600,
|
|
122
|
+
inset 0 0 0 1.5px palette.$neutral600;
|
|
123
123
|
}
|
|
124
124
|
&#{$trigger}--expanded {
|
|
125
|
-
box-shadow: inset 0 0 0 6px
|
|
125
|
+
box-shadow: inset 0 0 0 6px palette.$neutral100;
|
|
126
126
|
|
|
127
127
|
&:focus {
|
|
128
128
|
box-shadow:
|
|
129
|
-
0 0 0 1.5px
|
|
130
|
-
inset 0 0 0 1.5px
|
|
131
|
-
inset 0 0 0 6px
|
|
129
|
+
0 0 0 1.5px palette.$neutral600,
|
|
130
|
+
inset 0 0 0 1.5px palette.$neutral600,
|
|
131
|
+
inset 0 0 0 6px palette.$neutral100;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
|
|
137
137
|
&__button-container {
|
|
138
138
|
&--sticky {
|
|
139
|
-
background-color:
|
|
139
|
+
background-color: palette.$white;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
|
|
@@ -163,15 +163,15 @@
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
&--small {
|
|
166
|
-
margin-top: getSpacer(s);
|
|
166
|
+
margin-top: spacers.getSpacer(s);
|
|
167
167
|
}
|
|
168
168
|
&--small#{&}--sticky {
|
|
169
169
|
margin-top: 1.25rem;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
&--nested-line {
|
|
173
|
-
padding-left: getSpacer(s);
|
|
174
|
-
border-left: solid 3px
|
|
173
|
+
padding-left: spacers.getSpacer(s);
|
|
174
|
+
border-left: solid 3px palette.$neutral200;
|
|
175
175
|
|
|
176
176
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
177
177
|
margin-left: calc(38px / 2 - 1px); // Halvparten av chevron-ikonets bredde minus halve bredden på border
|
|
@@ -182,10 +182,10 @@
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
&--large {
|
|
185
|
-
padding: getSpacer(s) getSpacer(m) getSpacer(l) getSpacer(s);
|
|
185
|
+
padding: spacers.getSpacer(s) spacers.getSpacer(m) spacers.getSpacer(l) spacers.getSpacer(s);
|
|
186
186
|
|
|
187
187
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
188
|
-
padding: getSpacer(m) getSpacer(l) getSpacer(xl);
|
|
188
|
+
padding: spacers.getSpacer(m) spacers.getSpacer(l) spacers.getSpacer(xl);
|
|
189
189
|
}
|
|
190
190
|
&#{$content}--icon {
|
|
191
191
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
@@ -195,31 +195,31 @@
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
&--neutral {
|
|
198
|
-
background-color:
|
|
198
|
+
background-color: palette.$neutral50;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
&--blueberry {
|
|
202
|
-
background-color:
|
|
202
|
+
background-color: palette.$blueberry50;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
&--cherry {
|
|
206
|
-
background-color:
|
|
206
|
+
background-color: palette.$cherry50;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
&--kiwi {
|
|
210
|
-
background-color:
|
|
210
|
+
background-color: palette.$kiwi50;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
&--banana {
|
|
214
|
-
background-color:
|
|
214
|
+
background-color: palette.$banana50;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
&--plum {
|
|
218
|
-
background-color:
|
|
218
|
+
background-color: palette.$plum50;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
&--white {
|
|
222
|
-
background-color:
|
|
222
|
+
background-color: palette.$white;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@use '../../scss/palette' as palette;
|
|
3
|
+
@use '../../scss/spacers' as spacers;
|
|
4
|
+
@use '../../scss/font-mixins' as fonts;
|
|
5
|
+
@use '../../scss/breakpoints' as *;
|
|
6
6
|
|
|
7
7
|
.expander {
|
|
8
8
|
$item: &;
|
|
9
9
|
|
|
10
10
|
&:first-of-type {
|
|
11
|
-
border-top: 1px solid
|
|
11
|
+
border-top: 1px solid palette.$neutral500;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&__button {
|
|
@@ -20,41 +20,41 @@
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
background-color: transparent;
|
|
23
|
-
border-bottom: 1px solid
|
|
24
|
-
padding: getSpacer(xs) 0;
|
|
23
|
+
border-bottom: 1px solid palette.$neutral500;
|
|
24
|
+
padding: spacers.getSpacer(xs) 0;
|
|
25
25
|
|
|
26
26
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
27
27
|
flex-direction: row-reverse;
|
|
28
28
|
justify-content: start;
|
|
29
|
-
padding: getSpacer(s) getSpacer(s) getSpacer(s) getSpacer(2xs);
|
|
29
|
+
padding: spacers.getSpacer(s) spacers.getSpacer(s) spacers.getSpacer(s) spacers.getSpacer(2xs);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&:hover,
|
|
33
33
|
&:focus {
|
|
34
|
-
background-color:
|
|
34
|
+
background-color: palette.$neutral100;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&:focus {
|
|
38
38
|
text-decoration: underline;
|
|
39
|
-
outline: getSpacer(4xs) solid
|
|
39
|
+
outline: spacers.getSpacer(4xs) solid palette.$black;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&[aria-expanded='true'] {
|
|
43
|
-
background-color:
|
|
43
|
+
background-color: palette.$neutral100;
|
|
44
44
|
border-bottom: none;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@media print {
|
|
48
48
|
&--print {
|
|
49
|
-
background-color:
|
|
49
|
+
background-color: palette.$neutral100;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&--2-and-lower {
|
|
54
|
-
padding: getSpacer(2xs) 0;
|
|
54
|
+
padding: spacers.getSpacer(2xs) 0;
|
|
55
55
|
|
|
56
56
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
57
|
-
padding: getSpacer(xs) getSpacer(s) getSpacer(xs) getSpacer(2xs);
|
|
57
|
+
padding: spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(2xs);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -63,19 +63,19 @@
|
|
|
63
63
|
margin: 0;
|
|
64
64
|
|
|
65
65
|
&--1 {
|
|
66
|
-
@include title2;
|
|
66
|
+
@include fonts.title2;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&--2 {
|
|
70
|
-
@include title3;
|
|
70
|
+
@include fonts.title3;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&--3 {
|
|
74
|
-
@include title4;
|
|
74
|
+
@include fonts.title4;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&--4-and-lower {
|
|
78
|
-
@include title5;
|
|
78
|
+
@include fonts.title5;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
&--expanded {
|
|
@@ -95,44 +95,44 @@
|
|
|
95
95
|
|
|
96
96
|
&__content {
|
|
97
97
|
display: none;
|
|
98
|
-
border-bottom: 1px solid
|
|
99
|
-
padding-top: getSpacer(m);
|
|
100
|
-
padding-left: getSpacer(2xs);
|
|
101
|
-
padding-bottom: getSpacer(m);
|
|
98
|
+
border-bottom: 1px solid palette.$neutral500;
|
|
99
|
+
padding-top: spacers.getSpacer(m);
|
|
100
|
+
padding-left: spacers.getSpacer(2xs);
|
|
101
|
+
padding-bottom: spacers.getSpacer(m);
|
|
102
102
|
|
|
103
103
|
&--1 {
|
|
104
|
-
padding-top: getSpacer(xl);
|
|
104
|
+
padding-top: spacers.getSpacer(xl);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
&--1,
|
|
108
108
|
&--2 {
|
|
109
109
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
110
|
-
padding-left: getSpacer(2xl);
|
|
110
|
+
padding-left: spacers.getSpacer(2xl);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
&--3-and-lower {
|
|
115
115
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
116
|
-
padding-left: getSpacer(xl);
|
|
116
|
+
padding-left: spacers.getSpacer(xl);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&__icon {
|
|
122
|
-
margin-left: getSpacer(s);
|
|
122
|
+
margin-left: spacers.getSpacer(s);
|
|
123
123
|
|
|
124
124
|
&--2-and-lower {
|
|
125
|
-
margin-left: getSpacer(xs);
|
|
125
|
+
margin-left: spacers.getSpacer(xs);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
129
129
|
margin-left: 0;
|
|
130
|
-
margin-right: getSpacer(s);
|
|
130
|
+
margin-right: spacers.getSpacer(s);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&--3-and-lower {
|
|
134
134
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
135
|
-
margin-right: getSpacer(xs);
|
|
135
|
+
margin-right: spacers.getSpacer(xs);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@import '../../scss/font-mixins';
|
|
1
|
+
@use '../../scss/palette' as palette;
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
4
3
|
|
|
5
4
|
.expanderhierarchy {
|
|
6
5
|
list-style: none;
|
|
@@ -8,10 +7,10 @@
|
|
|
8
7
|
margin: 0;
|
|
9
8
|
|
|
10
9
|
&--2 {
|
|
11
|
-
margin-top: getSpacer(xl);
|
|
10
|
+
margin-top: spacers.getSpacer(xl);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
&--3-and-lower {
|
|
15
|
-
margin-top: getSpacer(m);
|
|
14
|
+
margin-top: spacers.getSpacer(m);
|
|
16
15
|
}
|
|
17
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/font-settings' as font-settings;
|
|
4
|
+
@use '../../scss/breakpoints' as *;
|
|
5
5
|
@import '../../scss/supernova/styles/colors';
|
|
6
6
|
|
|
7
7
|
.expander-list {
|
|
@@ -46,42 +46,42 @@
|
|
|
46
46
|
background-color: var(--color-base-background-white);
|
|
47
47
|
|
|
48
48
|
&--white {
|
|
49
|
-
border-top: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
50
|
-
border-left: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
51
|
-
border-right: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
49
|
+
border-top: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
50
|
+
border-left: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
51
|
+
border-right: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
52
52
|
|
|
53
53
|
&:last-of-type {
|
|
54
|
-
border-bottom: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
54
|
+
border-bottom: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&--blueberry {
|
|
59
|
-
border-top: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
60
|
-
border-left: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
61
|
-
border-right: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
59
|
+
border-top: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
60
|
+
border-left: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
61
|
+
border-right: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
62
62
|
|
|
63
63
|
&:last-of-type {
|
|
64
|
-
border-bottom: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
64
|
+
border-bottom: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&--cherry {
|
|
69
|
-
border-top: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
70
|
-
border-left: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
71
|
-
border-right: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
69
|
+
border-top: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
70
|
+
border-left: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
71
|
+
border-right: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
72
72
|
|
|
73
73
|
&:last-of-type {
|
|
74
|
-
border-bottom: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
74
|
+
border-bottom: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&--neutral {
|
|
79
|
-
border-top: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
80
|
-
border-left: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
81
|
-
border-right: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
79
|
+
border-top: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
80
|
+
border-left: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
81
|
+
border-right: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
82
82
|
|
|
83
83
|
&:last-of-type {
|
|
84
|
-
border-bottom: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
84
|
+
border-bottom: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
.expander-list-link {
|
|
118
118
|
padding: 0;
|
|
119
119
|
position: relative;
|
|
120
|
-
font-size:
|
|
121
|
-
line-height:
|
|
120
|
+
font-size: font-settings.$font-size-sm;
|
|
121
|
+
line-height: font-settings.$lineheight-size-sm;
|
|
122
122
|
display: flex;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
font-family: inherit;
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
outline: none;
|
|
133
133
|
|
|
134
134
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
135
|
-
font-size:
|
|
136
|
-
line-height:
|
|
135
|
+
font-size: font-settings.$font-size-md;
|
|
136
|
+
line-height: font-settings.$lineheight-size-md;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&--open {
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
|
|
143
143
|
&--fill,
|
|
144
144
|
&--fill-negative {
|
|
145
|
-
margin-top: getSpacer(s);
|
|
145
|
+
margin-top: spacers.getSpacer(s);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
&--fill-negative {
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
&--closed#{&}--fill {
|
|
153
|
-
margin-bottom: getSpacer(s);
|
|
153
|
+
margin-bottom: spacers.getSpacer(s);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
&:focus-visible:not(.expander-list-link--outline) {
|
|
@@ -237,21 +237,21 @@
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
&--large {
|
|
240
|
-
font-size:
|
|
241
|
-
line-height:
|
|
240
|
+
font-size: font-settings.$font-size-lg;
|
|
241
|
+
line-height: font-settings.$lineheight-size-lg;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
&__icon {
|
|
245
245
|
display: flex;
|
|
246
246
|
align-items: center;
|
|
247
|
-
margin-right: getSpacer(2xs);
|
|
247
|
+
margin-right: spacers.getSpacer(2xs);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
&__chevron {
|
|
251
251
|
display: flex;
|
|
252
252
|
align-items: center;
|
|
253
253
|
margin-left: auto;
|
|
254
|
-
padding-left: getSpacer(2xs);
|
|
254
|
+
padding-left: spacers.getSpacer(2xs);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
&__main-content {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
&--padding {
|
|
270
|
-
padding: getSpacer(xs) getSpacer(s) getSpacer(l);
|
|
270
|
+
padding: spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(l);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
1
|
+
@use '../../scss/spacers' as spacers;
|
|
2
|
+
@use '../../scss/palette' as palette;
|
|
3
|
+
@use '../../scss/font-mixins' as fonts;
|
|
4
|
+
@use '../../scss/breakpoints' as *;
|
|
5
5
|
|
|
6
6
|
.form-group-wrapper {
|
|
7
7
|
&__title {
|
|
8
8
|
&--on-dark {
|
|
9
|
-
color:
|
|
9
|
+
color: palette.$white;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
margin: 0;
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-flow: column;
|
|
24
|
-
gap: getSpacer(s);
|
|
24
|
+
gap: spacers.getSpacer(s);
|
|
25
25
|
|
|
26
26
|
> div {
|
|
27
27
|
padding-bottom: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__legend {
|
|
31
|
-
margin-bottom: getSpacer(m);
|
|
31
|
+
margin-bottom: spacers.getSpacer(m);
|
|
32
32
|
margin-top: 0;
|
|
33
33
|
|
|
34
|
-
@include legend;
|
|
34
|
+
@include fonts.legend;
|
|
35
35
|
|
|
36
36
|
&--on-dark {
|
|
37
|
-
color:
|
|
37
|
+
color: palette.$white;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/breakpoints';
|
|
1
|
+
@use '../../scss/spacers' as spacers;
|
|
3
2
|
|
|
4
3
|
.form-layout-container {
|
|
5
|
-
// Settes med harde verdier fordi calc() lenger nede ikke støtter getSpacer()
|
|
4
|
+
// Settes med harde verdier fordi calc() lenger nede ikke støtter spacers.getSpacer()
|
|
6
5
|
--column-gap: 2rem;
|
|
7
6
|
|
|
8
7
|
display: flex;
|
|
9
8
|
flex-wrap: wrap;
|
|
10
|
-
gap: getSpacer(s) var(--column-gap);
|
|
9
|
+
gap: spacers.getSpacer(s) var(--column-gap);
|
|
11
10
|
|
|
12
11
|
&--large {
|
|
13
|
-
row-gap: getSpacer(2xs);
|
|
12
|
+
row-gap: spacers.getSpacer(2xs);
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/font-settings' as font-settings;
|
|
5
|
+
@use '../AnchorLink/styles.module' as anchorlink;
|
|
6
|
+
@use '../../scss/breakpoints' as *;
|
|
7
7
|
|
|
8
8
|
.helpbubble {
|
|
9
9
|
$bubble: &;
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
align-items: flex-start !important;
|
|
13
13
|
text-align: start;
|
|
14
14
|
font-family: inherit;
|
|
15
|
-
font-size:
|
|
16
|
-
line-height:
|
|
15
|
+
font-size: font-settings.$font-size-sm;
|
|
16
|
+
line-height: font-settings.$lineheight-size-sm;
|
|
17
17
|
|
|
18
18
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
19
|
-
font-size:
|
|
20
|
-
line-height:
|
|
19
|
+
font-size: font-settings.$font-size-md;
|
|
20
|
+
line-height: font-settings.$lineheight-size-md;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&__content {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: flex-start;
|
|
28
28
|
overflow-wrap: anywhere;
|
|
29
|
-
row-gap: getSpacer(2xs);
|
|
30
|
-
padding: getSpacer(s) getSpacer(s) getSpacer(m);
|
|
29
|
+
row-gap: spacers.getSpacer(2xs);
|
|
30
|
+
padding: spacers.getSpacer(s) spacers.getSpacer(s) spacers.getSpacer(m);
|
|
31
31
|
|
|
32
32
|
&--close {
|
|
33
33
|
padding-right: 0;
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
&__link {
|
|
42
42
|
all: unset;
|
|
43
43
|
|
|
44
|
-
@include anchorlink;
|
|
44
|
+
@include anchorlink.anchorlink;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&__close {
|
|
48
48
|
order: 2;
|
|
49
|
-
padding: getSpacer(2xs) getSpacer(2xs) 0 0;
|
|
49
|
+
padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) 0 0;
|
|
50
50
|
}
|
|
51
51
|
}
|