@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,14 +1,14 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
3
|
+
@import '../../scss/palette';
|
|
4
|
+
@import '../../scss/spacers';
|
|
5
|
+
@import '../../scss/font-mixins';
|
|
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 $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:
|
|
23
|
+
border-bottom: 1px solid $neutral500;
|
|
24
|
+
padding: 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:
|
|
29
|
+
padding: getSpacer(s) getSpacer(s) getSpacer(s) getSpacer(2xs);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&:hover,
|
|
33
33
|
&:focus {
|
|
34
|
-
background-color:
|
|
34
|
+
background-color: $neutral100;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&:focus {
|
|
38
38
|
text-decoration: underline;
|
|
39
|
-
outline:
|
|
39
|
+
outline: getSpacer(4xs) solid $black;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&[aria-expanded='true'] {
|
|
43
|
-
background-color:
|
|
43
|
+
background-color: $neutral100;
|
|
44
44
|
border-bottom: none;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@media print {
|
|
48
48
|
&--print {
|
|
49
|
-
background-color:
|
|
49
|
+
background-color: $neutral100;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&--2-and-lower {
|
|
54
|
-
padding:
|
|
54
|
+
padding: getSpacer(2xs) 0;
|
|
55
55
|
|
|
56
56
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
57
|
-
padding:
|
|
57
|
+
padding: getSpacer(xs) getSpacer(s) getSpacer(xs) getSpacer(2xs);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -63,19 +63,19 @@
|
|
|
63
63
|
margin: 0;
|
|
64
64
|
|
|
65
65
|
&--1 {
|
|
66
|
-
@include
|
|
66
|
+
@include title2;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&--2 {
|
|
70
|
-
@include
|
|
70
|
+
@include title3;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&--3 {
|
|
74
|
-
@include
|
|
74
|
+
@include title4;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&--4-and-lower {
|
|
78
|
-
@include
|
|
78
|
+
@include 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:
|
|
100
|
-
padding-left:
|
|
101
|
-
padding-bottom:
|
|
98
|
+
border-bottom: 1px solid $neutral500;
|
|
99
|
+
padding-top: getSpacer(m);
|
|
100
|
+
padding-left: getSpacer(2xs);
|
|
101
|
+
padding-bottom: getSpacer(m);
|
|
102
102
|
|
|
103
103
|
&--1 {
|
|
104
|
-
padding-top:
|
|
104
|
+
padding-top: 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:
|
|
110
|
+
padding-left: 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:
|
|
116
|
+
padding-left: getSpacer(xl);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&__icon {
|
|
122
|
-
margin-left:
|
|
122
|
+
margin-left: getSpacer(s);
|
|
123
123
|
|
|
124
124
|
&--2-and-lower {
|
|
125
|
-
margin-left:
|
|
125
|
+
margin-left: getSpacer(xs);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
129
129
|
margin-left: 0;
|
|
130
|
-
margin-right:
|
|
130
|
+
margin-right: getSpacer(s);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&--3-and-lower {
|
|
134
134
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
135
|
-
margin-right:
|
|
135
|
+
margin-right: getSpacer(xs);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@import '../../scss/palette';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/font-mixins';
|
|
3
4
|
|
|
4
5
|
.expanderhierarchy {
|
|
5
6
|
list-style: none;
|
|
@@ -7,10 +8,10 @@
|
|
|
7
8
|
margin: 0;
|
|
8
9
|
|
|
9
10
|
&--2 {
|
|
10
|
-
margin-top:
|
|
11
|
+
margin-top: getSpacer(xl);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
&--3-and-lower {
|
|
14
|
-
margin-top:
|
|
15
|
+
margin-top: getSpacer(m);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/font-settings';
|
|
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:
|
|
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;
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
outline: none;
|
|
133
133
|
|
|
134
134
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
135
|
-
font-size: font-
|
|
136
|
-
line-height:
|
|
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
18
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
19
|
-
font-size: font-
|
|
20
|
-
line-height:
|
|
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
22
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
23
|
-
gap:
|
|
24
|
-
font-size: font-
|
|
25
|
-
line-height:
|
|
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,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@use '../../scss/breakpoints' as *;
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
5
4
|
@import '../../scss/grid';
|
|
5
|
+
@import '../../scss/screen-reader';
|
|
6
6
|
@import '../../scss/supernova/styles/colors';
|
|
7
7
|
|
|
8
8
|
@mixin content-wrapper-with-icon-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 *;
|
|
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
|
|