@helsenorge/designsystem-react 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
@import '../../scss/_palette.scss';
|
|
4
4
|
@import '../../scss/_grid.scss';
|
|
5
5
|
|
|
6
|
+
@mixin content-wrapper-with-icon-flex {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
|
|
10
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin content-wrapper-with-icon-padding {
|
|
16
|
+
padding-top: getSpacer(s);
|
|
17
|
+
|
|
18
|
+
@media (min-width: map-get($grid-breakpoints, xl)) {
|
|
19
|
+
padding-top: getSpacer(m);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
6
23
|
.highlightbox {
|
|
7
24
|
$box: &;
|
|
8
25
|
$colors: 'blueberry', 'cherry', 'neutral', 'kiwi', 'plum';
|
|
@@ -88,7 +105,9 @@
|
|
|
88
105
|
|
|
89
106
|
&--has-icon#{&}--medium {
|
|
90
107
|
#{$box}__content-wrapper {
|
|
91
|
-
|
|
108
|
+
@include content-wrapper-with-icon-flex;
|
|
109
|
+
@include content-wrapper-with-icon-padding;
|
|
110
|
+
|
|
92
111
|
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
93
112
|
padding-left: getSpacer(m);
|
|
94
113
|
}
|
|
@@ -97,9 +116,10 @@
|
|
|
97
116
|
|
|
98
117
|
&--has-icon#{&}--large {
|
|
99
118
|
#{$box}__col {
|
|
100
|
-
|
|
119
|
+
@include content-wrapper-with-icon-flex;
|
|
101
120
|
}
|
|
102
121
|
#{$box}__content-wrapper {
|
|
122
|
+
@include content-wrapper-with-icon-padding;
|
|
103
123
|
@media (min-width: map-get($grid-breakpoints, sm)) {
|
|
104
124
|
padding-left: getSpacer(s);
|
|
105
125
|
}
|
|
@@ -132,12 +152,25 @@
|
|
|
132
152
|
}
|
|
133
153
|
}
|
|
134
154
|
|
|
155
|
+
&__content {
|
|
156
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
157
|
+
margin-top: 0.625rem;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
135
161
|
&--has-icon#{&}--fluid {
|
|
136
|
-
|
|
162
|
+
@include content-wrapper-with-icon-flex;
|
|
163
|
+
@include content-wrapper-with-icon-padding;
|
|
137
164
|
}
|
|
138
165
|
|
|
139
166
|
&__icon {
|
|
167
|
+
display: inline-flex;
|
|
140
168
|
margin-right: getSpacer(s);
|
|
169
|
+
margin-bottom: getSpacer(2xs);
|
|
170
|
+
|
|
171
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
172
|
+
margin-bottom: 0;
|
|
173
|
+
}
|
|
141
174
|
}
|
|
142
175
|
|
|
143
176
|
&__row {
|