@helsenorge/designsystem-react 10.6.1 → 10.6.3
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 +15 -0
- package/components/AnchorLink/styles.module.scss +9 -7
- package/components/Avatar/styles.module.scss +9 -9
- package/components/Badge/styles.module.scss +9 -9
- package/components/Button/styles.module.scss +71 -77
- package/components/Checkbox/styles.module.scss +104 -104
- package/components/Chip/styles.module.scss +22 -21
- package/components/Close/styles.module.scss +5 -5
- package/components/DictionaryTrigger/styles.module.scss +5 -5
- package/components/Drawer/styles.module.scss +27 -27
- package/components/Dropdown/styles.module.scss +55 -55
- package/components/Duolist/styles.module.scss +4 -5
- package/components/EmptyState/styles.module.scss +16 -16
- package/components/ErrorWrapper/styles.module.scss +2 -2
- package/components/Expander/styles.module.scss +53 -53
- package/components/ExpanderHierarchy/expander.module.scss +35 -35
- package/components/ExpanderHierarchy/styles.module.scss +5 -4
- package/components/ExpanderList/index.js +12 -5
- package/components/ExpanderList/index.js.map +1 -1
- package/components/ExpanderList/styles.module.scss +32 -32
- 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 +14 -14
- package/components/HelpPanel/styles.module.scss +2 -2
- package/components/HelpQuestion/styles.module.scss +20 -20
- package/components/HighlightPanel/styles.module.scss +20 -20
- package/components/HorizontalScroll/styles.module.scss +3 -4
- package/components/Input/styles.module.scss +14 -14
- package/components/Label/styles.module.scss +16 -16
- package/components/LinkList/styles.module.scss +35 -35
- package/components/ListHeader/styles.module.scss +8 -8
- package/components/Loader/styles.module.scss +14 -14
- package/components/MaxCharacters/styles.module.scss +12 -12
- package/components/Modal/styles.module.scss +49 -49
- package/components/NotificationPanel/styles.module.scss +40 -40
- package/components/Panel/styles.module.scss +60 -60
- package/components/PanelList/styles.module.scss +6 -6
- package/components/PopMenu/styles.module.scss +16 -16
- package/components/PopOver/styles.module.scss +15 -14
- package/components/PopOver/styles.module.scss.d.ts +3 -0
- package/components/Progressbar/styles.module.scss +4 -4
- package/components/PromoPanel/styles.module.scss +31 -31
- package/components/RadioButton/styles.module.scss +100 -100
- package/components/Select/styles.module.scss +23 -23
- package/components/ServiceMessage/styles.module.scss +48 -48
- package/components/SharingStatus/styles.module.scss +13 -13
- package/components/Slider/styles.module.scss +25 -25
- package/components/Spacer/styles.module.scss +14 -14
- package/components/StatusDot/styles.module.scss +24 -24
- package/components/Step/styles.module.scss +3 -3
- package/components/StepButtons/styles.module.scss +11 -11
- package/components/Stepper/styles.module.scss +16 -24
- package/components/StickyNote/styles.module.scss +3 -3
- package/components/Table/styles.module.scss +31 -31
- package/components/Tabs/TabList/styles.module.scss +2 -2
- package/components/Tabs/TabPanel/styles.module.scss +7 -7
- package/components/Tabs/styles.module.scss +3 -3
- 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 +31 -31
- package/components/Title/styles.module.scss +8 -8
- package/components/Toggle/styles.module.scss +18 -18
- package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
- package/components/Trigger/styles.module.scss +21 -21
- package/components/Validation/styles.module.scss +11 -11
- package/hooks/useBreakpoint.js +3 -1
- package/hooks/useBreakpoint.js.map +1 -1
- package/package.json +1 -1
- package/scss/_body.scss +6 -5
- package/scss/_breakpoints.scss +2 -2
- package/scss/_font-mixins.scss +22 -22
- package/scss/_fonts.scss +2 -0
- package/scss/_input.scss +51 -54
- package/scss/_print.scss +5 -5
- package/scss/_reset.scss +1 -1
- package/scss/helsenorge.scss +7 -7
- package/scss/layout.module.scss +2 -2
- package/scss/typography.module.scss +46 -47
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@import '../../scss/supernova/styles/colors
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/font-settings';
|
|
5
|
+
@import '../../scss/supernova/styles/colors';
|
|
6
6
|
|
|
7
7
|
.expander-list {
|
|
8
8
|
list-style: none;
|
|
@@ -46,42 +46,42 @@
|
|
|
46
46
|
background-color: var(--color-base-background-white);
|
|
47
47
|
|
|
48
48
|
&--white {
|
|
49
|
-
border-top:
|
|
50
|
-
border-left:
|
|
51
|
-
border-right:
|
|
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;
|
|
52
52
|
|
|
53
53
|
&:last-of-type {
|
|
54
|
-
border-bottom:
|
|
54
|
+
border-bottom: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&--blueberry {
|
|
59
|
-
border-top:
|
|
60
|
-
border-left:
|
|
61
|
-
border-right:
|
|
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;
|
|
62
62
|
|
|
63
63
|
&:last-of-type {
|
|
64
|
-
border-bottom:
|
|
64
|
+
border-bottom: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&--cherry {
|
|
69
|
-
border-top:
|
|
70
|
-
border-left:
|
|
71
|
-
border-right:
|
|
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;
|
|
72
72
|
|
|
73
73
|
&:last-of-type {
|
|
74
|
-
border-bottom:
|
|
74
|
+
border-bottom: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&--neutral {
|
|
79
|
-
border-top:
|
|
80
|
-
border-left:
|
|
81
|
-
border-right:
|
|
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;
|
|
82
82
|
|
|
83
83
|
&:last-of-type {
|
|
84
|
-
border-bottom:
|
|
84
|
+
border-bottom: 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: font-
|
|
121
|
-
line-height:
|
|
120
|
+
font-size: $font-size-sm;
|
|
121
|
+
line-height: $lineheight-size-sm;
|
|
122
122
|
display: flex;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
font-family: inherit;
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
width: 100%;
|
|
132
132
|
outline: none;
|
|
133
133
|
|
|
134
|
-
@media (min-width: map.get(
|
|
135
|
-
font-size: font-
|
|
136
|
-
line-height:
|
|
134
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
135
|
+
font-size: $font-size-md;
|
|
136
|
+
line-height: $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:
|
|
145
|
+
margin-top: 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:
|
|
153
|
+
margin-bottom: 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: font-
|
|
241
|
-
line-height:
|
|
240
|
+
font-size: $font-size-lg;
|
|
241
|
+
line-height: $lineheight-size-lg;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
&__icon {
|
|
245
245
|
display: flex;
|
|
246
246
|
align-items: center;
|
|
247
|
-
margin-right:
|
|
247
|
+
margin-right: 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:
|
|
254
|
+
padding-left: getSpacer(2xs);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
&__main-content {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
&--padding {
|
|
270
|
-
padding:
|
|
270
|
+
padding: getSpacer(xs) getSpacer(s) getSpacer(l);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
1
|
+
@import '../../scss/spacers';
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
3
|
+
@import '../../scss/palette';
|
|
4
|
+
@import '../../scss/font-mixins';
|
|
5
5
|
|
|
6
6
|
.form-group-wrapper {
|
|
7
7
|
&__title {
|
|
8
8
|
&--on-dark {
|
|
9
|
-
color:
|
|
9
|
+
color: $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:
|
|
24
|
+
gap: getSpacer(s);
|
|
25
25
|
|
|
26
26
|
> div {
|
|
27
27
|
padding-bottom: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__legend {
|
|
31
|
-
margin-bottom:
|
|
31
|
+
margin-bottom: getSpacer(m);
|
|
32
32
|
margin-top: 0;
|
|
33
33
|
|
|
34
|
-
@include
|
|
34
|
+
@include legend;
|
|
35
35
|
|
|
36
36
|
&--on-dark {
|
|
37
|
-
color:
|
|
37
|
+
color: $white;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
@
|
|
1
|
+
@import '../../scss/spacers';
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
2
3
|
|
|
3
4
|
.form-layout-container {
|
|
4
|
-
// Settes med harde verdier fordi calc() lenger nede ikke støtter
|
|
5
|
+
// Settes med harde verdier fordi calc() lenger nede ikke støtter getSpacer()
|
|
5
6
|
--column-gap: 2rem;
|
|
6
7
|
|
|
7
8
|
display: flex;
|
|
8
9
|
flex-wrap: wrap;
|
|
9
|
-
gap:
|
|
10
|
+
gap: getSpacer(s) var(--column-gap);
|
|
10
11
|
|
|
11
12
|
&--large {
|
|
12
|
-
row-gap:
|
|
13
|
+
row-gap: getSpacer(2xs);
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
|
+
@import '../AnchorLink/styles.module';
|
|
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: font-
|
|
16
|
-
line-height:
|
|
15
|
+
font-size: $font-size-sm;
|
|
16
|
+
line-height: $lineheight-size-sm;
|
|
17
17
|
|
|
18
|
-
@media (min-width: map.get(
|
|
19
|
-
font-size: font-
|
|
20
|
-
line-height:
|
|
18
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
19
|
+
font-size: $font-size-md;
|
|
20
|
+
line-height: $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:
|
|
30
|
-
padding:
|
|
29
|
+
row-gap: getSpacer(2xs);
|
|
30
|
+
padding: getSpacer(s) getSpacer(s) 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;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&__close {
|
|
48
48
|
order: 2;
|
|
49
|
-
padding:
|
|
49
|
+
padding: getSpacer(2xs) getSpacer(2xs) 0 0;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1,49 +1,49 @@
|
|
|
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
|
.helpquestion {
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
text-align: left;
|
|
11
|
-
gap:
|
|
12
|
-
padding:
|
|
11
|
+
gap: getSpacer(2xs);
|
|
12
|
+
padding: getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(3xs);
|
|
13
13
|
border: 0;
|
|
14
14
|
outline: none;
|
|
15
15
|
background-color: transparent;
|
|
16
16
|
cursor: pointer;
|
|
17
|
-
color:
|
|
17
|
+
color: $plum600;
|
|
18
18
|
font-weight: 600;
|
|
19
|
-
font-size: font-
|
|
20
|
-
line-height:
|
|
19
|
+
font-size: $font-size-sm;
|
|
20
|
+
line-height: $lineheight-size-xs;
|
|
21
21
|
|
|
22
|
-
@media (min-width: map.get(
|
|
23
|
-
gap:
|
|
24
|
-
font-size: font-
|
|
25
|
-
line-height:
|
|
22
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
23
|
+
gap: getSpacer(2xs);
|
|
24
|
+
font-size: $font-size-md;
|
|
25
|
+
line-height: $lineheight-size-sm;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&:hover {
|
|
29
|
-
color:
|
|
30
|
-
background-color: rgba(
|
|
29
|
+
color: $plum800;
|
|
30
|
+
background-color: rgba($plum600, 0.1);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&:focus-visible {
|
|
34
|
-
box-shadow: inset 0 0 0 3px
|
|
34
|
+
box-shadow: inset 0 0 0 3px $black;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&--selected {
|
|
38
|
-
color:
|
|
39
|
-
background-color: rgba(
|
|
38
|
+
color: $plum800;
|
|
39
|
+
background-color: rgba($plum600, 0.1);
|
|
40
40
|
|
|
41
41
|
&:hover {
|
|
42
|
-
background-color: rgba(
|
|
42
|
+
background-color: rgba($plum600, 0.2);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&:focus-visible {
|
|
46
|
-
background-color: rgba(
|
|
46
|
+
background-color: rgba($plum600, 0.1);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@use '../../scss/screen-reader' as *;
|
|
2
|
+
@import '../../scss/spacers';
|
|
4
3
|
@import '../../scss/breakpoints';
|
|
5
4
|
@import '../../scss/grid';
|
|
6
|
-
@import '../../scss/
|
|
5
|
+
@import '../../scss/screen-reader';
|
|
6
|
+
@import '../../scss/supernova/styles/colors';
|
|
7
7
|
|
|
8
8
|
@mixin content-wrapper-with-icon-flex {
|
|
9
9
|
display: flex;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@mixin content-wrapper-with-icon-padding {
|
|
20
|
-
padding-top:
|
|
20
|
+
padding-top: getSpacer(m);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.highlightpanel {
|
|
@@ -48,35 +48,35 @@
|
|
|
48
48
|
|
|
49
49
|
&--large {
|
|
50
50
|
#{$panel}__content-wrapper {
|
|
51
|
-
padding:
|
|
51
|
+
padding: getSpacer(m) getSpacer(s) getSpacer(l);
|
|
52
52
|
|
|
53
53
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
54
|
-
padding-top:
|
|
55
|
-
padding-bottom:
|
|
54
|
+
padding-top: getSpacer(l);
|
|
55
|
+
padding-bottom: getSpacer(xl);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&--medium {
|
|
61
61
|
#{$panel}__content-wrapper {
|
|
62
|
-
padding:
|
|
62
|
+
padding: getSpacer(m) getSpacer(s) getSpacer(l);
|
|
63
63
|
|
|
64
64
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
65
|
-
padding:
|
|
65
|
+
padding: getSpacer(m) getSpacer(m) getSpacer(l);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
69
|
-
padding:
|
|
69
|
+
padding: getSpacer(l);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// fluid skal ha bakgrunnsfarge på den ytre containeren
|
|
75
75
|
&--fluid {
|
|
76
|
-
padding:
|
|
76
|
+
padding: getSpacer(m) getSpacer(s) getSpacer(l);
|
|
77
77
|
|
|
78
78
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
79
|
-
padding:
|
|
79
|
+
padding: getSpacer(m) getSpacer(m) getSpacer(l);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
@each $color in $colors {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
@include content-wrapper-with-icon-flex-responsive;
|
|
99
99
|
|
|
100
100
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
101
|
-
padding-left:
|
|
101
|
+
padding-left: getSpacer(m);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -112,17 +112,17 @@
|
|
|
112
112
|
@include content-wrapper-with-icon-padding;
|
|
113
113
|
|
|
114
114
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
115
|
-
padding-left:
|
|
115
|
+
padding-left: getSpacer(s);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
119
|
-
padding-left:
|
|
119
|
+
padding-left: getSpacer(m);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
123
123
|
padding-left: 0;
|
|
124
|
-
padding-top:
|
|
125
|
-
padding-bottom:
|
|
124
|
+
padding-top: getSpacer(l);
|
|
125
|
+
padding-bottom: getSpacer(xl);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
display: flex;
|
|
135
135
|
justify-content: flex-end;
|
|
136
136
|
margin-right: 0;
|
|
137
|
-
padding-right:
|
|
137
|
+
padding-right: getSpacer(s);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
|
|
161
161
|
&__icon {
|
|
162
162
|
display: inline-flex;
|
|
163
|
-
margin-right:
|
|
164
|
-
margin-bottom:
|
|
163
|
+
margin-right: getSpacer(s);
|
|
164
|
+
margin-bottom: getSpacer(2xs);
|
|
165
165
|
|
|
166
166
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
167
167
|
margin-bottom: 0;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@use '../../scss/breakpoints' as breakpoints;
|
|
1
|
+
@import '../../scss/breakpoints';
|
|
2
|
+
@import '../../scss/palette';
|
|
4
3
|
|
|
5
4
|
// Disables fordi stylelint og prettier er uenige
|
|
6
5
|
/* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
|
|
@@ -16,7 +15,7 @@ $gradient:
|
|
|
16
15
|
display: flex;
|
|
17
16
|
|
|
18
17
|
&:focus-visible {
|
|
19
|
-
outline:
|
|
18
|
+
outline: getSpacer(4xs) solid $black;
|
|
20
19
|
outline-offset: -1px;
|
|
21
20
|
}
|
|
22
21
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/input';
|
|
6
|
+
@import '../../scss/font-mixins';
|
|
7
7
|
|
|
8
8
|
.input-wrapper {
|
|
9
|
-
@include input
|
|
9
|
+
@include input-wrapper;
|
|
10
10
|
|
|
11
|
-
margin:
|
|
11
|
+
margin: getSpacer(l) 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.input-wrapper:first-of-type {
|
|
@@ -37,34 +37,34 @@
|
|
|
37
37
|
padding: 0.5rem 0;
|
|
38
38
|
align-items: center;
|
|
39
39
|
|
|
40
|
-
@include input
|
|
40
|
+
@include input-container;
|
|
41
41
|
|
|
42
42
|
&--with-icon {
|
|
43
43
|
padding: 1px 0;
|
|
44
44
|
|
|
45
|
-
@media (min-width: map.get(
|
|
45
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
46
46
|
padding: 0.375rem 0;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&--with-icon#{&}--large {
|
|
51
|
-
padding:
|
|
51
|
+
padding: getSpacer(2xs) 0;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&__input {
|
|
55
|
-
@include
|
|
55
|
+
@include input-text;
|
|
56
56
|
|
|
57
|
-
height:
|
|
57
|
+
height: getSpacer(m);
|
|
58
58
|
|
|
59
59
|
&--large {
|
|
60
60
|
height: 2.5rem;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@media (min-width: map.get(
|
|
63
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
64
64
|
height: 2.125rem;
|
|
65
65
|
|
|
66
66
|
&--large {
|
|
67
|
-
@include
|
|
67
|
+
@include input-text-large;
|
|
68
68
|
|
|
69
69
|
height: 3.5rem;
|
|
70
70
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
|
+
@import '../../scss/font-mixins';
|
|
7
7
|
|
|
8
8
|
.label-wrapper {
|
|
9
|
-
margin-bottom:
|
|
10
|
-
line-height:
|
|
9
|
+
margin-bottom: getSpacer(2xs);
|
|
10
|
+
line-height: $lineheight-size-xs;
|
|
11
11
|
|
|
12
|
-
@media (min-width: map.get(
|
|
13
|
-
line-height:
|
|
12
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
13
|
+
line-height: $lineheight-size-sm;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&--no-bottom-margin {
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.label {
|
|
32
|
-
@include
|
|
32
|
+
@include label;
|
|
33
33
|
|
|
34
34
|
&--subdued {
|
|
35
|
-
@include
|
|
35
|
+
@include label-subdued;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&--on-dark {
|
|
39
|
-
color:
|
|
39
|
+
color: $white;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&::after {
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.sublabel {
|
|
52
|
-
@include
|
|
52
|
+
@include sublabel;
|
|
53
53
|
|
|
54
54
|
&--subdued {
|
|
55
|
-
@include
|
|
55
|
+
@include sublabel-subdued;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&--on-dark {
|
|
59
|
-
color:
|
|
59
|
+
color: $white;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&::after {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.after-label-children {
|
|
68
|
-
padding-left:
|
|
68
|
+
padding-left: getSpacer(xs);
|
|
69
69
|
}
|