@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,49 +1,49 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/font-settings' as font-settings;
|
|
5
|
+
@use '../../scss/breakpoints' as *;
|
|
6
6
|
|
|
7
7
|
.helpquestion {
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
text-align: left;
|
|
11
|
-
gap: getSpacer(2xs);
|
|
12
|
-
padding: getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(3xs);
|
|
11
|
+
gap: spacers.getSpacer(2xs);
|
|
12
|
+
padding: spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(3xs);
|
|
13
13
|
border: 0;
|
|
14
14
|
outline: none;
|
|
15
15
|
background-color: transparent;
|
|
16
16
|
cursor: pointer;
|
|
17
|
-
color:
|
|
17
|
+
color: palette.$plum600;
|
|
18
18
|
font-weight: 600;
|
|
19
|
-
font-size:
|
|
20
|
-
line-height:
|
|
19
|
+
font-size: font-settings.$font-size-sm;
|
|
20
|
+
line-height: font-settings.$lineheight-size-xs;
|
|
21
21
|
|
|
22
22
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
23
|
-
gap: getSpacer(2xs);
|
|
24
|
-
font-size:
|
|
25
|
-
line-height:
|
|
23
|
+
gap: spacers.getSpacer(2xs);
|
|
24
|
+
font-size: font-settings.$font-size-md;
|
|
25
|
+
line-height: font-settings.$lineheight-size-sm;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&:hover {
|
|
29
|
-
color:
|
|
30
|
-
background-color: rgba(
|
|
29
|
+
color: palette.$plum800;
|
|
30
|
+
background-color: rgba(palette.$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 palette.$black;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&--selected {
|
|
38
|
-
color:
|
|
39
|
-
background-color: rgba(
|
|
38
|
+
color: palette.$plum800;
|
|
39
|
+
background-color: rgba(palette.$plum600, 0.1);
|
|
40
40
|
|
|
41
41
|
&:hover {
|
|
42
|
-
background-color: rgba(
|
|
42
|
+
background-color: rgba(palette.$plum600, 0.2);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&:focus-visible {
|
|
46
|
-
background-color: rgba(
|
|
46
|
+
background-color: rgba(palette.$plum600, 0.1);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/screen-reader' as *;
|
|
4
|
+
@use '../../scss/breakpoints' as *;
|
|
4
5
|
@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: getSpacer(m);
|
|
20
|
+
padding-top: spacers.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: getSpacer(m) getSpacer(s) getSpacer(l);
|
|
51
|
+
padding: spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l);
|
|
52
52
|
|
|
53
53
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
54
|
-
padding-top: getSpacer(l);
|
|
55
|
-
padding-bottom: getSpacer(xl);
|
|
54
|
+
padding-top: spacers.getSpacer(l);
|
|
55
|
+
padding-bottom: spacers.getSpacer(xl);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&--medium {
|
|
61
61
|
#{$panel}__content-wrapper {
|
|
62
|
-
padding: getSpacer(m) getSpacer(s) getSpacer(l);
|
|
62
|
+
padding: spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l);
|
|
63
63
|
|
|
64
64
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
65
|
-
padding: getSpacer(m) getSpacer(m) getSpacer(l);
|
|
65
|
+
padding: spacers.getSpacer(m) spacers.getSpacer(m) spacers.getSpacer(l);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
69
|
-
padding: getSpacer(l);
|
|
69
|
+
padding: spacers.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: getSpacer(m) getSpacer(s) getSpacer(l);
|
|
76
|
+
padding: spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l);
|
|
77
77
|
|
|
78
78
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
79
|
-
padding: getSpacer(m) getSpacer(m) getSpacer(l);
|
|
79
|
+
padding: spacers.getSpacer(m) spacers.getSpacer(m) spacers.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: getSpacer(m);
|
|
101
|
+
padding-left: spacers.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: getSpacer(s);
|
|
115
|
+
padding-left: spacers.getSpacer(s);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
119
|
-
padding-left: getSpacer(m);
|
|
119
|
+
padding-left: spacers.getSpacer(m);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
123
123
|
padding-left: 0;
|
|
124
|
-
padding-top: getSpacer(l);
|
|
125
|
-
padding-bottom: getSpacer(xl);
|
|
124
|
+
padding-top: spacers.getSpacer(l);
|
|
125
|
+
padding-bottom: spacers.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: getSpacer(s);
|
|
137
|
+
padding-right: spacers.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: getSpacer(s);
|
|
164
|
-
margin-bottom: getSpacer(2xs);
|
|
163
|
+
margin-right: spacers.getSpacer(s);
|
|
164
|
+
margin-bottom: spacers.getSpacer(2xs);
|
|
165
165
|
|
|
166
166
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
167
167
|
margin-bottom: 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '../../scss/spacers' as spacers;
|
|
2
|
+
@use '../../scss/palette' as palette;
|
|
3
|
+
@use '../../scss/breakpoints' as *;
|
|
3
4
|
|
|
4
5
|
// Disables fordi stylelint og prettier er uenige
|
|
5
6
|
/* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
|
|
@@ -15,7 +16,7 @@ $gradient:
|
|
|
15
16
|
display: flex;
|
|
16
17
|
|
|
17
18
|
&:focus-visible {
|
|
18
|
-
outline: getSpacer(4xs) solid
|
|
19
|
+
outline: spacers.getSpacer(4xs) solid palette.$black;
|
|
19
20
|
outline-offset: -1px;
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -1,14 +1,14 @@
|
|
|
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/input' as input;
|
|
5
|
+
@use '../../scss/font-mixins' as fonts;
|
|
6
|
+
@use '../../scss/breakpoints' as *;
|
|
7
7
|
|
|
8
8
|
.input-wrapper {
|
|
9
|
-
@include input-wrapper;
|
|
9
|
+
@include input.input-wrapper;
|
|
10
10
|
|
|
11
|
-
margin: getSpacer(l) 0;
|
|
11
|
+
margin: spacers.getSpacer(l) 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.input-wrapper:first-of-type {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
padding: 0.5rem 0;
|
|
38
38
|
align-items: center;
|
|
39
39
|
|
|
40
|
-
@include input-container;
|
|
40
|
+
@include input.input-container;
|
|
41
41
|
|
|
42
42
|
&--with-icon {
|
|
43
43
|
padding: 1px 0;
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&--with-icon#{&}--large {
|
|
51
|
-
padding: getSpacer(2xs) 0;
|
|
51
|
+
padding: spacers.getSpacer(2xs) 0;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&__input {
|
|
55
|
-
@include input-text;
|
|
55
|
+
@include fonts.input-text;
|
|
56
56
|
|
|
57
|
-
height: getSpacer(m);
|
|
57
|
+
height: spacers.getSpacer(m);
|
|
58
58
|
|
|
59
59
|
&--large {
|
|
60
60
|
height: 2.5rem;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
height: 2.125rem;
|
|
65
65
|
|
|
66
66
|
&--large {
|
|
67
|
-
@include input-text-large;
|
|
67
|
+
@include fonts.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
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/font-settings' as font-settings;
|
|
5
|
+
@use '../../scss/font-mixins' as fonts;
|
|
6
|
+
@use '../../scss/breakpoints' as *;
|
|
7
7
|
|
|
8
8
|
.label-wrapper {
|
|
9
|
-
margin-bottom: getSpacer(2xs);
|
|
10
|
-
line-height:
|
|
9
|
+
margin-bottom: spacers.getSpacer(2xs);
|
|
10
|
+
line-height: font-settings.$lineheight-size-xs;
|
|
11
11
|
|
|
12
12
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
13
|
-
line-height:
|
|
13
|
+
line-height: font-settings.$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 label;
|
|
32
|
+
@include fonts.label;
|
|
33
33
|
|
|
34
34
|
&--subdued {
|
|
35
|
-
@include label-subdued;
|
|
35
|
+
@include fonts.label-subdued;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&--on-dark {
|
|
39
|
-
color:
|
|
39
|
+
color: palette.$white;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&::after {
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.sublabel {
|
|
52
|
-
@include sublabel;
|
|
52
|
+
@include fonts.sublabel;
|
|
53
53
|
|
|
54
54
|
&--subdued {
|
|
55
|
-
@include sublabel-subdued;
|
|
55
|
+
@include fonts.sublabel-subdued;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&--on-dark {
|
|
59
|
-
color:
|
|
59
|
+
color: palette.$white;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&::after {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.after-label-children {
|
|
68
|
-
padding-left: getSpacer(xs);
|
|
68
|
+
padding-left: spacers.getSpacer(xs);
|
|
69
69
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/font-settings' as font-settings;
|
|
4
|
+
@use '../../scss/palette' as palette;
|
|
5
|
+
@use '../../scss/breakpoints' as *;
|
|
6
6
|
@import '../../scss/supernova/styles/colors';
|
|
7
7
|
|
|
8
8
|
.link-list {
|
|
@@ -22,42 +22,42 @@
|
|
|
22
22
|
|
|
23
23
|
&--outline {
|
|
24
24
|
&--white {
|
|
25
|
-
border-top: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
26
|
-
border-left: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
27
|
-
border-right: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
25
|
+
border-top: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
26
|
+
border-left: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
27
|
+
border-right: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
28
28
|
|
|
29
29
|
&:last-of-type {
|
|
30
|
-
border-bottom: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
30
|
+
border-bottom: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&--blueberry {
|
|
35
|
-
border-top: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
36
|
-
border-left: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
37
|
-
border-right: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
35
|
+
border-top: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
36
|
+
border-left: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
37
|
+
border-right: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
38
38
|
|
|
39
39
|
&:last-of-type {
|
|
40
|
-
border-bottom: getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
40
|
+
border-bottom: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&--cherry {
|
|
45
|
-
border-top: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
46
|
-
border-left: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
47
|
-
border-right: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
45
|
+
border-top: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
46
|
+
border-left: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
47
|
+
border-right: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
48
48
|
|
|
49
49
|
&:last-of-type {
|
|
50
|
-
border-bottom: getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
50
|
+
border-bottom: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&--neutral {
|
|
55
|
-
border-top: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
56
|
-
border-left: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
57
|
-
border-right: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
55
|
+
border-top: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
56
|
+
border-left: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
57
|
+
border-right: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
58
58
|
|
|
59
59
|
&:last-of-type {
|
|
60
|
-
border-bottom: getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
60
|
+
border-bottom: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
&--fill,
|
|
102
102
|
&--fill-negative {
|
|
103
|
-
margin-top: getSpacer(s);
|
|
103
|
+
margin-top: spacers.getSpacer(s);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
&--fill-negative {
|
|
@@ -108,34 +108,34 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&--small {
|
|
111
|
-
font-size:
|
|
112
|
-
line-height:
|
|
111
|
+
font-size: font-settings.$font-size-xs;
|
|
112
|
+
line-height: font-settings.$lineheight-size-xs;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
&--medium {
|
|
116
|
-
font-size:
|
|
117
|
-
line-height:
|
|
116
|
+
font-size: font-settings.$font-size-sm;
|
|
117
|
+
line-height: font-settings.$lineheight-size-sm;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
&--large {
|
|
121
|
-
font-size:
|
|
122
|
-
line-height:
|
|
121
|
+
font-size: font-settings.$font-size-md;
|
|
122
|
+
line-height: font-settings.$lineheight-size-md;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
126
126
|
&--small {
|
|
127
|
-
font-size:
|
|
128
|
-
line-height:
|
|
127
|
+
font-size: font-settings.$font-size-sm;
|
|
128
|
+
line-height: font-settings.$lineheight-size-sm;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
&--medium {
|
|
132
|
-
font-size:
|
|
133
|
-
line-height:
|
|
132
|
+
font-size: font-settings.$font-size-md;
|
|
133
|
+
line-height: font-settings.$lineheight-size-md;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
&--large {
|
|
137
|
-
font-size:
|
|
138
|
-
line-height:
|
|
137
|
+
font-size: font-settings.$font-size-lg;
|
|
138
|
+
line-height: font-settings.$lineheight-size-lg;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/breakpoints' as *;
|
|
5
5
|
|
|
6
6
|
.list-header {
|
|
7
7
|
display: grid;
|
|
8
8
|
grid-template:
|
|
9
9
|
'icon text badge chevron' 4rem
|
|
10
10
|
'. text . .' auto / min-content auto min-content min-content;
|
|
11
|
-
column-gap: getSpacer(2xs);
|
|
12
|
-
margin-left: getSpacer(2xs);
|
|
13
|
-
margin-right: getSpacer(2xs);
|
|
11
|
+
column-gap: spacers.getSpacer(2xs);
|
|
12
|
+
margin-left: spacers.getSpacer(2xs);
|
|
13
|
+
margin-right: spacers.getSpacer(2xs);
|
|
14
14
|
width: 100%;
|
|
15
15
|
height: 100%;
|
|
16
16
|
text-align: left;
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&--spacing {
|
|
41
|
-
margin-left: getSpacer(2xs);
|
|
41
|
+
margin-left: spacers.getSpacer(2xs);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
:focus > &,
|
|
45
45
|
:focus-visible > & {
|
|
46
|
-
border-color:
|
|
46
|
+
border-color: palette.$black;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@use '../../scss/spacers' as spacers;
|
|
2
|
+
@use '../../scss/palette' as palette;
|
|
3
|
+
@use '../../scss/screen-reader' as *;
|
|
4
4
|
|
|
5
5
|
@mixin keyframes($name) {
|
|
6
6
|
@keyframes #{$name} {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
&--inline {
|
|
50
50
|
align-self: center;
|
|
51
|
-
padding-left: getSpacer(2xs);
|
|
51
|
+
padding-left: spacers.getSpacer(2xs);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&--overlay {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&--overlay-screen {
|
|
61
|
-
background:
|
|
61
|
+
background: palette.$transparent-grey;
|
|
62
62
|
position: fixed;
|
|
63
63
|
inset: 0;
|
|
64
64
|
}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
position: absolute;
|
|
68
68
|
top: 0;
|
|
69
69
|
left: 0;
|
|
70
|
-
background:
|
|
70
|
+
background: palette.$transparent-grey;
|
|
71
71
|
height: 100%;
|
|
72
72
|
width: 100%;
|
|
73
73
|
}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
position: absolute;
|
|
103
103
|
width: 8px;
|
|
104
104
|
height: 8px;
|
|
105
|
-
background-color:
|
|
105
|
+
background-color: palette.$blueberry500;
|
|
106
106
|
border-radius: 50%;
|
|
107
107
|
|
|
108
108
|
// Sets a form of easing animation curve
|
|
@@ -124,31 +124,31 @@
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
&--banana {
|
|
127
|
-
background-color:
|
|
127
|
+
background-color: palette.$banana500;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
&--cherry {
|
|
131
|
-
background-color:
|
|
131
|
+
background-color: palette.$cherry500;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&--kiwi {
|
|
135
|
-
background-color:
|
|
135
|
+
background-color: palette.$kiwi500;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
&--neutral {
|
|
139
|
-
background-color:
|
|
139
|
+
background-color: palette.$neutral500;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
&--plum {
|
|
143
|
-
background-color:
|
|
143
|
+
background-color: palette.$plum500;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
&--black {
|
|
147
|
-
background-color:
|
|
147
|
+
background-color: palette.$black;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
&--white {
|
|
151
|
-
background-color:
|
|
151
|
+
background-color: palette.$white;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
// Scales up the first dot
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@use '../../scss/spacers' as spacers;
|
|
3
|
+
@use '../../scss/palette' as palette;
|
|
4
|
+
@use '../../scss/font-settings' as font-settings;
|
|
5
|
+
@use '../../scss/breakpoints' as *;
|
|
6
6
|
|
|
7
7
|
.max-characters {
|
|
8
8
|
display: flex;
|
|
9
9
|
justify-content: flex-end;
|
|
10
|
-
padding-top: getSpacer(2xs);
|
|
10
|
+
padding-top: spacers.getSpacer(2xs);
|
|
11
11
|
padding-right: 2px;
|
|
12
|
-
font-size:
|
|
13
|
-
line-height:
|
|
12
|
+
font-size: font-settings.$font-size-sm;
|
|
13
|
+
line-height: font-settings.$lineheight-size-sm;
|
|
14
14
|
|
|
15
15
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
16
|
-
line-height:
|
|
17
|
-
font-size:
|
|
16
|
+
line-height: font-settings.$lineheight-size-md;
|
|
17
|
+
font-size: font-settings.$font-size-md;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&--on-dark {
|
|
21
|
-
color:
|
|
21
|
+
color: palette.$white;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&--invalid {
|
|
25
|
-
color:
|
|
25
|
+
color: palette.$cherry600;
|
|
26
26
|
font-weight: 600;
|
|
27
27
|
}
|
|
28
28
|
}
|