@helsenorge/designsystem-react 3.0.0 → 3.0.1
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 +380 -668
- package/HelpBubble.js +1 -1
- package/HelpBubble.js.map +1 -1
- package/HorizontalScroll.js.map +1 -1
- package/Input.js +1 -1
- package/Input.js.map +1 -1
- package/ListHeader.js +1 -1
- package/ListHeader.js.map +1 -1
- package/Modal.js.map +1 -1
- package/PopOver.js +1 -1
- package/PopOver.js.map +1 -1
- package/RadioButton.js +1 -1
- package/RadioButton.js.map +1 -1
- package/Textarea.js +1 -1
- package/Textarea.js.map +1 -1
- package/Title.js.map +1 -1
- package/Tooltip.js.map +1 -1
- package/TooltipWord.js +1 -1
- package/TooltipWord.js.map +1 -1
- package/components/AnchorLink/styles.module.scss +11 -6
- package/components/Avatar/styles.module.scss +2 -2
- package/components/Badge/styles.module.scss +7 -1
- package/components/Button/styles.module.scss +35 -21
- package/components/Checkbox/styles.module.scss +12 -12
- package/components/Close/styles.module.scss +15 -7
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/index.js.map +1 -1
- package/components/Dropdown/styles.module.scss +31 -10
- package/components/Duolist/styles.module.scss +5 -3
- package/components/ErrorWrapper/styles.module.scss +8 -6
- package/components/Expander/styles.module.scss +46 -15
- package/components/ExpanderHierarchy/expander.module.scss +13 -8
- package/components/ExpanderHierarchy/expander.module.scss.d.ts +1 -1
- package/components/ExpanderHierarchy/styles.module.scss +3 -3
- package/components/ExpanderList/index.js.map +1 -1
- package/components/ExpanderList/styles.module.scss +17 -6
- package/components/FormExample/FormExample.d.ts.map +1 -1
- package/components/FormExample/index.js.map +1 -1
- package/components/FormExample/styles.module.scss +6 -6
- package/components/FormGroup/styles.module.scss +5 -4
- package/components/FormLayout/styles.module.scss +5 -2
- package/components/HelpBubble/HelpBubble.d.ts +2 -2
- package/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/components/HelpBubble/index.js +1 -1
- package/components/HelpBubble/styles.module.scss +10 -10
- package/components/HelpBubble/styles.module.scss.d.ts +0 -1
- package/components/HelpBubbleExample/index.js +1 -1
- package/components/HighlightBox/index.js.map +1 -1
- package/components/HighlightBox/styles.module.scss +38 -29
- package/components/HorizontalScroll/HorizontalScroll.d.ts.map +1 -1
- package/components/HorizontalScroll/styles.module.scss +10 -3
- package/components/Icons/SortUp.js +1 -1
- package/components/Icons/SortUp.js.map +1 -1
- package/components/Input/Input.d.ts.map +1 -1
- package/components/Input/styles.module.scss +8 -7
- package/components/LinkList/styles.module.scss +23 -5
- package/components/List/styles.module.scss +4 -0
- package/components/ListHeader/ListHeader.d.ts +9 -7
- package/components/ListHeader/ListHeader.d.ts.map +1 -1
- package/components/ListHeader/styles.module.scss +36 -11
- package/components/Loader/styles.module.scss +40 -18
- package/components/Logo/index.js.map +1 -1
- package/components/MaxCharacters/styles.module.scss +7 -5
- package/components/Modal/styles.module.scss +39 -23
- package/components/NotificationPanel/DetailButton/styles.module.scss +9 -5
- package/components/NotificationPanel/index.js.map +1 -1
- package/components/NotificationPanel/styles.module.scss +45 -12
- package/components/Panel/styles.module.scss +53 -29
- package/components/PanelList/styles.module.scss +6 -5
- package/components/PopMenu/PopMenu.d.ts.map +1 -1
- package/components/PopMenu/styles.module.scss +28 -7
- package/components/PopOver/PopOver.d.ts +5 -3
- package/components/PopOver/PopOver.d.ts.map +1 -1
- package/components/PopOver/componentdata.json +1 -1
- package/components/PopOver/styles.module.scss +16 -13
- package/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/components/RadioButton/styles.module.scss +12 -14
- package/components/Select/styles.module.scss +14 -8
- package/components/Slider/Slider.d.ts.map +1 -1
- package/components/Slider/index.js +1 -1
- package/components/Slider/index.js.map +1 -1
- package/components/Slider/styles.module.scss +1 -1
- package/components/Spacer/styles.module.scss +13 -1
- package/components/StatusDot/styles.module.scss +2 -2
- package/components/Stepper/styles.module.scss +28 -20
- package/components/Table/Table.d.ts.map +1 -1
- package/components/Table/index.js +1 -1
- package/components/Table/index.js.map +1 -1
- package/components/Table/styles.module.scss +32 -20
- package/components/Tag/styles.module.scss +39 -27
- package/components/TagList/styles.module.scss +3 -3
- package/components/Textarea/Textarea.d.ts.map +1 -1
- package/components/Textarea/styles.module.scss +6 -5
- package/components/Tile/styles.module.scss +11 -6
- package/components/Title/Title.d.ts +1 -1
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/styles.module.scss +5 -0
- package/components/Tooltip/TooltipWord/TooltipWord.d.ts +1 -1
- package/components/Tooltip/TooltipWord/TooltipWord.d.ts.map +1 -1
- package/components/Tooltip/TooltipWord/styles.module.scss +3 -3
- package/components/Tooltip/index.js +1 -1
- package/components/TooltipExample/index.js +1 -1
- package/components/Validation/styles.module.scss +3 -3
- package/hoc/withBreakpoint/withBreakpoint.d.ts +1 -1
- package/hoc/withBreakpoint/withBreakpoint.d.ts.map +1 -1
- package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
- package/hooks/useFocusTrap.d.ts.map +1 -1
- package/hooks/useFocusTrap.js.map +1 -1
- package/hooks/useSize.js.map +1 -1
- package/package.json +1 -1
- package/scss/_body.scss +3 -1
- package/scss/_breakpoints.scss +5 -8
- package/scss/_figma-tokens.scss +2 -2
- package/scss/_fonts.scss +36 -21
- package/scss/_grid.scss +5 -4
- package/scss/_input.scss +20 -11
- package/scss/_palette.scss +3 -11
- package/scss/_print.scss +58 -18
- package/scss/_screen-reader.scss +0 -2
- package/scss/_spacers.scss +17 -15
- package/scss/_title.scss +11 -5
- package/scss/helsenorge.scss +1 -1
- package/scss/typography.module.scss +20 -13
- package/utils/component.d.ts +1 -0
- package/utils/component.d.ts.map +1 -1
- package/utils/component.js +1 -1
- package/utils/component.js.map +1 -1
- package/utils/debounce.d.ts +1 -2
- package/utils/debounce.d.ts.map +1 -1
- package/utils/debounce.js +1 -1
- package/utils/debounce.js.map +1 -1
|
@@ -29,13 +29,15 @@ export interface ListHeaderProps {
|
|
|
29
29
|
/** Sets the data-testid attribute. */
|
|
30
30
|
testId?: string;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
avatarChild?: React.ReactElement<AvatarProps
|
|
34
|
-
listHeaderTextChildren:
|
|
35
|
-
badgeChild?: React.ReactElement<BadgeProps
|
|
36
|
-
stringChildren:
|
|
37
|
-
remainingChildren:
|
|
38
|
-
}
|
|
32
|
+
interface ListHeaderChildren {
|
|
33
|
+
avatarChild?: React.ReactElement<AvatarProps>;
|
|
34
|
+
listHeaderTextChildren: React.ReactElement<ListHeaderTextProps>[];
|
|
35
|
+
badgeChild?: React.ReactElement<BadgeProps>;
|
|
36
|
+
stringChildren: string[];
|
|
37
|
+
remainingChildren: React.ReactNode[];
|
|
38
|
+
}
|
|
39
|
+
type ChildrenMapper = (children: React.ReactNode, isJsxChild?: boolean) => ListHeaderChildren | undefined;
|
|
40
|
+
export declare const mapChildren: ChildrenMapper;
|
|
39
41
|
export declare const ListHeader: ListHeaderType;
|
|
40
42
|
export default ListHeader;
|
|
41
43
|
//# sourceMappingURL=ListHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ListHeader/ListHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAG1G,OAAe,EAAE,WAAW,EAAc,UAAU,EAAE,MAAM,WAAW,CAAC;AACxE,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAa,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1D,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,yBAAyB,CAAC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AK,CAAC,SAAS,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,kBAAkB,GAAG,SAAS,CAAC;AAE1G,eAAO,MAAM,WAAW,EAAE,cAqCzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,cAyEvB,CAAC;AAIH,eAAe,UAAU,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
4
|
-
@import '../../scss/
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/font-settings';
|
|
5
|
+
@import '../../scss/palette';
|
|
5
6
|
|
|
6
7
|
.list-header {
|
|
7
8
|
display: flex;
|
|
@@ -16,9 +17,11 @@
|
|
|
16
17
|
padding-top: getSpacer(s);
|
|
17
18
|
padding-bottom: getSpacer(s);
|
|
18
19
|
}
|
|
20
|
+
|
|
19
21
|
&--top-align-content {
|
|
20
22
|
align-items: flex-start;
|
|
21
23
|
}
|
|
24
|
+
|
|
22
25
|
&__title {
|
|
23
26
|
font-size: inherit;
|
|
24
27
|
font-weight: inherit;
|
|
@@ -26,6 +29,7 @@
|
|
|
26
29
|
padding: 0;
|
|
27
30
|
margin: 0;
|
|
28
31
|
}
|
|
32
|
+
|
|
29
33
|
&__content {
|
|
30
34
|
border-bottom: 1px solid transparent;
|
|
31
35
|
display: flex;
|
|
@@ -34,18 +38,22 @@
|
|
|
34
38
|
|
|
35
39
|
&--string {
|
|
36
40
|
margin: getSpacer(xs) 0;
|
|
37
|
-
|
|
41
|
+
|
|
42
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
38
43
|
margin: getSpacer(s) 0;
|
|
39
44
|
}
|
|
40
45
|
}
|
|
46
|
+
|
|
41
47
|
&--element {
|
|
42
48
|
display: flex;
|
|
43
49
|
align-items: flex-start;
|
|
44
50
|
flex-direction: column;
|
|
45
51
|
}
|
|
52
|
+
|
|
46
53
|
&--spacing {
|
|
47
54
|
margin-left: getSpacer(s);
|
|
48
55
|
}
|
|
56
|
+
|
|
49
57
|
:focus > &,
|
|
50
58
|
:focus-visible > & {
|
|
51
59
|
border-color: $black;
|
|
@@ -61,13 +69,16 @@
|
|
|
61
69
|
&--medium {
|
|
62
70
|
height: $lineheight-size-sm;
|
|
63
71
|
}
|
|
72
|
+
|
|
64
73
|
&--large {
|
|
65
74
|
height: $lineheight-size-md;
|
|
66
75
|
}
|
|
67
|
-
|
|
76
|
+
|
|
77
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
68
78
|
&--medium {
|
|
69
79
|
height: $lineheight-size-md;
|
|
70
80
|
}
|
|
81
|
+
|
|
71
82
|
&--large {
|
|
72
83
|
height: $lineheight-size-lg;
|
|
73
84
|
}
|
|
@@ -78,10 +89,12 @@
|
|
|
78
89
|
&__icon {
|
|
79
90
|
&--for-string-content {
|
|
80
91
|
margin: getSpacer(3xs) getSpacer(2xs) getSpacer(3xs) 0;
|
|
81
|
-
|
|
92
|
+
|
|
93
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
82
94
|
margin: getSpacer(2xs) getSpacer(2xs) getSpacer(2xs) 0;
|
|
83
95
|
}
|
|
84
96
|
}
|
|
97
|
+
|
|
85
98
|
&--for-element-content {
|
|
86
99
|
margin: 0 getSpacer(2xs) 0 0;
|
|
87
100
|
}
|
|
@@ -90,10 +103,12 @@
|
|
|
90
103
|
&__avatar {
|
|
91
104
|
&--for-string-content {
|
|
92
105
|
margin: getSpacer(3xs) getSpacer(s) getSpacer(3xs) 0;
|
|
93
|
-
|
|
106
|
+
|
|
107
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
94
108
|
margin: getSpacer(2xs) getSpacer(s) getSpacer(2xs) 0;
|
|
95
109
|
}
|
|
96
110
|
}
|
|
111
|
+
|
|
97
112
|
&--for-element-content {
|
|
98
113
|
margin: 0 getSpacer(s) 0 0;
|
|
99
114
|
}
|
|
@@ -104,29 +119,37 @@
|
|
|
104
119
|
display: flex;
|
|
105
120
|
align-items: center;
|
|
106
121
|
margin-left: getSpacer(2xs);
|
|
122
|
+
|
|
107
123
|
&--for-string-content {
|
|
108
124
|
margin: getSpacer(3xs) 0 getSpacer(3xs) auto;
|
|
109
|
-
|
|
125
|
+
|
|
126
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
110
127
|
margin: getSpacer(2xs) 0 getSpacer(2xs) auto;
|
|
111
128
|
}
|
|
112
129
|
}
|
|
113
|
-
|
|
130
|
+
|
|
131
|
+
// Height needs to be same as line-height
|
|
114
132
|
&--small {
|
|
115
133
|
height: $lineheight-size-xs;
|
|
116
134
|
}
|
|
135
|
+
|
|
117
136
|
&--medium {
|
|
118
137
|
height: $lineheight-size-sm;
|
|
119
138
|
}
|
|
139
|
+
|
|
120
140
|
&--large {
|
|
121
141
|
height: $lineheight-size-md;
|
|
122
142
|
}
|
|
123
|
-
|
|
143
|
+
|
|
144
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
124
145
|
&--small {
|
|
125
146
|
height: $lineheight-size-sm;
|
|
126
147
|
}
|
|
148
|
+
|
|
127
149
|
&--medium {
|
|
128
150
|
height: $lineheight-size-md;
|
|
129
151
|
}
|
|
152
|
+
|
|
130
153
|
&--large {
|
|
131
154
|
height: $lineheight-size-lg;
|
|
132
155
|
}
|
|
@@ -137,6 +160,7 @@
|
|
|
137
160
|
.statusDot {
|
|
138
161
|
padding: 1rem;
|
|
139
162
|
}
|
|
163
|
+
|
|
140
164
|
.text-wrapper {
|
|
141
165
|
display: flex;
|
|
142
166
|
align-items: flex-start;
|
|
@@ -146,6 +170,7 @@
|
|
|
146
170
|
&--sub-level {
|
|
147
171
|
font-size: 18px;
|
|
148
172
|
}
|
|
173
|
+
|
|
149
174
|
&__text--emphasised {
|
|
150
175
|
font-weight: 600;
|
|
151
176
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../scss/
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
1
|
+
@import '../../scss/spacers';
|
|
2
|
+
@import '../../scss/palette';
|
|
3
|
+
@import '../../scss/screen-reader';
|
|
4
4
|
|
|
5
5
|
@mixin keyframes($name) {
|
|
6
6
|
@keyframes #{$name} {
|
|
@@ -13,27 +13,31 @@
|
|
|
13
13
|
animation-name: $name;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@mixin
|
|
16
|
+
@mixin loader-dot-scale($name, $scale-start, $scale-end) {
|
|
17
17
|
@include keyframes($name) {
|
|
18
18
|
0% {
|
|
19
19
|
transform: scale($scale-start);
|
|
20
20
|
}
|
|
21
|
+
|
|
21
22
|
100% {
|
|
22
23
|
transform: scale($scale-end);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
26
|
+
|
|
25
27
|
@include animate($name, scale, 0.6s, infinite);
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
@mixin
|
|
30
|
+
@mixin loader-dot-translate($name, $distance) {
|
|
29
31
|
@include keyframes($name) {
|
|
30
32
|
0% {
|
|
31
33
|
transform: translate(0, 0);
|
|
32
34
|
}
|
|
35
|
+
|
|
33
36
|
100% {
|
|
34
37
|
transform: translate($distance, 0);
|
|
35
38
|
}
|
|
36
39
|
}
|
|
40
|
+
|
|
37
41
|
@include animate($name, translate, 0.6s, infinite);
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -55,18 +59,16 @@
|
|
|
55
59
|
|
|
56
60
|
&--overlay-screen {
|
|
57
61
|
z-index: 9999;
|
|
58
|
-
background: $
|
|
62
|
+
background: $transparent-grey;
|
|
59
63
|
position: fixed;
|
|
60
|
-
|
|
61
|
-
left: 0;
|
|
62
|
-
right: 0;
|
|
63
|
-
bottom: 0;
|
|
64
|
+
inset: 0;
|
|
64
65
|
}
|
|
66
|
+
|
|
65
67
|
&--overlay-parent {
|
|
66
68
|
position: absolute;
|
|
67
69
|
top: 0;
|
|
68
70
|
left: 0;
|
|
69
|
-
background: $
|
|
71
|
+
background: $transparent-grey;
|
|
70
72
|
height: 100%;
|
|
71
73
|
width: 100%;
|
|
72
74
|
}
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
&__hidden-text {
|
|
97
|
-
@include sr-only
|
|
99
|
+
@include sr-only;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
&__dot {
|
|
@@ -108,10 +110,12 @@
|
|
|
108
110
|
width: 12px;
|
|
109
111
|
height: 12px;
|
|
110
112
|
}
|
|
113
|
+
|
|
111
114
|
&--medium {
|
|
112
115
|
width: 18px;
|
|
113
116
|
height: 18px;
|
|
114
117
|
}
|
|
118
|
+
|
|
115
119
|
&--large {
|
|
116
120
|
width: 24px;
|
|
117
121
|
height: 24px;
|
|
@@ -120,58 +124,72 @@
|
|
|
120
124
|
&--banana {
|
|
121
125
|
background-color: $banana500;
|
|
122
126
|
}
|
|
127
|
+
|
|
123
128
|
&--cherry {
|
|
124
129
|
background-color: $cherry500;
|
|
125
130
|
}
|
|
131
|
+
|
|
126
132
|
&--kiwi {
|
|
127
133
|
background-color: $kiwi500;
|
|
128
134
|
}
|
|
135
|
+
|
|
129
136
|
&--neutral {
|
|
130
137
|
background-color: $neutral500;
|
|
131
138
|
}
|
|
139
|
+
|
|
132
140
|
&--plum {
|
|
133
141
|
background-color: $plum500;
|
|
134
142
|
}
|
|
143
|
+
|
|
135
144
|
&--black {
|
|
136
145
|
background-color: $black;
|
|
137
146
|
}
|
|
147
|
+
|
|
138
148
|
&--white {
|
|
139
149
|
background-color: $white;
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
// Sets a form of easing animation curve
|
|
143
153
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
154
|
+
|
|
144
155
|
// Scales up the first dot
|
|
145
156
|
&:nth-child(1) {
|
|
146
|
-
@include
|
|
157
|
+
@include loader-dot-scale(scale-regular, 0, 1);
|
|
147
158
|
}
|
|
148
159
|
|
|
149
160
|
// Translates the dots rightwards depending on size
|
|
150
161
|
&:nth-child(2),
|
|
151
162
|
&:nth-child(3) {
|
|
152
|
-
@include
|
|
163
|
+
@include loader-dot-translate(translate-tiny, 16px);
|
|
153
164
|
}
|
|
165
|
+
|
|
154
166
|
&:nth-child(3) {
|
|
155
167
|
left: 16px;
|
|
156
168
|
}
|
|
169
|
+
|
|
157
170
|
&--small:nth-child(2),
|
|
158
171
|
&--small:nth-child(3) {
|
|
159
|
-
@include
|
|
172
|
+
@include loader-dot-translate(translate-small, 24px);
|
|
160
173
|
}
|
|
174
|
+
|
|
161
175
|
&--medium:nth-child(2),
|
|
162
176
|
&--medium:nth-child(3) {
|
|
163
|
-
@include
|
|
177
|
+
@include loader-dot-translate(translate-medium, 36px);
|
|
164
178
|
}
|
|
179
|
+
|
|
165
180
|
&--large:nth-child(2),
|
|
166
181
|
&--large:nth-child(3) {
|
|
167
|
-
@include
|
|
182
|
+
@include loader-dot-translate(translate-large, 48px);
|
|
168
183
|
}
|
|
184
|
+
|
|
169
185
|
&--small:nth-child(3) {
|
|
170
186
|
left: 24px;
|
|
171
187
|
}
|
|
188
|
+
|
|
172
189
|
&--medium:nth-child(3) {
|
|
173
190
|
left: 36px;
|
|
174
191
|
}
|
|
192
|
+
|
|
175
193
|
&--large:nth-child(3) {
|
|
176
194
|
left: 48px;
|
|
177
195
|
}
|
|
@@ -179,14 +197,18 @@
|
|
|
179
197
|
// Scales down the last dot
|
|
180
198
|
&:nth-child(4) {
|
|
181
199
|
left: 32px;
|
|
182
|
-
|
|
200
|
+
|
|
201
|
+
@include loader-dot-scale(scale-reverse, 1, 0);
|
|
183
202
|
}
|
|
203
|
+
|
|
184
204
|
&--small:nth-child(4) {
|
|
185
205
|
left: 48px;
|
|
186
206
|
}
|
|
207
|
+
|
|
187
208
|
&--medium:nth-child(4) {
|
|
188
209
|
left: 72px;
|
|
189
210
|
}
|
|
211
|
+
|
|
190
212
|
&--large:nth-child(4) {
|
|
191
213
|
left: 96px;
|
|
192
214
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Logo/Logo.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AnalyticsId } from '../../constants';\nimport { getColor } from '../../theme/currys/color';\nimport { PaletteNames } from '../../theme/palette';\n\ntype LogoColor = 'black' | 'white';\n\ninterface LogoProps {\n /** Changes the size of the logo. */\n size?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /**\tChanges the color of the logo. */\n color?: LogoColor;\n /** Changes to the byline variant of the logo. */\n byline?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst Original = ({\n size = 300,\n color = 'black',\n className = '',\n testId,\n}: {\n size?: number;\n color?: LogoColor;\n className?: string;\n testId?: string;\n}): JSX.Element => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n role={'img'}\n aria-labelledby=\"logo-title\"\n viewBox=\"0 0 502 220\"\n className={className}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Logo}\n >\n <title id={'logo-title'}>Helsenorge</title>\n <g fill={getColor(color, 500)}>\n <path d=\"M39.8 2.5v26.9H17V2.5H1v69.9h16V43.6h22.8v28.8h16.1V2.5zM250.3 58.6V2.5h-16v69.9h43.5V58.6zM142.9 122.5c-16.1 0-27.4 13.6-27.4 33.1s11.2 33.1 27.4 33.1 27.4-13.6 27.4-33.1-11.3-33.1-27.4-33.1zm19 33.1c0 11.9-5 25.9-19 25.9s-19-13.9-19-25.9c0-11.9 5-25.9 19-25.9s19 14 19 25.9zM501 40c0-19.1-11.1-32.4-27-32.4-16.4 0-27.4 13.3-27.4 33.1 0 19.5 11.5 33.1 28 33.1 12.2 0 21.4-6 24.7-16.2l.5-1.6h-8.3l-.3.7c-2.8 6.2-8.8 9.8-16.6 9.8-12.9 0-18.5-11.5-19.5-22.7H501V40zm-8.3-3.2h-37.6c1-10.8 6.5-21.9 18.9-21.9 13.2 0 18.3 12.6 18.7 21.9zM30.4 122.4c-10.8 0-16.6 6.7-19.5 11.8v-9.9H3.3v62.6h8.1v-31.4c0-8.4 4.4-25.7 18.1-25.7 14 0 15.9 12 15.9 25v32.1h8.1v-32.1c.1-16.1-2.7-32.4-23.1-32.4zM134.3 59V43H157V30h-22.7V15.9H165V2.5h-46.4v69.9h47.3V59zM466.7 173.4v-16h22.7v-13h-22.7v-14.1h30.7v-13.4H451v69.9h47.3v-13.4zM246.7 140.5v-16.3h-7.6v62.6h8.1v-37.6l27.3-19.6v-9zM393.5 120.6l-14.7 10.5c-4.4-5.6-11.2-8.7-18.8-8.7-13.6 0-23.6 9.8-23.6 23.3 0 10.6 6.2 19.1 16 22.2l-16 17.5c-4 4.6-5.7 8.3-5.7 12.7 0 12.6 11.1 20.7 28.2 20.7 16.9 0 28.3-8.3 28.3-20.7 0-12.5-11.1-20.6-28.3-20.6-1.7 0-3.9.2-5.6.5l8-9c12.9-.7 22.2-10.4 22.2-23.3 0-2.8-.4-5.5-1.2-7.8 0-.1-.1-.2-.1-.3l11.2-8.1v-8.9zm-34.4 64.2c12.1 0 20 5.2 20 13.4s-7.8 13.5-20 13.5c-12.1 0-19.9-5.3-19.9-13.5 0-7.8 8.3-13.4 19.9-13.4zm.9-23c-8.8 0-15.2-6.8-15.2-16 0-9.3 6.4-16 15.2-16s15.2 6.7 15.2 16c0 9.2-6.4 16-15.2 16zM366.7 30.3c-6.6-2.3-13.5-4.7-13.5-9.2 0-4.8 4.2-7 9.3-7 5.4 0 9 4.5 9 8.5v.8h16.2v-.6c0-13-10.2-21.7-25.4-21.7-15.3 0-24.9 7.8-24.9 20.4 0 14.7 13.1 18.4 22.9 21.9 6.5 2.4 13.6 4.3 13.6 8.7 0 4.6-3.4 8-10.6 8-6.5 0-10.9-3.8-10.9-9.4v-.8h-16.7v.8c0 14.5 10.3 23.1 27.5 23.1 16.5 0 26-7.6 26-21.5 0-14.4-12.5-18.5-22.5-22z\" />\n </g>\n </svg>\n);\n\nconst Byline = ({\n size = 300,\n color = 'black',\n className = '',\n testId,\n}: {\n size?: number;\n color?: LogoColor;\n className?: string;\n testId?: string;\n}): JSX.Element => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n role={'img'}\n aria-labelledby=\"logo-title\"\n viewBox=\"0 0 87 12\"\n className={className}\n data-testid={testId}\n >\n <title id={'logo-title'}>Helsenorge</title>\n <g fill={getColor(color, 500)}>\n <path d=\"M5 .8v2.8H2.6V.8H1V8h1.6V5.1H5V8h1.6V.8zM20.9 6.6V.8h-1.6V8h4.5V6.6zM57.9 1.4c-1.7 0-2.8 1.4-2.8 3.4s1.2 3.4 2.8 3.4 2.8-1.4 2.8-3.4-1.1-3.4-2.8-3.4zm2 3.4c0 1.2-.5 2.7-2 2.7-1.4 0-2-1.4-2-2.7s.5-2.7 2-2.7 2 1.5 2 2.7zM86 4.7c0-2-1.1-3.3-2.8-3.3-1.7 0-2.8 1.4-2.8 3.4s1.2 3.4 2.9 3.4c1.2 0 2.2-.6 2.5-1.7l.1-.2H85v.1c-.3.6-.9 1-1.7 1-1.3 0-1.9-1.2-2-2.3H86v-.4zm-.9-.3h-3.9c.1-1.1.7-2.3 1.9-2.3 1.5 0 2 1.3 2 2.3zM49.2 1.4c-1.1 0-1.7.7-2 1.2v-1h-.8V8h.8V4.8c0-.9.5-2.6 1.9-2.6s1.6 1.2 1.6 2.6V8h.8V4.7c0-1.6-.2-3.3-2.3-3.3zM12.1 6.6V5h2.4V3.7h-2.4V2.2h3.2V.8h-4.8V8h4.9V6.6zM38.3 6.6V5h2.3V3.7h-2.3V2.2h3.2V.8h-4.8V8h4.9V6.6zM65.5 3.3V1.6h-.8V8h.8V4.1l2.8-2v-.9zM77.6 1.2l-1.5 1.1c-.5-.6-1.1-.9-1.9-.9-1.4 0-2.4 1-2.4 2.4 0 1.1.6 2 1.6 2.3l-1.6 1.8c-.4.5-.6.9-.6 1.3 0 1.3 1.1 2.1 2.9 2.1 1.7 0 2.9-.9 2.9-2.1 0-1.3-1.1-2.1-2.9-2.1h-.6l.8-.9c1.3-.1 2.3-1.1 2.3-2.4 0-.3 0-.6-.1-.8l1.2-.8v-1zM74 7.8c1.2 0 2.1.5 2.1 1.4 0 .8-.8 1.4-2.1 1.4-1.2 0-2-.5-2-1.4 0-.8.8-1.4 2-1.4zm.1-2.4c-.9 0-1.6-.7-1.6-1.7s.7-1.6 1.6-1.6c.9 0 1.6.7 1.6 1.6 0 1-.7 1.7-1.6 1.7zM30.4 3.7c-.7-.2-1.4-.5-1.4-1s.4-.7 1-.7.9.5.9.9V3h1.7v-.1c0-1.3-1.1-2.2-2.6-2.2-1.6 0-2.6.8-2.6 2.1 0 1.5 1.3 1.9 2.4 2.3.7.2 1.4.4 1.4.9s-.3.8-1.1.8c-.7 0-1.1-.4-1.1-1v-.1h-1.7v.1c0 1.5 1.1 2.4 2.8 2.4 1.7 0 2.7-.8 2.7-2.2-.1-1.5-1.4-2-2.4-2.3z\" />\n </g>\n </svg>\n);\n\nfunction Logo(props: LogoProps): JSX.Element {\n const { byline = false, ...restProps } = props;\n return byline ? <Byline {...restProps} /> : <Original {...restProps} />;\n}\n\nexport default Logo;\n"],"names":["Original","size","color","className","testId","React","AnalyticsId","getColor","Byline","Logo","props","byline","restProps"],"mappings":"oPAqBA,MAAMA,EAAW,CAAC,CAChB,KAAAC,EAAO,IACP,MAAAC,EAAQ,QACR,UAAAC,EAAY,GACZ,OAAAC,CACF,IAMEC,EAAA,cAAC,MAAA,CACC,MAAM,6BACN,MAAOJ,EACP,KAAM,MACN,kBAAgB,aAChB,QAAQ,cACR,UAAAE,EACA,cAAaC,EACb,mBAAkBE,EAAY,IAAA,EAE7BD,EAAA,cAAA,QAAA,CAAM,GAAI,YAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Logo/Logo.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AnalyticsId } from '../../constants';\nimport { getColor } from '../../theme/currys/color';\nimport { PaletteNames } from '../../theme/palette';\n\ntype LogoColor = 'black' | 'white';\n\ninterface LogoProps {\n /** Changes the size of the logo. */\n size?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /**\tChanges the color of the logo. */\n color?: LogoColor;\n /** Changes to the byline variant of the logo. */\n byline?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst Original = ({\n size = 300,\n color = 'black',\n className = '',\n testId,\n}: {\n size?: number;\n color?: LogoColor;\n className?: string;\n testId?: string;\n}): JSX.Element => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n role={'img'}\n aria-labelledby=\"logo-title\"\n viewBox=\"0 0 502 220\"\n className={className}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Logo}\n >\n <title id={'logo-title'}>{'Helsenorge'}</title>\n <g fill={getColor(color, 500)}>\n <path d=\"M39.8 2.5v26.9H17V2.5H1v69.9h16V43.6h22.8v28.8h16.1V2.5zM250.3 58.6V2.5h-16v69.9h43.5V58.6zM142.9 122.5c-16.1 0-27.4 13.6-27.4 33.1s11.2 33.1 27.4 33.1 27.4-13.6 27.4-33.1-11.3-33.1-27.4-33.1zm19 33.1c0 11.9-5 25.9-19 25.9s-19-13.9-19-25.9c0-11.9 5-25.9 19-25.9s19 14 19 25.9zM501 40c0-19.1-11.1-32.4-27-32.4-16.4 0-27.4 13.3-27.4 33.1 0 19.5 11.5 33.1 28 33.1 12.2 0 21.4-6 24.7-16.2l.5-1.6h-8.3l-.3.7c-2.8 6.2-8.8 9.8-16.6 9.8-12.9 0-18.5-11.5-19.5-22.7H501V40zm-8.3-3.2h-37.6c1-10.8 6.5-21.9 18.9-21.9 13.2 0 18.3 12.6 18.7 21.9zM30.4 122.4c-10.8 0-16.6 6.7-19.5 11.8v-9.9H3.3v62.6h8.1v-31.4c0-8.4 4.4-25.7 18.1-25.7 14 0 15.9 12 15.9 25v32.1h8.1v-32.1c.1-16.1-2.7-32.4-23.1-32.4zM134.3 59V43H157V30h-22.7V15.9H165V2.5h-46.4v69.9h47.3V59zM466.7 173.4v-16h22.7v-13h-22.7v-14.1h30.7v-13.4H451v69.9h47.3v-13.4zM246.7 140.5v-16.3h-7.6v62.6h8.1v-37.6l27.3-19.6v-9zM393.5 120.6l-14.7 10.5c-4.4-5.6-11.2-8.7-18.8-8.7-13.6 0-23.6 9.8-23.6 23.3 0 10.6 6.2 19.1 16 22.2l-16 17.5c-4 4.6-5.7 8.3-5.7 12.7 0 12.6 11.1 20.7 28.2 20.7 16.9 0 28.3-8.3 28.3-20.7 0-12.5-11.1-20.6-28.3-20.6-1.7 0-3.9.2-5.6.5l8-9c12.9-.7 22.2-10.4 22.2-23.3 0-2.8-.4-5.5-1.2-7.8 0-.1-.1-.2-.1-.3l11.2-8.1v-8.9zm-34.4 64.2c12.1 0 20 5.2 20 13.4s-7.8 13.5-20 13.5c-12.1 0-19.9-5.3-19.9-13.5 0-7.8 8.3-13.4 19.9-13.4zm.9-23c-8.8 0-15.2-6.8-15.2-16 0-9.3 6.4-16 15.2-16s15.2 6.7 15.2 16c0 9.2-6.4 16-15.2 16zM366.7 30.3c-6.6-2.3-13.5-4.7-13.5-9.2 0-4.8 4.2-7 9.3-7 5.4 0 9 4.5 9 8.5v.8h16.2v-.6c0-13-10.2-21.7-25.4-21.7-15.3 0-24.9 7.8-24.9 20.4 0 14.7 13.1 18.4 22.9 21.9 6.5 2.4 13.6 4.3 13.6 8.7 0 4.6-3.4 8-10.6 8-6.5 0-10.9-3.8-10.9-9.4v-.8h-16.7v.8c0 14.5 10.3 23.1 27.5 23.1 16.5 0 26-7.6 26-21.5 0-14.4-12.5-18.5-22.5-22z\" />\n </g>\n </svg>\n);\n\nconst Byline = ({\n size = 300,\n color = 'black',\n className = '',\n testId,\n}: {\n size?: number;\n color?: LogoColor;\n className?: string;\n testId?: string;\n}): JSX.Element => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n role={'img'}\n aria-labelledby=\"logo-title\"\n viewBox=\"0 0 87 12\"\n className={className}\n data-testid={testId}\n >\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9 0-1.6-.7-1.6-1.7s.7-1.6 1.6-1.6c.9 0 1.6.7 1.6 1.6 0 1-.7 1.7-1.6 1.7zM30.4 3.7c-.7-.2-1.4-.5-1.4-1s.4-.7 1-.7.9.5.9.9V3h1.7v-.1c0-1.3-1.1-2.2-2.6-2.2-1.6 0-2.6.8-2.6 2.1 0 1.5 1.3 1.9 2.4 2.3.7.2 1.4.4 1.4.9s-.3.8-1.1.8c-.7 0-1.1-.4-1.1-1v-.1h-1.7v.1c0 1.5 1.1 2.4 2.8 2.4 1.7 0 2.7-.8 2.7-2.2-.1-1.5-1.4-2-2.4-2.3z\" />\n </g>\n </svg>\n);\n\nfunction Logo(props: LogoProps): JSX.Element {\n const { byline = false, ...restProps } = props;\n return byline ? <Byline {...restProps} /> : <Original {...restProps} />;\n}\n\nexport default Logo;\n"],"names":["Original","size","color","className","testId","React","AnalyticsId","getColor","Byline","Logo","props","byline","restProps"],"mappings":"oPAqBA,MAAMA,EAAW,CAAC,CAChB,KAAAC,EAAO,IACP,MAAAC,EAAQ,QACR,UAAAC,EAAY,GACZ,OAAAC,CACF,IAMEC,EAAA,cAAC,MAAA,CACC,MAAM,6BACN,MAAOJ,EACP,KAAM,MACN,kBAAgB,aAChB,QAAQ,cACR,UAAAE,EACA,cAAaC,EACb,mBAAkBE,EAAY,IAAA,EAE7BD,EAAA,cAAA,QAAA,CAAM,GAAI,YAAA,EAAe,YAAa,EACvCA,EAAA,cAAC,IAAE,CAAA,KAAME,EAASL,EAAO,GAAG,CAAA,EACzBG,EAAA,cAAA,OAAA,CAAK,EAAE,+pDAAA,CAAgqD,CAC1qD,CACF,EAGIG,EAAS,CAAC,CACd,KAAAP,EAAO,IACP,MAAAC,EAAQ,QACR,UAAAC,EAAY,GACZ,OAAAC,CACF,IAMEC,EAAA,cAAC,MAAA,CACC,MAAM,6BACN,MAAOJ,EACP,KAAM,MACN,kBAAgB,aAChB,QAAQ,YACR,UAAAE,EACA,cAAaC,CAAA,EAEZC,EAAA,cAAA,QAAA,CAAM,GAAI,YAAA,EAAe,YAAa,EACvCA,EAAA,cAAC,IAAE,CAAA,KAAME,EAASL,EAAO,GAAG,CAAA,EACzBG,EAAA,cAAA,OAAA,CAAK,EAAE,uxCAAA,CAAwxC,CAClyC,CACF,EAGF,SAASI,EAAKC,EAA+B,CAC3C,KAAM,CAAE,OAAAC,EAAS,GAAO,GAAGC,GAAcF,EAClC,OAAAC,kBAAUH,EAAQ,CAAA,GAAGI,EAAW,EAAKP,EAAA,cAACL,EAAU,CAAA,GAAGY,CAAW,CAAA,CACvE"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
4
|
-
@import '../../scss/
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
5
6
|
|
|
6
7
|
.max-characters {
|
|
7
8
|
display: flex;
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
font-size: $font-size-sm;
|
|
12
13
|
line-height: $lineheight-size-sm;
|
|
13
14
|
|
|
14
|
-
@media (min-width: map
|
|
15
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
15
16
|
line-height: $lineheight-size-md;
|
|
16
17
|
font-size: $font-size-md;
|
|
17
18
|
}
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
&--on-dark {
|
|
20
21
|
color: $white;
|
|
21
22
|
}
|
|
23
|
+
|
|
22
24
|
&--invalid {
|
|
23
25
|
color: $cherry600;
|
|
24
26
|
font-weight: 600;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
4
|
-
@import '../../scss/
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/palette';
|
|
4
|
+
@import '../../scss/breakpoints';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
5
6
|
|
|
6
7
|
.modal-overlay {
|
|
7
|
-
background:
|
|
8
|
+
background: rgb(51 51 51 / 75%);
|
|
8
9
|
display: flex;
|
|
9
10
|
align-items: center;
|
|
10
11
|
justify-content: center;
|
|
11
12
|
position: fixed;
|
|
12
|
-
|
|
13
|
-
left: 0;
|
|
14
|
-
right: 0;
|
|
15
|
-
bottom: 0;
|
|
13
|
+
inset: 0;
|
|
16
14
|
|
|
17
15
|
@media print {
|
|
18
16
|
position: absolute;
|
|
@@ -32,7 +30,7 @@
|
|
|
32
30
|
|
|
33
31
|
.modal {
|
|
34
32
|
pointer-events: auto;
|
|
35
|
-
box-shadow:
|
|
33
|
+
box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%);
|
|
36
34
|
background-color: $white;
|
|
37
35
|
animation: open 200ms 1;
|
|
38
36
|
|
|
@@ -40,6 +38,7 @@
|
|
|
40
38
|
&--error {
|
|
41
39
|
color: $cherry600;
|
|
42
40
|
}
|
|
41
|
+
|
|
43
42
|
&--success {
|
|
44
43
|
color: $kiwi900;
|
|
45
44
|
}
|
|
@@ -48,6 +47,7 @@
|
|
|
48
47
|
&__iconWrapper {
|
|
49
48
|
padding-right: getSpacer(xs);
|
|
50
49
|
}
|
|
50
|
+
|
|
51
51
|
&__afterTitleChildren {
|
|
52
52
|
padding-left: getSpacer(xs);
|
|
53
53
|
}
|
|
@@ -59,12 +59,15 @@
|
|
|
59
59
|
&--normal {
|
|
60
60
|
background-color: $white;
|
|
61
61
|
}
|
|
62
|
+
|
|
62
63
|
&--error {
|
|
63
64
|
background-color: $cherry100;
|
|
64
65
|
}
|
|
66
|
+
|
|
65
67
|
&--warning {
|
|
66
68
|
background-color: $banana50;
|
|
67
69
|
}
|
|
70
|
+
|
|
68
71
|
&--success {
|
|
69
72
|
background-color: $kiwi50;
|
|
70
73
|
}
|
|
@@ -72,16 +75,19 @@
|
|
|
72
75
|
&--large {
|
|
73
76
|
width: calc(100vw - 0.75rem);
|
|
74
77
|
padding-bottom: getSpacer(l);
|
|
75
|
-
|
|
78
|
+
|
|
79
|
+
@media (max-width: map.get($grid-breakpoints, sm)) {
|
|
76
80
|
p {
|
|
77
81
|
font-size: 1.125rem;
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
|
-
|
|
84
|
+
|
|
85
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
81
86
|
padding-bottom: getSpacer(xl);
|
|
82
87
|
width: 612px;
|
|
83
88
|
}
|
|
84
|
-
|
|
89
|
+
|
|
90
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
85
91
|
width: 696px;
|
|
86
92
|
}
|
|
87
93
|
}
|
|
@@ -89,10 +95,12 @@
|
|
|
89
95
|
&--medium {
|
|
90
96
|
width: calc(100vw - 0.75rem);
|
|
91
97
|
padding-bottom: getSpacer(m);
|
|
92
|
-
|
|
98
|
+
|
|
99
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
93
100
|
width: 335px;
|
|
94
101
|
}
|
|
95
|
-
|
|
102
|
+
|
|
103
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
96
104
|
width: 515px;
|
|
97
105
|
}
|
|
98
106
|
}
|
|
@@ -103,7 +111,8 @@
|
|
|
103
111
|
|
|
104
112
|
&--image {
|
|
105
113
|
padding: 0;
|
|
106
|
-
|
|
114
|
+
|
|
115
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
107
116
|
max-height: calc(100vh - 24px);
|
|
108
117
|
max-width: calc(100vw - 24px);
|
|
109
118
|
width: 100%;
|
|
@@ -119,13 +128,13 @@
|
|
|
119
128
|
}
|
|
120
129
|
|
|
121
130
|
&__shadow--top {
|
|
122
|
-
//box-shadow: 0 3px 8px 4px grey;
|
|
123
|
-
background: linear-gradient(0deg,
|
|
131
|
+
// box-shadow: 0 3px 8px 4px grey;
|
|
132
|
+
background: linear-gradient(0deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 45.7%) 100%);
|
|
124
133
|
}
|
|
125
134
|
|
|
126
135
|
&__shadow--bottom {
|
|
127
|
-
//box-shadow: 0 -3px 8px 4px grey;
|
|
128
|
-
background: linear-gradient(180deg,
|
|
136
|
+
// box-shadow: 0 -3px 8px 4px grey;
|
|
137
|
+
background: linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 45.7%) 100%);
|
|
129
138
|
margin-top: -16px;
|
|
130
139
|
}
|
|
131
140
|
|
|
@@ -166,13 +175,16 @@
|
|
|
166
175
|
&__scroll {
|
|
167
176
|
&--large {
|
|
168
177
|
padding: getSpacer(xl) getSpacer(m) getSpacer(2xs) getSpacer(m);
|
|
169
|
-
|
|
178
|
+
|
|
179
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
170
180
|
padding: getSpacer(xl) getSpacer(xl) getSpacer(2xs) getSpacer(xl);
|
|
171
181
|
}
|
|
172
182
|
}
|
|
183
|
+
|
|
173
184
|
&--medium {
|
|
174
185
|
padding: getSpacer(l) getSpacer(m) getSpacer(2xs) getSpacer(m);
|
|
175
|
-
|
|
186
|
+
|
|
187
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
176
188
|
padding: getSpacer(xl) getSpacer(m) getSpacer(2xs) getSpacer(m);
|
|
177
189
|
}
|
|
178
190
|
}
|
|
@@ -184,6 +196,7 @@
|
|
|
184
196
|
&__title {
|
|
185
197
|
display: flex;
|
|
186
198
|
align-items: center;
|
|
199
|
+
|
|
187
200
|
div {
|
|
188
201
|
display: flex;
|
|
189
202
|
justify-content: center;
|
|
@@ -194,6 +207,7 @@
|
|
|
194
207
|
&__imageWrapper {
|
|
195
208
|
line-height: 0;
|
|
196
209
|
text-align: center;
|
|
210
|
+
|
|
197
211
|
img {
|
|
198
212
|
max-height: calc(100vh - 185px);
|
|
199
213
|
max-width: calc(100vw - 57px);
|
|
@@ -220,10 +234,12 @@
|
|
|
220
234
|
|
|
221
235
|
&--large {
|
|
222
236
|
padding: getSpacer(l) getSpacer(m) 0 getSpacer(m);
|
|
223
|
-
|
|
237
|
+
|
|
238
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
224
239
|
padding: getSpacer(l) getSpacer(xl) 0 getSpacer(xl);
|
|
225
240
|
}
|
|
226
241
|
}
|
|
242
|
+
|
|
227
243
|
&--medium {
|
|
228
244
|
padding: getSpacer(m) getSpacer(m) 0 getSpacer(m);
|
|
229
245
|
}
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
@import '../../../scss/
|
|
2
|
-
@import '../../../scss/
|
|
3
|
-
@import '../../../scss/
|
|
4
|
-
@import '../../../scss/
|
|
1
|
+
@import '../../../scss/spacers';
|
|
2
|
+
@import '../../../scss/breakpoints';
|
|
3
|
+
@import '../../../scss/font-settings';
|
|
4
|
+
@import '../../../scss/palette';
|
|
5
5
|
|
|
6
6
|
.notification-panel__detail-section {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column-reverse;
|
|
9
|
+
|
|
9
10
|
&__button--wrapper {
|
|
10
|
-
padding: 0.375rem 0 0.625rem
|
|
11
|
+
padding: 0.375rem 0 0.625rem;
|
|
11
12
|
font-size: $font-size-xs;
|
|
12
13
|
line-height: $lineheight-size-xs;
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
&__content {
|
|
15
17
|
padding: getSpacer(3xs) 0;
|
|
16
18
|
font-size: $font-size-xs;
|
|
17
19
|
line-height: $lineheight-size-xs;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
22
|
+
|
|
20
23
|
html .notification-panel__detail.notification-panel__detail-button {
|
|
21
24
|
text-decoration: underline;
|
|
22
25
|
text-decoration-color: $blueberry600;
|
|
@@ -28,6 +31,7 @@ html .notification-panel__detail.notification-panel__detail-button {
|
|
|
28
31
|
font-size: $font-size-sm;
|
|
29
32
|
line-height: 1.625rem;
|
|
30
33
|
height: 1.625rem;
|
|
34
|
+
|
|
31
35
|
@media (min-width: 0) {
|
|
32
36
|
min-height: unset;
|
|
33
37
|
}
|