@sb1/ffe-context-message 6.1.0 → 6.1.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.
- package/less/context-message.less +368 -2
- package/less/ffe-context-message.less +2 -368
- package/package.json +3 -3
|
@@ -1,2 +1,368 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Context message
|
|
2
|
+
//
|
|
3
|
+
// Markup:
|
|
4
|
+
// <div class="ffe-context-message ffe-context-message{{modifier_class}}">
|
|
5
|
+
// <div class="ffe-context-message-content">
|
|
6
|
+
// <div>
|
|
7
|
+
// <div class="ffe-body-text">
|
|
8
|
+
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
9
|
+
// </div>
|
|
10
|
+
// </div>
|
|
11
|
+
// </div>
|
|
12
|
+
// </div>
|
|
13
|
+
//
|
|
14
|
+
// --compact - Compact message
|
|
15
|
+
// --info - Info message
|
|
16
|
+
// --tips - Handy tips
|
|
17
|
+
// --success - Success message
|
|
18
|
+
// --error - Error message
|
|
19
|
+
//
|
|
20
|
+
// Styleguide ffe-context-message.context-message.1
|
|
21
|
+
|
|
22
|
+
// Context message with icon
|
|
23
|
+
//
|
|
24
|
+
// Markup:
|
|
25
|
+
// <div class="ffe-context-message ffe-context-message{{modifier_class}}">
|
|
26
|
+
// <div class="ffe-context-message-content">
|
|
27
|
+
// <div class="ffe-context-message-content__icon">
|
|
28
|
+
// <svg focusable="false" class="ffe-context-message-content__icon-svg" viewBox="0 0 200 200" height="150" width="150">
|
|
29
|
+
// <path d="m100-0.0003388c-35.47,0-65.5,28.32-65.5,61.88,0,21.22,7.235,31.9,14.91,43.13,3.558,5.222,7.221,10.57,10.67,17.57,4.448,9.222,5.775,19.97,6.22,25.42v0.1389c0.4419,5.52,4.948,9.806,10.46,9.861h0.1042,46.28c5.56,0,10.23-4.306,10.56-9.861v-0.1389c0.3336-5.444,1.661-16.31,6.22-25.42,3.447-7,7.109-12.35,10.67-17.57,7.7-11.22,14.9-21.9,14.9-43.13,0-33.55-29.9-61.87-65.5-61.87zm0,13.13c28.02,0,52.47,22.75,52.47,48.75,0,17.22-5.31,25.02-12.65,35.8-3.558,5.222-7.679,11.32-11.57,19.1-5.004,10-6.804,21.24-7.471,28.13h-15.12l-0.0348-55.69,14.94-15.42c2.113-2.111,2.008-5.465-0.1042-7.465l-0.4517-0.4167c-2.113-2.111-5.435-2.007-7.436,0.1042l-12.4,12.92-12.54-12.91c-2-2.11-5.36-2.11-7.47-0.11l-0.4517,0.4167c-2.113,2-2.106,5.354-0.1042,7.465l14.87,15.35,0.03475,55.76h-15.22c-0.67-6.9-2.58-18.1-7.47-28.1-3.89-7.8-7.9-13.8-11.57-19.13-7.34-10.77-12.65-18.57-12.65-35.8,0-26,24.56-48.75,52.47-48.75zm-30.47,153.2c-3.002,0-5.316,2.458-5.316,5.347v2.431c0,3,2.425,5.347,5.316,5.347h62.16c3.002,0,5.351-2.458,5.351-5.347v-2.431c0-3-2.46-5.347-5.351-5.347h-62.16zm8.131,20.56c-3.002,0-5.351,2.458-5.351,5.347v2.431c0,3,2.46,5.347,5.351,5.347h45.9c3.002,0,5.351-2.458,5.351-5.347v-2.431c0-3-2.46-5.347-5.351-5.347h-45.9z"></path>
|
|
30
|
+
// </svg>
|
|
31
|
+
// </div>
|
|
32
|
+
// <div>
|
|
33
|
+
// <div class="ffe-body-text">
|
|
34
|
+
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
35
|
+
// </div>
|
|
36
|
+
// </div>
|
|
37
|
+
// </div>
|
|
38
|
+
// </div>
|
|
39
|
+
//
|
|
40
|
+
// --compact - Compact message
|
|
41
|
+
// --info - Info message
|
|
42
|
+
// --tips - Handy tips
|
|
43
|
+
// --success - Success message
|
|
44
|
+
// --error - Error message
|
|
45
|
+
//
|
|
46
|
+
// Styleguide ffe-context-message.context-message.
|
|
47
|
+
|
|
48
|
+
.ffe-context-message-content {
|
|
49
|
+
align-items: center;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: row;
|
|
52
|
+
flex-wrap: nowrap;
|
|
53
|
+
padding: @ffe-spacing-sm;
|
|
54
|
+
text-align: left;
|
|
55
|
+
|
|
56
|
+
.ffe-body-paragraph,
|
|
57
|
+
.ffe-body-text {
|
|
58
|
+
.native & {
|
|
59
|
+
@media (prefers-color-scheme: dark) {
|
|
60
|
+
color: var(--ffe-farge-svart);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ffe-link-text:not(:focus) {
|
|
65
|
+
color: var(--ffe-farge-fjell);
|
|
66
|
+
border-color: var(--ffe-farge-fjell);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__header {
|
|
71
|
+
&:extend(.ffe-strong-text);
|
|
72
|
+
|
|
73
|
+
color: var(--ffe-farge-svart);
|
|
74
|
+
margin-bottom: @ffe-spacing-2xs;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__icon {
|
|
78
|
+
align-items: center;
|
|
79
|
+
align-self: center;
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
border: 2px solid;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
margin-right: @ffe-spacing-sm;
|
|
86
|
+
height: 2em;
|
|
87
|
+
width: 2em;
|
|
88
|
+
|
|
89
|
+
@media (min-width: @breakpoint-sm) {
|
|
90
|
+
align-self: flex-start;
|
|
91
|
+
margin-bottom: 0;
|
|
92
|
+
height: 4em;
|
|
93
|
+
width: 4em;
|
|
94
|
+
|
|
95
|
+
.native & {
|
|
96
|
+
@media (prefers-color-scheme: dark) {
|
|
97
|
+
background-color: var(--ffe-farge-svart);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&__icon-svg {
|
|
104
|
+
height: 1em;
|
|
105
|
+
width: 1em;
|
|
106
|
+
fill: var(--ffe-farge-svart);
|
|
107
|
+
|
|
108
|
+
@media (min-width: @breakpoint-sm) {
|
|
109
|
+
height: 2em;
|
|
110
|
+
width: 2em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.native & {
|
|
114
|
+
@media (prefers-color-scheme: dark) {
|
|
115
|
+
fill: var(--ffe-farge-hvit);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__close-button {
|
|
121
|
+
flex: 0 0 auto;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
color: var(--ffe-v-context-message-close-button-color);
|
|
124
|
+
fill: var(--ffe-v-context-message-close-button-color);
|
|
125
|
+
border: 2px solid transparent;
|
|
126
|
+
box-sizing: border-box;
|
|
127
|
+
padding-top: @ffe-spacing-xs;
|
|
128
|
+
outline: none;
|
|
129
|
+
background-color: transparent;
|
|
130
|
+
align-self: start;
|
|
131
|
+
height: 3rem;
|
|
132
|
+
width: 3rem;
|
|
133
|
+
|
|
134
|
+
&:hover {
|
|
135
|
+
fill: var(--ffe-v-context-message-close-button-color-hover);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:focus {
|
|
139
|
+
border: 2px solid
|
|
140
|
+
var(--ffe-v-context-message-close-button-border-color-focus);
|
|
141
|
+
border-radius: 5px;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&__close-button-svg {
|
|
146
|
+
height: 1rem;
|
|
147
|
+
width: 1rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@media (min-width: @breakpoint-sm) {
|
|
151
|
+
flex-direction: row;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ffe-context-message {
|
|
156
|
+
transition: height @ffe-transition-duration @ffe-ease-in-out-back;
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
position: relative;
|
|
159
|
+
border-radius: @ffe-spacing-xs;
|
|
160
|
+
width: 100%;
|
|
161
|
+
display: flex;
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
|
|
164
|
+
&--compact {
|
|
165
|
+
.ffe-context-message-content {
|
|
166
|
+
flex-direction: row;
|
|
167
|
+
padding: @ffe-spacing-xs @ffe-spacing-sm;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ffe-context-message-content__icon {
|
|
171
|
+
align-self: flex-start;
|
|
172
|
+
margin-bottom: 0;
|
|
173
|
+
margin-right: @ffe-spacing-sm;
|
|
174
|
+
border-radius: 50%;
|
|
175
|
+
height: 2em;
|
|
176
|
+
width: 2em;
|
|
177
|
+
border: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ffe-context-message-content__icon-svg {
|
|
181
|
+
height: 1rem;
|
|
182
|
+
width: 1rem;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&--info {
|
|
187
|
+
background-color: var(--ffe-v-context-message-info-bg-color);
|
|
188
|
+
|
|
189
|
+
.ffe-context-message-content__icon {
|
|
190
|
+
background-color: var(
|
|
191
|
+
--ffe-v-context-message-info-icon-compact-color
|
|
192
|
+
);
|
|
193
|
+
border-color: var(--ffe-v-context-message-info-icon-compact-color);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.ffe-context-message-content__icon-svg {
|
|
197
|
+
fill: var(--ffe-farge-hvit);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@media (min-width: @breakpoint-sm) {
|
|
201
|
+
.ffe-context-message-content__icon {
|
|
202
|
+
background-color: var(--ffe-v-context-message-icon-bg-color);
|
|
203
|
+
border-color: var(--ffe-v-context-message-info-icon-color);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ffe-context-message-content__icon-svg {
|
|
207
|
+
fill: var(--ffe-v-context-message-info-icon-color);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&--info&--coloredbg {
|
|
213
|
+
background-color: var(--ffe-v-context-message-variant-bg-color);
|
|
214
|
+
|
|
215
|
+
.native & {
|
|
216
|
+
@media (prefers-color-scheme: dark) {
|
|
217
|
+
background-color: var(--ffe-v-context-message-info-bg-color);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&--info&--compact {
|
|
223
|
+
.ffe-context-message-content__icon {
|
|
224
|
+
background-color: var(
|
|
225
|
+
--ffe-v-context-message-info-icon-compact-color
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ffe-context-message-content__icon-svg {
|
|
230
|
+
fill: var(--ffe-farge-hvit);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&--tips {
|
|
235
|
+
background-color: var(--ffe-v-context-message-tips-bg-color);
|
|
236
|
+
|
|
237
|
+
.ffe-context-message-content__icon {
|
|
238
|
+
background-color: var(--ffe-v-context-message-tips-icon-color);
|
|
239
|
+
border-color: var(--ffe-v-context-message-tips-icon-color);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ffe-context-message-content__icon-svg {
|
|
243
|
+
fill: var(--ffe-farge-hvit);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@media (min-width: @breakpoint-sm) {
|
|
247
|
+
.ffe-context-message-content__icon {
|
|
248
|
+
background-color: var(--ffe-v-context-message-icon-bg-color);
|
|
249
|
+
border-color: var(--ffe-v-context-message-tips-icon-color);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.ffe-context-message-content__icon-svg {
|
|
253
|
+
fill: var(--ffe-v-context-message-tips-icon-color);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&--tips&--coloredbg {
|
|
259
|
+
background-color: var(--ffe-v-context-message-variant-bg-color);
|
|
260
|
+
|
|
261
|
+
.native & {
|
|
262
|
+
@media (prefers-color-scheme: dark) {
|
|
263
|
+
background-color: var(--ffe-v-context-message-tips-bg-color);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&--tips&--compact {
|
|
269
|
+
.ffe-context-message-content__icon {
|
|
270
|
+
background-color: var(--ffe-v-context-message-tips-icon-color);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.ffe-context-message-content__icon-svg {
|
|
274
|
+
fill: var(--ffe-farge-hvit);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&--success {
|
|
279
|
+
background-color: var(--ffe-v-context-message-success-bg-color);
|
|
280
|
+
|
|
281
|
+
.ffe-context-message-content__icon {
|
|
282
|
+
background-color: var(
|
|
283
|
+
--ffe-v-context-message-success-compact-color
|
|
284
|
+
);
|
|
285
|
+
border-color: var(--ffe-v-context-message-success-compact-color);
|
|
286
|
+
}
|
|
287
|
+
.ffe-context-message-content__icon-svg {
|
|
288
|
+
fill: var(--ffe-farge-hvit);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@media (min-width: @breakpoint-sm) {
|
|
292
|
+
.ffe-context-message-content__icon {
|
|
293
|
+
background-color: var(--ffe-v-context-message-icon-bg-color);
|
|
294
|
+
border-color: var(--ffe-v-context-message-success-icon-color);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ffe-context-message-content__icon-svg {
|
|
298
|
+
fill: var(--ffe-v-context-message-success-icon-color);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&--success&--coloredbg {
|
|
304
|
+
background-color: var(--ffe-v-context-message-variant-bg-color);
|
|
305
|
+
|
|
306
|
+
.native & {
|
|
307
|
+
@media (prefers-color-scheme: dark) {
|
|
308
|
+
background-color: var(--ffe-v-context-message-success-bg-color);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&--success&--compact {
|
|
314
|
+
.ffe-context-message-content__icon {
|
|
315
|
+
background-color: var(
|
|
316
|
+
--ffe-v-context-message-success-compact-color
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.ffe-context-message-content__icon-svg {
|
|
321
|
+
fill: var(--ffe-farge-hvit);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&--error {
|
|
326
|
+
background-color: var(--ffe-v-context-message-error-bg-color);
|
|
327
|
+
|
|
328
|
+
.ffe-context-message-content__icon {
|
|
329
|
+
background-color: var(--ffe-v-context-message-error-icon-color);
|
|
330
|
+
border-color: var(--ffe-v-context-message-error-icon-color);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.ffe-context-message-content__icon-svg {
|
|
334
|
+
fill: var(--ffe-farge-hvit);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@media (min-width: @breakpoint-sm) {
|
|
338
|
+
.ffe-context-message-content__icon {
|
|
339
|
+
background-color: var(--ffe-v-context-message-icon-bg-color);
|
|
340
|
+
border-color: var(--ffe-v-context-message-error-icon-color);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.ffe-context-message-content__icon-svg {
|
|
344
|
+
fill: var(--ffe-v-context-message-error-icon-color);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
&--error&--coloredbg {
|
|
350
|
+
background-color: var(--ffe-v-context-message-variant-bg-color);
|
|
351
|
+
|
|
352
|
+
.native & {
|
|
353
|
+
@media (prefers-color-scheme: dark) {
|
|
354
|
+
background-color: var(--ffe-v-context-message-error-bg-color);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&--error&--compact {
|
|
360
|
+
.ffe-context-message-content__icon {
|
|
361
|
+
background-color: var(--ffe-v-context-message-error-icon-color);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.ffe-context-message-content__icon-svg {
|
|
365
|
+
fill: var(--ffe-farge-hvit);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
@@ -1,368 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// Markup:
|
|
4
|
-
// <div class="ffe-context-message ffe-context-message{{modifier_class}}">
|
|
5
|
-
// <div class="ffe-context-message-content">
|
|
6
|
-
// <div>
|
|
7
|
-
// <div class="ffe-body-text">
|
|
8
|
-
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
9
|
-
// </div>
|
|
10
|
-
// </div>
|
|
11
|
-
// </div>
|
|
12
|
-
// </div>
|
|
13
|
-
//
|
|
14
|
-
// --compact - Compact message
|
|
15
|
-
// --info - Info message
|
|
16
|
-
// --tips - Handy tips
|
|
17
|
-
// --success - Success message
|
|
18
|
-
// --error - Error message
|
|
19
|
-
//
|
|
20
|
-
// Styleguide ffe-context-message.context-message.1
|
|
21
|
-
|
|
22
|
-
// Context message with icon
|
|
23
|
-
//
|
|
24
|
-
// Markup:
|
|
25
|
-
// <div class="ffe-context-message ffe-context-message{{modifier_class}}">
|
|
26
|
-
// <div class="ffe-context-message-content">
|
|
27
|
-
// <div class="ffe-context-message-content__icon">
|
|
28
|
-
// <svg focusable="false" class="ffe-context-message-content__icon-svg" viewBox="0 0 200 200" height="150" width="150">
|
|
29
|
-
// <path d="m100-0.0003388c-35.47,0-65.5,28.32-65.5,61.88,0,21.22,7.235,31.9,14.91,43.13,3.558,5.222,7.221,10.57,10.67,17.57,4.448,9.222,5.775,19.97,6.22,25.42v0.1389c0.4419,5.52,4.948,9.806,10.46,9.861h0.1042,46.28c5.56,0,10.23-4.306,10.56-9.861v-0.1389c0.3336-5.444,1.661-16.31,6.22-25.42,3.447-7,7.109-12.35,10.67-17.57,7.7-11.22,14.9-21.9,14.9-43.13,0-33.55-29.9-61.87-65.5-61.87zm0,13.13c28.02,0,52.47,22.75,52.47,48.75,0,17.22-5.31,25.02-12.65,35.8-3.558,5.222-7.679,11.32-11.57,19.1-5.004,10-6.804,21.24-7.471,28.13h-15.12l-0.0348-55.69,14.94-15.42c2.113-2.111,2.008-5.465-0.1042-7.465l-0.4517-0.4167c-2.113-2.111-5.435-2.007-7.436,0.1042l-12.4,12.92-12.54-12.91c-2-2.11-5.36-2.11-7.47-0.11l-0.4517,0.4167c-2.113,2-2.106,5.354-0.1042,7.465l14.87,15.35,0.03475,55.76h-15.22c-0.67-6.9-2.58-18.1-7.47-28.1-3.89-7.8-7.9-13.8-11.57-19.13-7.34-10.77-12.65-18.57-12.65-35.8,0-26,24.56-48.75,52.47-48.75zm-30.47,153.2c-3.002,0-5.316,2.458-5.316,5.347v2.431c0,3,2.425,5.347,5.316,5.347h62.16c3.002,0,5.351-2.458,5.351-5.347v-2.431c0-3-2.46-5.347-5.351-5.347h-62.16zm8.131,20.56c-3.002,0-5.351,2.458-5.351,5.347v2.431c0,3,2.46,5.347,5.351,5.347h45.9c3.002,0,5.351-2.458,5.351-5.347v-2.431c0-3-2.46-5.347-5.351-5.347h-45.9z"></path>
|
|
30
|
-
// </svg>
|
|
31
|
-
// </div>
|
|
32
|
-
// <div>
|
|
33
|
-
// <div class="ffe-body-text">
|
|
34
|
-
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
35
|
-
// </div>
|
|
36
|
-
// </div>
|
|
37
|
-
// </div>
|
|
38
|
-
// </div>
|
|
39
|
-
//
|
|
40
|
-
// --compact - Compact message
|
|
41
|
-
// --info - Info message
|
|
42
|
-
// --tips - Handy tips
|
|
43
|
-
// --success - Success message
|
|
44
|
-
// --error - Error message
|
|
45
|
-
//
|
|
46
|
-
// Styleguide ffe-context-message.context-message.
|
|
47
|
-
|
|
48
|
-
.ffe-context-message-content {
|
|
49
|
-
align-items: center;
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction: row;
|
|
52
|
-
flex-wrap: nowrap;
|
|
53
|
-
padding: @ffe-spacing-sm;
|
|
54
|
-
text-align: left;
|
|
55
|
-
|
|
56
|
-
.ffe-body-paragraph,
|
|
57
|
-
.ffe-body-text {
|
|
58
|
-
.native & {
|
|
59
|
-
@media (prefers-color-scheme: dark) {
|
|
60
|
-
color: var(--ffe-farge-svart);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.ffe-link-text:not(:focus) {
|
|
65
|
-
color: var(--ffe-farge-fjell);
|
|
66
|
-
border-color: var(--ffe-farge-fjell);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&__header {
|
|
71
|
-
&:extend(.ffe-strong-text);
|
|
72
|
-
|
|
73
|
-
color: var(--ffe-farge-svart);
|
|
74
|
-
margin-bottom: @ffe-spacing-2xs;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__icon {
|
|
78
|
-
align-items: center;
|
|
79
|
-
align-self: center;
|
|
80
|
-
display: flex;
|
|
81
|
-
flex-shrink: 0;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
border: 2px solid;
|
|
84
|
-
border-radius: 50%;
|
|
85
|
-
margin-right: @ffe-spacing-sm;
|
|
86
|
-
height: 2em;
|
|
87
|
-
width: 2em;
|
|
88
|
-
|
|
89
|
-
@media (min-width: @breakpoint-sm) {
|
|
90
|
-
align-self: flex-start;
|
|
91
|
-
margin-bottom: 0;
|
|
92
|
-
height: 4em;
|
|
93
|
-
width: 4em;
|
|
94
|
-
|
|
95
|
-
.native & {
|
|
96
|
-
@media (prefers-color-scheme: dark) {
|
|
97
|
-
background-color: var(--ffe-farge-svart);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&__icon-svg {
|
|
104
|
-
height: 1em;
|
|
105
|
-
width: 1em;
|
|
106
|
-
fill: var(--ffe-farge-svart);
|
|
107
|
-
|
|
108
|
-
@media (min-width: @breakpoint-sm) {
|
|
109
|
-
height: 2em;
|
|
110
|
-
width: 2em;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.native & {
|
|
114
|
-
@media (prefers-color-scheme: dark) {
|
|
115
|
-
fill: var(--ffe-farge-hvit);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&__close-button {
|
|
121
|
-
flex: 0 0 auto;
|
|
122
|
-
cursor: pointer;
|
|
123
|
-
color: var(--ffe-v-context-message-close-button-color);
|
|
124
|
-
fill: var(--ffe-v-context-message-close-button-color);
|
|
125
|
-
border: 2px solid transparent;
|
|
126
|
-
box-sizing: border-box;
|
|
127
|
-
padding-top: @ffe-spacing-xs;
|
|
128
|
-
outline: none;
|
|
129
|
-
background-color: transparent;
|
|
130
|
-
align-self: start;
|
|
131
|
-
height: 3rem;
|
|
132
|
-
width: 3rem;
|
|
133
|
-
|
|
134
|
-
&:hover {
|
|
135
|
-
fill: var(--ffe-v-context-message-close-button-color-hover);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&:focus {
|
|
139
|
-
border: 2px solid
|
|
140
|
-
var(--ffe-v-context-message-close-button-border-color-focus);
|
|
141
|
-
border-radius: 5px;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
&__close-button-svg {
|
|
146
|
-
height: 1rem;
|
|
147
|
-
width: 1rem;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@media (min-width: @breakpoint-sm) {
|
|
151
|
-
flex-direction: row;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.ffe-context-message {
|
|
156
|
-
transition: height @ffe-transition-duration @ffe-ease-in-out-back;
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
position: relative;
|
|
159
|
-
border-radius: @ffe-spacing-xs;
|
|
160
|
-
width: 100%;
|
|
161
|
-
display: flex;
|
|
162
|
-
justify-content: space-between;
|
|
163
|
-
|
|
164
|
-
&--compact {
|
|
165
|
-
.ffe-context-message-content {
|
|
166
|
-
flex-direction: row;
|
|
167
|
-
padding: @ffe-spacing-xs @ffe-spacing-sm;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.ffe-context-message-content__icon {
|
|
171
|
-
align-self: flex-start;
|
|
172
|
-
margin-bottom: 0;
|
|
173
|
-
margin-right: @ffe-spacing-sm;
|
|
174
|
-
border-radius: 50%;
|
|
175
|
-
height: 2em;
|
|
176
|
-
width: 2em;
|
|
177
|
-
border: none;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.ffe-context-message-content__icon-svg {
|
|
181
|
-
height: 1rem;
|
|
182
|
-
width: 1rem;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&--info {
|
|
187
|
-
background-color: var(--ffe-v-context-message-info-bg-color);
|
|
188
|
-
|
|
189
|
-
.ffe-context-message-content__icon {
|
|
190
|
-
background-color: var(
|
|
191
|
-
--ffe-v-context-message-info-icon-compact-color
|
|
192
|
-
);
|
|
193
|
-
border-color: var(--ffe-v-context-message-info-icon-compact-color);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.ffe-context-message-content__icon-svg {
|
|
197
|
-
fill: var(--ffe-farge-hvit);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
@media (min-width: @breakpoint-sm) {
|
|
201
|
-
.ffe-context-message-content__icon {
|
|
202
|
-
background-color: var(--ffe-v-context-message-icon-bg-color);
|
|
203
|
-
border-color: var(--ffe-v-context-message-info-icon-color);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.ffe-context-message-content__icon-svg {
|
|
207
|
-
fill: var(--ffe-v-context-message-info-icon-color);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&--info&--coloredbg {
|
|
213
|
-
background-color: var(--ffe-v-context-message-variant-bg-color);
|
|
214
|
-
|
|
215
|
-
.native & {
|
|
216
|
-
@media (prefers-color-scheme: dark) {
|
|
217
|
-
background-color: var(--ffe-v-context-message-info-bg-color);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&--info&--compact {
|
|
223
|
-
.ffe-context-message-content__icon {
|
|
224
|
-
background-color: var(
|
|
225
|
-
--ffe-v-context-message-info-icon-compact-color
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.ffe-context-message-content__icon-svg {
|
|
230
|
-
fill: var(--ffe-farge-hvit);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
&--tips {
|
|
235
|
-
background-color: var(--ffe-v-context-message-tips-bg-color);
|
|
236
|
-
|
|
237
|
-
.ffe-context-message-content__icon {
|
|
238
|
-
background-color: var(--ffe-v-context-message-tips-icon-color);
|
|
239
|
-
border-color: var(--ffe-v-context-message-tips-icon-color);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.ffe-context-message-content__icon-svg {
|
|
243
|
-
fill: var(--ffe-farge-hvit);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
@media (min-width: @breakpoint-sm) {
|
|
247
|
-
.ffe-context-message-content__icon {
|
|
248
|
-
background-color: var(--ffe-v-context-message-icon-bg-color);
|
|
249
|
-
border-color: var(--ffe-v-context-message-tips-icon-color);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.ffe-context-message-content__icon-svg {
|
|
253
|
-
fill: var(--ffe-v-context-message-tips-icon-color);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
&--tips&--coloredbg {
|
|
259
|
-
background-color: var(--ffe-v-context-message-variant-bg-color);
|
|
260
|
-
|
|
261
|
-
.native & {
|
|
262
|
-
@media (prefers-color-scheme: dark) {
|
|
263
|
-
background-color: var(--ffe-v-context-message-tips-bg-color);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
&--tips&--compact {
|
|
269
|
-
.ffe-context-message-content__icon {
|
|
270
|
-
background-color: var(--ffe-v-context-message-tips-icon-color);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.ffe-context-message-content__icon-svg {
|
|
274
|
-
fill: var(--ffe-farge-hvit);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
&--success {
|
|
279
|
-
background-color: var(--ffe-v-context-message-success-bg-color);
|
|
280
|
-
|
|
281
|
-
.ffe-context-message-content__icon {
|
|
282
|
-
background-color: var(
|
|
283
|
-
--ffe-v-context-message-success-compact-color
|
|
284
|
-
);
|
|
285
|
-
border-color: var(--ffe-v-context-message-success-compact-color);
|
|
286
|
-
}
|
|
287
|
-
.ffe-context-message-content__icon-svg {
|
|
288
|
-
fill: var(--ffe-farge-hvit);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
@media (min-width: @breakpoint-sm) {
|
|
292
|
-
.ffe-context-message-content__icon {
|
|
293
|
-
background-color: var(--ffe-v-context-message-icon-bg-color);
|
|
294
|
-
border-color: var(--ffe-v-context-message-success-icon-color);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.ffe-context-message-content__icon-svg {
|
|
298
|
-
fill: var(--ffe-v-context-message-success-icon-color);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
&--success&--coloredbg {
|
|
304
|
-
background-color: var(--ffe-v-context-message-variant-bg-color);
|
|
305
|
-
|
|
306
|
-
.native & {
|
|
307
|
-
@media (prefers-color-scheme: dark) {
|
|
308
|
-
background-color: var(--ffe-v-context-message-success-bg-color);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
&--success&--compact {
|
|
314
|
-
.ffe-context-message-content__icon {
|
|
315
|
-
background-color: var(
|
|
316
|
-
--ffe-v-context-message-success-compact-color
|
|
317
|
-
);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.ffe-context-message-content__icon-svg {
|
|
321
|
-
fill: var(--ffe-farge-hvit);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
&--error {
|
|
326
|
-
background-color: var(--ffe-v-context-message-error-bg-color);
|
|
327
|
-
|
|
328
|
-
.ffe-context-message-content__icon {
|
|
329
|
-
background-color: var(--ffe-v-context-message-error-icon-color);
|
|
330
|
-
border-color: var(--ffe-v-context-message-error-icon-color);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.ffe-context-message-content__icon-svg {
|
|
334
|
-
fill: var(--ffe-farge-hvit);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
@media (min-width: @breakpoint-sm) {
|
|
338
|
-
.ffe-context-message-content__icon {
|
|
339
|
-
background-color: var(--ffe-v-context-message-icon-bg-color);
|
|
340
|
-
border-color: var(--ffe-v-context-message-error-icon-color);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.ffe-context-message-content__icon-svg {
|
|
344
|
-
fill: var(--ffe-v-context-message-error-icon-color);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
&--error&--coloredbg {
|
|
350
|
-
background-color: var(--ffe-v-context-message-variant-bg-color);
|
|
351
|
-
|
|
352
|
-
.native & {
|
|
353
|
-
@media (prefers-color-scheme: dark) {
|
|
354
|
-
background-color: var(--ffe-v-context-message-error-bg-color);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
&--error&--compact {
|
|
360
|
-
.ffe-context-message-content__icon {
|
|
361
|
-
background-color: var(--ffe-v-context-message-error-icon-color);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.ffe-context-message-content__icon-svg {
|
|
365
|
-
fill: var(--ffe-farge-hvit);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
1
|
+
@import 'theme';
|
|
2
|
+
@import 'context-message';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-context-message",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "Messagebox showing non-critical tip or information about a page or product",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ffe"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@sb1/ffe-buildtool": "^0.5.0",
|
|
23
|
-
"@sb1/ffe-core": "^26.1.
|
|
23
|
+
"@sb1/ffe-core": "^26.1.1"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@sb1/ffe-core": "*"
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "9221438cd6f3e829240ba1994ff1b8c32d50e36a"
|
|
32
32
|
}
|