@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,10 +1,10 @@
|
|
|
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/font-mixins' as fonts;
|
|
6
|
+
@use '../../scss/breakpoints' as *;
|
|
6
7
|
@import '../../scss/supernova/styles/colors';
|
|
7
|
-
@import '../../scss/font-mixins';
|
|
8
8
|
|
|
9
9
|
.toggle-container {
|
|
10
10
|
display: flex;
|
|
@@ -22,39 +22,39 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&__label {
|
|
25
|
-
@include label;
|
|
25
|
+
@include fonts.label;
|
|
26
26
|
|
|
27
27
|
color: var(--core-color-neutral-900);
|
|
28
|
-
margin-left: getSpacer(xs);
|
|
28
|
+
margin-left: spacers.getSpacer(xs);
|
|
29
29
|
|
|
30
30
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
31
|
-
margin-left: getSpacer(s);
|
|
31
|
+
margin-left: spacers.getSpacer(s);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&__text--subdued {
|
|
35
|
-
@include label-subdued;
|
|
35
|
+
@include fonts.label-subdued;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&--toggle-right {
|
|
39
39
|
margin-left: 0;
|
|
40
|
-
margin-right: getSpacer(xs);
|
|
40
|
+
margin-right: spacers.getSpacer(xs);
|
|
41
41
|
|
|
42
42
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
43
|
-
margin-right: getSpacer(s);
|
|
43
|
+
margin-right: spacers.getSpacer(s);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&__sublabel {
|
|
49
|
-
font-size:
|
|
49
|
+
font-size: font-settings.$font-size-xs;
|
|
50
50
|
line-height: 1.25rem;
|
|
51
51
|
color: var(--core-color-neutral-800);
|
|
52
52
|
margin-left: 3.9rem;
|
|
53
53
|
text-align: left;
|
|
54
54
|
|
|
55
55
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
56
|
-
font-size:
|
|
57
|
-
line-height:
|
|
56
|
+
font-size: font-settings.$font-size-sm;
|
|
57
|
+
line-height: font-settings.$lineheight-size-xs;
|
|
58
58
|
text-align: left;
|
|
59
59
|
margin-left: 4.1rem;
|
|
60
60
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '../../../scss/palette' as palette;
|
|
2
|
+
@use '../../../scss/spacers' as spacers;
|
|
3
3
|
|
|
4
4
|
.word {
|
|
5
5
|
all: unset;
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
cursor: help;
|
|
9
9
|
|
|
10
10
|
// bruker border istedet for text-decoration for å komme rundt text-decoraton-thickness begrensninger i safari
|
|
11
|
-
border-bottom: 0.2rem dotted
|
|
11
|
+
border-bottom: 0.2rem dotted palette.$plum400;
|
|
12
12
|
line-height: 1.4rem;
|
|
13
13
|
|
|
14
14
|
&:focus-visible {
|
|
15
|
-
box-shadow: 0 0 0 getSpacer(4xs)
|
|
15
|
+
box-shadow: 0 0 0 spacers.getSpacer(4xs) palette.$black;
|
|
16
16
|
outline: none;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
2
|
+
@use '../../scss/palette' as palette;
|
|
3
|
+
@use '../../scss/icon' as icon;
|
|
4
4
|
|
|
5
5
|
$trigger-medium-size: 24.18px;
|
|
6
6
|
$trigger-medium-click-area: 44px;
|
|
@@ -24,8 +24,8 @@ $trigger-large-size: 30.61px;
|
|
|
24
24
|
&--medium {
|
|
25
25
|
height: $trigger-medium-size;
|
|
26
26
|
width: $trigger-medium-size;
|
|
27
|
-
margin-left: calc((map.get(
|
|
28
|
-
margin-right: calc((map.get(
|
|
27
|
+
margin-left: calc((map.get(icon.$icon-sizes, xs) - $trigger-medium-size) / 2);
|
|
28
|
+
margin-right: calc((map.get(icon.$icon-sizes, xs) - $trigger-medium-size) / 2);
|
|
29
29
|
|
|
30
30
|
&::after {
|
|
31
31
|
// Increase the clickable area
|
|
@@ -41,8 +41,8 @@ $trigger-large-size: 30.61px;
|
|
|
41
41
|
&--large {
|
|
42
42
|
height: $trigger-large-size;
|
|
43
43
|
width: $trigger-large-size;
|
|
44
|
-
margin-left: calc((map.get(
|
|
45
|
-
margin-right: calc((map.get(
|
|
44
|
+
margin-left: calc((map.get(icon.$icon-sizes, sm) - $trigger-large-size) / 2);
|
|
45
|
+
margin-right: calc((map.get(icon.$icon-sizes, sm) - $trigger-large-size) / 2);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
$variant-map: (
|
|
@@ -52,56 +52,56 @@ $trigger-large-size: 30.61px;
|
|
|
52
52
|
|
|
53
53
|
@each $variant, $color in $variant-map {
|
|
54
54
|
&--#{$variant} {
|
|
55
|
-
box-shadow: inset 0 0 0 1.6px map.get(
|
|
55
|
+
box-shadow: inset 0 0 0 1.6px map.get(palette.$palette-map, #{$color}600);
|
|
56
56
|
|
|
57
57
|
&:hover,
|
|
58
58
|
&#{$trigger}--hovered {
|
|
59
|
-
box-shadow: inset 0 0 0 1.6px map.get(
|
|
60
|
-
background-color: rgba(map.get(
|
|
59
|
+
box-shadow: inset 0 0 0 1.6px map.get(palette.$palette-map, #{$color}800);
|
|
60
|
+
background-color: rgba(map.get(palette.$palette-map, #{$color}600), 0.1);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&:focus-visible {
|
|
64
|
-
box-shadow: inset 0 0 0 1.6px
|
|
65
|
-
outline: 1.6px solid
|
|
64
|
+
box-shadow: inset 0 0 0 1.6px palette.$black;
|
|
65
|
+
outline: 1.6px solid palette.$black;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&#{$trigger}--selected {
|
|
69
|
-
box-shadow: inset 0 0 0 1.6px map.get(
|
|
70
|
-
background-color: rgba(map.get(
|
|
69
|
+
box-shadow: inset 0 0 0 1.6px map.get(palette.$palette-map, #{$color}800);
|
|
70
|
+
background-color: rgba(map.get(palette.$palette-map, #{$color}600), 0.1);
|
|
71
71
|
|
|
72
72
|
&:hover,
|
|
73
73
|
&#{$trigger}--hovered {
|
|
74
|
-
background-color: rgba(map.get(
|
|
74
|
+
background-color: rgba(map.get(palette.$palette-map, #{$color}600), 0.2);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&:focus {
|
|
78
|
-
background-color: rgba(map.get(
|
|
78
|
+
background-color: rgba(map.get(palette.$palette-map, #{$color}600), 0.1);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&--ondark {
|
|
85
|
-
box-shadow: inset 0 0 0 1.6px
|
|
85
|
+
box-shadow: inset 0 0 0 1.6px palette.$white;
|
|
86
86
|
|
|
87
87
|
&:hover {
|
|
88
|
-
background-color: rgba(
|
|
88
|
+
background-color: rgba(palette.$plum50, 0.2);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
&:focus-visible {
|
|
92
|
-
outline: 1.6px solid
|
|
92
|
+
outline: 1.6px solid palette.$white;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&#{$trigger}--selected {
|
|
96
|
-
background-color: rgba(
|
|
96
|
+
background-color: rgba(palette.$plum50, 0.1);
|
|
97
97
|
|
|
98
98
|
&:hover,
|
|
99
99
|
&#{$trigger}--hovered {
|
|
100
|
-
background-color: rgba(
|
|
100
|
+
background-color: rgba(palette.$plum50, 0.2);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&:focus-visible {
|
|
104
|
-
background-color: rgba(
|
|
104
|
+
background-color: rgba(palette.$plum50, 0.1);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
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
|
.validation {
|
|
8
8
|
&__error-wrapper {
|
|
9
|
-
|
|
9
|
+
margin-bottom: spacers.getSpacer(2xs);
|
|
10
10
|
|
|
11
11
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
12
|
-
|
|
12
|
+
margin-bottom: spacers.getSpacer(m);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&__summary {
|
|
17
|
-
color:
|
|
17
|
+
color: palette.$cherry600;
|
|
18
18
|
|
|
19
19
|
&--visible {
|
|
20
|
-
margin: getSpacer(l) 0 getSpacer(s);
|
|
20
|
+
margin: spacers.getSpacer(l) 0 spacers.getSpacer(s);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&__errors {
|
|
25
|
-
font-size:
|
|
25
|
+
font-size: font-settings.$font-size-sm;
|
|
26
26
|
font-weight: 600;
|
|
27
27
|
|
|
28
28
|
&--visible {
|
|
29
|
-
margin: getSpacer(l) 0 getSpacer(s);
|
|
29
|
+
margin: spacers.getSpacer(l) 0 spacers.getSpacer(s);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
package/package.json
CHANGED
package/scss/_body.scss
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@import './font-mixins';
|
|
2
|
+
@use './palette' as palette;
|
|
3
|
+
@use './font-mixins' as fonts;
|
|
5
4
|
|
|
6
5
|
body {
|
|
7
6
|
font-family: 'Source Sans Pro', Arial, Verdana, sans-serif;
|
|
8
|
-
background-color:
|
|
9
|
-
color:
|
|
7
|
+
background-color: palette.$white;
|
|
8
|
+
color: palette.$black;
|
|
10
9
|
|
|
11
|
-
@include body;
|
|
10
|
+
@include fonts.body;
|
|
12
11
|
}
|
package/scss/_breakpoints.scss
CHANGED
package/scss/_font-mixins.scss
CHANGED
package/scss/_fonts.scss
CHANGED
package/scss/_input.scss
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
2
|
+
@use './palette' as palette;
|
|
3
|
+
@use './spacers' as spacers;
|
|
4
|
+
@use './font-settings' as font-settings;
|
|
5
|
+
@use './breakpoints' as *;
|
|
3
6
|
|
|
4
7
|
@mixin input-wrapper {
|
|
5
8
|
width: 100%;
|
|
@@ -7,11 +10,11 @@
|
|
|
7
10
|
|
|
8
11
|
@mixin input-container {
|
|
9
12
|
display: flex;
|
|
10
|
-
font-size:
|
|
13
|
+
font-size: font-settings.$font-size-sm;
|
|
11
14
|
width: 100%;
|
|
12
|
-
border: 2px solid
|
|
15
|
+
border: 2px solid palette.$neutral700;
|
|
13
16
|
outline: none;
|
|
14
|
-
background:
|
|
17
|
+
background: palette.$white;
|
|
15
18
|
|
|
16
19
|
svg:first-of-type {
|
|
17
20
|
padding-left: 0.375rem;
|
|
@@ -22,79 +25,79 @@
|
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
&--large {
|
|
25
|
-
padding: getSpacer(2xs) 0;
|
|
28
|
+
padding: spacers.getSpacer(2xs) 0;
|
|
26
29
|
|
|
27
30
|
svg:first-of-type {
|
|
28
|
-
padding-left: getSpacer(2xs);
|
|
31
|
+
padding-left: spacers.getSpacer(2xs);
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
svg:last-of-type {
|
|
32
|
-
padding-right: getSpacer(2xs);
|
|
35
|
+
padding-right: spacers.getSpacer(2xs);
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
&:focus-within {
|
|
37
|
-
background:
|
|
38
|
-
border-color:
|
|
39
|
-
box-shadow: 0 0 0 2px
|
|
40
|
+
background: palette.$white;
|
|
41
|
+
border-color: palette.$neutral900;
|
|
42
|
+
box-shadow: 0 0 0 2px palette.$neutral900;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
&:hover {
|
|
43
|
-
background:
|
|
44
|
-
border-color:
|
|
45
|
-
box-shadow: 0 0 0 1px
|
|
46
|
+
background: palette.$neutral50;
|
|
47
|
+
border-color: palette.$neutral700;
|
|
48
|
+
box-shadow: 0 0 0 1px palette.$neutral700;
|
|
46
49
|
|
|
47
50
|
&:focus-within {
|
|
48
|
-
border-color:
|
|
49
|
-
box-shadow: 0 0 0 2px
|
|
51
|
+
border-color: palette.$black;
|
|
52
|
+
box-shadow: 0 0 0 2px palette.$black;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
&--on-blueberry {
|
|
54
|
-
border-color:
|
|
57
|
+
border-color: palette.$blueberry500;
|
|
55
58
|
|
|
56
59
|
&:hover {
|
|
57
|
-
background:
|
|
58
|
-
box-shadow: 0 0 0 1px
|
|
59
|
-
border-color:
|
|
60
|
+
background: palette.$blueberry50;
|
|
61
|
+
box-shadow: 0 0 0 1px palette.$blueberry500;
|
|
62
|
+
border-color: palette.$blueberry500;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
&:focus-within {
|
|
63
|
-
background:
|
|
64
|
-
border-color:
|
|
65
|
-
box-shadow: 0 0 0 2px
|
|
66
|
+
background: palette.$white;
|
|
67
|
+
border-color: palette.$neutral900;
|
|
68
|
+
box-shadow: 0 0 0 2px palette.$neutral900;
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
&--on-dark {
|
|
70
|
-
border-color:
|
|
73
|
+
border-color: palette.$blueberry900;
|
|
71
74
|
|
|
72
75
|
&:hover {
|
|
73
|
-
background:
|
|
74
|
-
border-color:
|
|
75
|
-
box-shadow: 0 0 0 1px
|
|
76
|
+
background: palette.$blueberry50;
|
|
77
|
+
border-color: palette.$blueberry900;
|
|
78
|
+
box-shadow: 0 0 0 1px palette.$blueberry900;
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
&:focus-within {
|
|
79
|
-
background:
|
|
80
|
-
border-color:
|
|
81
|
-
box-shadow: 0 0 0 2px
|
|
82
|
+
background: palette.$white;
|
|
83
|
+
border-color: palette.$neutral900;
|
|
84
|
+
box-shadow: 0 0 0 2px palette.$neutral900;
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
&--invalid {
|
|
86
|
-
border-color:
|
|
89
|
+
border-color: palette.$cherry600;
|
|
87
90
|
|
|
88
91
|
&:hover {
|
|
89
|
-
background:
|
|
90
|
-
border-color:
|
|
91
|
-
box-shadow: 0 0 0 2px
|
|
92
|
+
background: palette.$cherry100;
|
|
93
|
+
border-color: palette.$cherry600;
|
|
94
|
+
box-shadow: 0 0 0 2px palette.$cherry600;
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
&:focus-within {
|
|
95
|
-
background:
|
|
96
|
-
border-color:
|
|
97
|
-
box-shadow: 0 0 0 2px
|
|
98
|
+
background: palette.$white;
|
|
99
|
+
border-color: palette.$neutral900;
|
|
100
|
+
box-shadow: 0 0 0 2px palette.$neutral900;
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
|
|
@@ -102,32 +105,32 @@
|
|
|
102
105
|
background: transparent;
|
|
103
106
|
|
|
104
107
|
&:hover {
|
|
105
|
-
background:
|
|
108
|
+
background: palette.$neutral100;
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
&:focus-within {
|
|
109
|
-
background:
|
|
112
|
+
background: palette.$white;
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
&--transparent#{&}--on-blueberry {
|
|
113
116
|
&:hover {
|
|
114
|
-
background:
|
|
117
|
+
background: palette.$blueberry100;
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
&:focus-within {
|
|
118
|
-
background:
|
|
121
|
+
background: palette.$white;
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
|
|
122
125
|
&--disabled {
|
|
123
126
|
background: transparent;
|
|
124
|
-
border-color:
|
|
127
|
+
border-color: palette.$neutral600;
|
|
125
128
|
border-style: dashed;
|
|
126
|
-
color:
|
|
129
|
+
color: palette.$neutral700;
|
|
127
130
|
|
|
128
131
|
&:hover {
|
|
129
132
|
background: transparent;
|
|
130
|
-
border-color:
|
|
133
|
+
border-color: palette.$neutral600;
|
|
131
134
|
box-shadow: none;
|
|
132
135
|
}
|
|
133
136
|
}
|
|
@@ -135,31 +138,31 @@
|
|
|
135
138
|
&__input {
|
|
136
139
|
line-height: 1.625rem;
|
|
137
140
|
font-family: inherit;
|
|
138
|
-
font-size:
|
|
139
|
-
padding: 0 getSpacer(2xs);
|
|
141
|
+
font-size: font-settings.$font-size-sm;
|
|
142
|
+
padding: 0 spacers.getSpacer(2xs);
|
|
140
143
|
border: none;
|
|
141
144
|
outline: none;
|
|
142
145
|
background-color: transparent;
|
|
143
146
|
width: 100%;
|
|
144
147
|
|
|
145
148
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
146
|
-
font-size:
|
|
149
|
+
font-size: font-settings.$font-size-md;
|
|
147
150
|
}
|
|
148
151
|
|
|
149
152
|
&::placeholder {
|
|
150
|
-
color:
|
|
153
|
+
color: palette.$neutral500;
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
&--disabled {
|
|
154
|
-
color:
|
|
157
|
+
color: palette.$neutral700;
|
|
155
158
|
}
|
|
156
159
|
|
|
157
160
|
&:first-child {
|
|
158
|
-
padding-left: getSpacer(s);
|
|
161
|
+
padding-left: spacers.getSpacer(s);
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
&:last-child {
|
|
162
|
-
padding-right: getSpacer(s);
|
|
165
|
+
padding-right: spacers.getSpacer(s);
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
}
|
package/scss/_print.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
2
|
+
@use 'palette' as palette;
|
|
3
3
|
@import 'breakpoints';
|
|
4
4
|
|
|
5
5
|
@media print {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
pre,
|
|
34
34
|
blockquote {
|
|
35
|
-
border: 1px solid
|
|
35
|
+
border: 1px solid palette.$neutral500;
|
|
36
36
|
page-break-inside: avoid;
|
|
37
37
|
}
|
|
38
38
|
|
package/scss/layout.module.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use './breakpoints' as *;
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Denne filen er ment til å importeres som en css module:
|
|
@@ -8,7 +8,7 @@ import designsystemlayout from './scss/layout.scss'
|
|
|
8
8
|
|
|
9
9
|
.container-breakout {
|
|
10
10
|
// This is a copy of how bootstrap's row class sets margins inside a container
|
|
11
|
-
// https://github.com/twbs/bootstrap/blob/e5643aaa89eb67327a5b4abe7db976f0ea276b70/scss/mixins/
|
|
11
|
+
// https://github.com/twbs/bootstrap/blob/e5643aaa89eb67327a5b4abe7db976f0ea276b70/scss/mixins/_scss#L16C1-L17C30
|
|
12
12
|
margin-right: -$grid-gutter-width * 0.5;
|
|
13
13
|
margin-left: -$grid-gutter-width * 0.5;
|
|
14
14
|
}
|