@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,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 '../../scss/screen-reader';
|
|
7
7
|
|
|
8
8
|
$status-dot-size: 0.937rem;
|
|
9
9
|
|
|
@@ -11,17 +11,17 @@ $status-dot-size: 0.937rem;
|
|
|
11
11
|
position: relative;
|
|
12
12
|
display: inline-flex;
|
|
13
13
|
align-items: flex-start;
|
|
14
|
-
font-size: font-
|
|
14
|
+
font-size: $font-size-xs;
|
|
15
15
|
line-height: 1.4rem;
|
|
16
16
|
font-weight: 400;
|
|
17
17
|
|
|
18
|
-
@media (min-width: map.get(
|
|
19
|
-
font-size: font-
|
|
18
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
19
|
+
font-size: $font-size-sm;
|
|
20
20
|
line-height: 1.6rem;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&--cancelled {
|
|
24
|
-
color:
|
|
24
|
+
color: $cherry600;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&__dot {
|
|
@@ -29,53 +29,53 @@ $status-dot-size: 0.937rem;
|
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
position: relative;
|
|
32
|
-
top:
|
|
33
|
-
margin-right:
|
|
32
|
+
top: getSpacer(4xs);
|
|
33
|
+
margin-right: getSpacer(2xs);
|
|
34
34
|
border-radius: 10rem;
|
|
35
35
|
width: $status-dot-size;
|
|
36
36
|
height: $status-dot-size;
|
|
37
37
|
min-width: $status-dot-size;
|
|
38
38
|
min-height: $status-dot-size;
|
|
39
39
|
|
|
40
|
-
@media (min-width: map.get(
|
|
41
|
-
top:
|
|
40
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
41
|
+
top: getSpacer(3xs);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&--info {
|
|
45
|
-
background:
|
|
45
|
+
background: $kiwi900;
|
|
46
46
|
}
|
|
47
47
|
&--info#{&}--on-dark {
|
|
48
|
-
background:
|
|
48
|
+
background: $kiwi400;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&--warning {
|
|
52
|
-
background:
|
|
52
|
+
background: $banana400;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&--alert,
|
|
56
56
|
&--cancelled {
|
|
57
|
-
background:
|
|
57
|
+
background: $cherry500;
|
|
58
58
|
}
|
|
59
59
|
&--alert#{&}--on-dark {
|
|
60
|
-
background:
|
|
60
|
+
background: $cherry300;
|
|
61
61
|
}
|
|
62
62
|
&--cancelled#{&}--on-dark {
|
|
63
|
-
outline: 2px solid
|
|
63
|
+
outline: 2px solid $white;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&--active {
|
|
67
|
-
background:
|
|
67
|
+
background: $blueberry500;
|
|
68
68
|
}
|
|
69
69
|
&--active#{&}--on-dark {
|
|
70
|
-
background:
|
|
70
|
+
background: $blueberry300;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&--transparent {
|
|
74
|
-
border: 2px solid
|
|
74
|
+
border: 2px solid $neutral600;
|
|
75
75
|
}
|
|
76
76
|
&--transparent#{&}--on-dark {
|
|
77
77
|
border: none;
|
|
78
|
-
background:
|
|
78
|
+
background: $white;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
svg {
|
|
@@ -85,7 +85,7 @@ $status-dot-size: 0.937rem;
|
|
|
85
85
|
|
|
86
86
|
&__label {
|
|
87
87
|
&--on-dark {
|
|
88
|
-
color:
|
|
88
|
+
color: $white;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
3
|
|
|
4
4
|
.step {
|
|
5
5
|
&__stepper {
|
|
6
|
-
margin-bottom:
|
|
6
|
+
margin-bottom: getSpacer(m);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
&__content {
|
|
10
|
-
margin-bottom:
|
|
10
|
+
margin-bottom: getSpacer(s);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/screen-reader';
|
|
6
6
|
|
|
7
7
|
.stepbuttons {
|
|
8
|
-
margin-top:
|
|
9
|
-
margin-bottom:
|
|
8
|
+
margin-top: getSpacer(m);
|
|
9
|
+
margin-bottom: getSpacer(s);
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-wrap: wrap;
|
|
12
|
-
gap:
|
|
12
|
+
gap: getSpacer(m) getSpacer(l);
|
|
13
13
|
|
|
14
14
|
&--has-sticky-buttons {
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: $white;
|
|
16
16
|
position: sticky;
|
|
17
17
|
bottom: 0;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&__buttons {
|
|
21
21
|
display: flex;
|
|
22
|
-
gap:
|
|
22
|
+
gap: getSpacer(s);
|
|
23
23
|
|
|
24
|
-
@media (max-width: map.get(
|
|
24
|
+
@media (max-width: map.get($grid-max-breakpoints, xs)) {
|
|
25
25
|
width: 100%;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
&__button {
|
|
34
34
|
&--back,
|
|
35
35
|
&--forward {
|
|
36
|
-
@media (max-width: map.get(
|
|
36
|
+
@media (max-width: map.get($grid-max-breakpoints, xs)) {
|
|
37
37
|
width: 50%;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
3
|
+
@import '../../scss/spacers';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
6
|
|
|
7
7
|
.stepper-wrapper {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
min-height:
|
|
10
|
+
min-height: getSpacer(l);
|
|
11
11
|
|
|
12
|
-
@media (min-width: map.get(
|
|
13
|
-
min-height:
|
|
12
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
13
|
+
min-height: getSpacer(xl);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -47,15 +47,7 @@ $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:
|
|
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;
|
|
50
|
+
background: linear-gradient(to right, $blueberry600, $blueberry600 $dot-offset, $blueberry50 $dot-offset, $blueberry50), $blueberry600;
|
|
59
51
|
background-repeat: no-repeat;
|
|
60
52
|
|
|
61
53
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -67,8 +59,8 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
67
59
|
width: $marker-size;
|
|
68
60
|
height: $marker-size;
|
|
69
61
|
top: calc(($stepper-height - $marker-size) / 2);
|
|
70
|
-
background-color:
|
|
71
|
-
border: 6px solid
|
|
62
|
+
background-color: $white;
|
|
63
|
+
border: 6px solid $blueberry600;
|
|
72
64
|
border-radius: 50%;
|
|
73
65
|
|
|
74
66
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -79,11 +71,11 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
79
71
|
&__number {
|
|
80
72
|
min-width: 2.5rem;
|
|
81
73
|
text-align: right;
|
|
82
|
-
margin-left:
|
|
83
|
-
font-size: font-
|
|
84
|
-
line-height:
|
|
74
|
+
margin-left: getSpacer(xs);
|
|
75
|
+
font-size: $font-size-xs;
|
|
76
|
+
line-height: $lineheight-size-xs;
|
|
85
77
|
font-weight: 700;
|
|
86
|
-
color:
|
|
78
|
+
color: $blueberry700;
|
|
87
79
|
}
|
|
88
80
|
|
|
89
81
|
&__dot {
|
|
@@ -91,7 +83,7 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
91
83
|
top: calc(($stepper-height - $dot-size) / 2);
|
|
92
84
|
width: $dot-size;
|
|
93
85
|
height: $dot-size;
|
|
94
|
-
background-color:
|
|
86
|
+
background-color: $blueberry600;
|
|
95
87
|
border-radius: 50%;
|
|
96
88
|
|
|
97
89
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -99,7 +91,7 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
|
|
|
99
91
|
}
|
|
100
92
|
|
|
101
93
|
&--completed {
|
|
102
|
-
background-color:
|
|
94
|
+
background-color: $blueberry50;
|
|
103
95
|
}
|
|
104
96
|
|
|
105
97
|
&--left {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '../../scss/
|
|
2
|
-
@
|
|
1
|
+
@use '../../scss/supernova/styles/colors' as *;
|
|
2
|
+
@use '../../scss/font-settings' as fonts;
|
|
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: fonts.$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
|
-
@use '../../scss/palette' as palette;
|
|
6
|
-
@use '../../scss/font-settings' as font-settings;
|
|
4
|
+
@import '../../scss/spacers';
|
|
7
5
|
@import '../../scss/breakpoints';
|
|
6
|
+
@import '../../scss/palette';
|
|
7
|
+
@import '../../scss/font-settings';
|
|
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: $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 $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 $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 $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 $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: $blueberry50;
|
|
157
157
|
|
|
158
158
|
&--normal {
|
|
159
|
-
background:
|
|
159
|
+
background: $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: $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: font-
|
|
188
|
-
line-height:
|
|
187
|
+
font-size: $font-size-sm;
|
|
188
|
+
line-height: $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 $neutral500;
|
|
194
194
|
|
|
195
195
|
&--sortable {
|
|
196
196
|
position: relative;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
&--sortable:hover {
|
|
200
|
-
background-color:
|
|
200
|
+
background-color: $blueberry100;
|
|
201
201
|
cursor: pointer;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
&--sortable:focus-within {
|
|
205
|
-
outline: 3px solid
|
|
205
|
+
outline: 3px solid $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: font-
|
|
213
|
-
line-height:
|
|
212
|
+
font-size: $font-size-md;
|
|
213
|
+
line-height: $lineheight-size-sm;
|
|
214
214
|
font-weight: 700;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
&--compact {
|
|
218
|
-
padding:
|
|
218
|
+
padding: getSpacer(2xs) getSpacer(3xs) 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:
|
|
224
|
+
padding: getSpacer(s) getSpacer(3xs) getSpacer(3xs);
|
|
225
225
|
line-height: 20px;
|
|
226
|
-
font-size: font-
|
|
226
|
+
font-size: $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: font-
|
|
238
|
+
font-size: $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 $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: font-
|
|
259
|
+
font-size: $font-size-sm;
|
|
260
260
|
line-height: 1.75rem;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
&--compact {
|
|
264
|
-
padding:
|
|
264
|
+
padding: getSpacer(4xs) getSpacer(3xs);
|
|
265
265
|
font-size: 14px;
|
|
266
266
|
|
|
267
267
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
268
|
-
padding:
|
|
269
|
-
font-size: font-
|
|
268
|
+
padding: getSpacer(3xs);
|
|
269
|
+
font-size: $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
|
|
277
|
+
padding: 0 getSpacer(3xs);
|
|
278
278
|
vertical-align: middle;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.table__row--expandable {
|
|
282
282
|
&--selected {
|
|
283
|
-
background:
|
|
283
|
+
background: $neutral100;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
&:hover {
|
|
287
287
|
cursor: pointer;
|
|
288
|
-
background:
|
|
288
|
+
background: $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 $neutral100;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../../scss/breakpoints' as breakpoints;
|
|
3
2
|
@import '../../../scss/supernova/styles/colors';
|
|
3
|
+
@import '../../../scss/breakpoints';
|
|
4
4
|
|
|
5
5
|
.tab-list {
|
|
6
6
|
$tab-list: &;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
display: none; /* Safari */
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media (min-width: map.get(
|
|
28
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
29
29
|
padding-left: 0;
|
|
30
30
|
padding-right: 0;
|
|
31
31
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
2
|
+
@import '../../../scss/spacers';
|
|
3
|
+
@import '../../../scss/palette';
|
|
4
|
+
@import '../../../scss/breakpoints';
|
|
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:
|
|
11
|
+
padding: getSpacer(l) getSpacer(s) getSpacer(xl);
|
|
12
12
|
width: 100%;
|
|
13
13
|
border-bottom: 1px solid var(--color-action-border-onlight-focus);
|
|
14
14
|
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
@media (min-width: map.get(
|
|
21
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
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:
|
|
25
|
+
padding: getSpacer(xl) getSpacer(m) getSpacer(2xl);
|
|
26
26
|
|
|
27
27
|
&#{$tab-panel}--first {
|
|
28
28
|
border-radius: 0;
|
|
29
29
|
|
|
30
|
-
@media (min-width: map.get(
|
|
30
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
31
31
|
border-radius: 0 0 0.5rem 0.5rem;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@import '../../scss/
|
|
2
|
+
@import '../../scss/supernova/styles/colors';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
4
|
|
|
5
5
|
.tab-list-wrapper {
|
|
6
6
|
position: relative;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
border-radius: 0;
|
|
22
22
|
height: 50px;
|
|
23
23
|
|
|
24
|
-
@media (min-width: map.get(
|
|
24
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
25
25
|
border-right: 1px solid var(--color-action-border-onlight-focus);
|
|
26
26
|
border-left: 1px solid var(--color-action-border-onlight-focus);
|
|
27
27
|
height: 50px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
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(palette
|
|
32
|
-
border-color: map.get(palette
|
|
31
|
+
color: map.get($palette-map, #{$color}900);
|
|
32
|
+
border-color: map.get($palette-map, #{$color}300);
|
|
33
33
|
} @else if $color == 'kiwi' {
|
|
34
|
-
color: map.get(palette
|
|
35
|
-
border-color: map.get(palette
|
|
34
|
+
color: map.get($palette-map, #{$color}900);
|
|
35
|
+
border-color: map.get($palette-map, #{$color}200);
|
|
36
36
|
} @else {
|
|
37
|
-
color: map.get(palette
|
|
38
|
-
border-color: map.get(palette
|
|
37
|
+
color: map.get($palette-map, #{$color}800);
|
|
38
|
+
border-color: map.get($palette-map, #{$color}200);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&#{$tag}--emphasised {
|
|
42
|
-
background-color: map.get(palette
|
|
42
|
+
background-color: map.get($palette-map, #{$color}50);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&--medium {
|
|
48
|
-
padding: 0
|
|
48
|
+
padding: 0 getSpacer(xs);
|
|
49
49
|
min-height: 1.625rem;
|
|
50
50
|
|
|
51
51
|
&#{$tag}--has-icon {
|
|
52
|
-
padding: 0
|
|
52
|
+
padding: 0 getSpacer(xs) 0 0.375rem;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
#{$tag}__icon {
|
|
56
|
-
margin-right:
|
|
56
|
+
margin-right: getSpacer(4xs);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&--large {
|
|
61
|
-
padding: 0
|
|
61
|
+
padding: 0 getSpacer(xs);
|
|
62
62
|
min-height: 1.875rem;
|
|
63
63
|
|
|
64
64
|
&#{$tag}--has-icon {
|
|
65
|
-
padding:
|
|
65
|
+
padding: getSpacer(4xs) getSpacer(xs) getSpacer(4xs) 0.375rem;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
#{$tag}__icon {
|
|
69
|
-
margin-right:
|
|
69
|
+
margin-right: getSpacer(4xs);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@import '../../scss/spacers';
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
3
|
+
@import '../../scss/palette';
|
|
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:
|
|
10
|
+
gap: getSpacer(2xs);
|
|
11
11
|
|
|
12
12
|
&__item {
|
|
13
13
|
all: unset;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
1
|
+
@import '../../scss/spacers';
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
3
|
+
@import '../../scss/palette';
|
|
4
|
+
@import '../../scss/input';
|
|
5
|
+
@import '../../scss/font-mixins';
|
|
6
6
|
|
|
7
7
|
.textarea {
|
|
8
|
-
@include input
|
|
8
|
+
@include input-wrapper;
|
|
9
9
|
|
|
10
10
|
&--gutterBottom {
|
|
11
|
-
margin-bottom:
|
|
11
|
+
margin-bottom: getSpacer(s);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.input-container {
|
|
16
|
-
@include input
|
|
16
|
+
@include input-container;
|
|
17
17
|
|
|
18
18
|
&__input {
|
|
19
|
-
@include
|
|
19
|
+
@include input-text;
|
|
20
20
|
|
|
21
21
|
height: auto;
|
|
22
22
|
padding: 16px;
|