@craftsjs/alert 5.0.0 → 5.1.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/_craftsjs-alert.theme.scss +119 -1
- package/package.json +1 -1
|
@@ -289,9 +289,127 @@
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
|
|
292
|
-
@mixin alert($variables) {
|
|
292
|
+
@mixin alert($variables, $theme) {
|
|
293
|
+
$foreground: map-get($theme, foreground);
|
|
294
|
+
|
|
295
|
+
.alert {
|
|
296
|
+
&-icon {
|
|
297
|
+
width: 80px;
|
|
298
|
+
height: 80px;
|
|
299
|
+
border-width: 4px;
|
|
300
|
+
border-style: solid;
|
|
301
|
+
border-radius: 50%;
|
|
302
|
+
padding: 0;
|
|
303
|
+
position: relative;
|
|
304
|
+
box-sizing: content-box;
|
|
305
|
+
margin: 20px auto;
|
|
306
|
+
|
|
307
|
+
&-custom {
|
|
308
|
+
width: auto;
|
|
309
|
+
height: auto;
|
|
310
|
+
max-width: 100%;
|
|
311
|
+
border: none;
|
|
312
|
+
border-radius: 0;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
& img {
|
|
316
|
+
max-width: 100%;
|
|
317
|
+
max-height: 100%;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&-title {
|
|
322
|
+
color: mat.get-color-from-palette($foreground, 'text');
|
|
323
|
+
font-weight: 600;
|
|
324
|
+
text-transform: none;
|
|
325
|
+
position: relative;
|
|
326
|
+
display: block;
|
|
327
|
+
font-size: 27px;
|
|
328
|
+
line-height: normal;
|
|
329
|
+
text-align: center;
|
|
330
|
+
margin-bottom: 0px;
|
|
331
|
+
|
|
332
|
+
&:first-child {
|
|
333
|
+
margin-top: 26px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
&:not(:first-child) {
|
|
337
|
+
padding-bottom: 0;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&:not(:last-child) {
|
|
341
|
+
margin-bottom: 13px;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&-text {
|
|
346
|
+
font-size: 16px;
|
|
347
|
+
position: relative;
|
|
348
|
+
float: none;
|
|
349
|
+
line-height: normal;
|
|
350
|
+
vertical-align: top;
|
|
351
|
+
text-align: center;
|
|
352
|
+
display: inline-block;
|
|
353
|
+
margin: 0;
|
|
354
|
+
padding: 0 10px;
|
|
355
|
+
font-weight: 400;
|
|
356
|
+
color: mat.get-color-from-palette($foreground, 'text');
|
|
357
|
+
overflow-wrap: break-word;
|
|
358
|
+
box-sizing: border-box;
|
|
359
|
+
width: 100%;
|
|
360
|
+
|
|
361
|
+
&:first-child {
|
|
362
|
+
margin-top: 45px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
&:last-child {
|
|
366
|
+
margin-bottom: 45px;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
&-footer {
|
|
371
|
+
text-align: right;
|
|
372
|
+
padding-top: 13px;
|
|
373
|
+
margin-top: 13px;
|
|
374
|
+
padding: 13px 16px;
|
|
375
|
+
border-radius: inherit;
|
|
376
|
+
border-top-left-radius: 0;
|
|
377
|
+
border-top-right-radius: 0;
|
|
378
|
+
|
|
379
|
+
&-button-container {
|
|
380
|
+
margin: 5px;
|
|
381
|
+
display: inline-block;
|
|
382
|
+
position: relative;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
&>* {
|
|
386
|
+
display: inline-block;
|
|
387
|
+
margin-right: 0.5em;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
&>:last-child {
|
|
391
|
+
margin-right: inherit;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
293
395
|
@include alert-error($variables);
|
|
294
396
|
@include alert-warning($variables);
|
|
295
397
|
@include alert-info($variables);
|
|
296
398
|
@include alert-success($variables);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
@mixin alert-color($theme) {
|
|
402
|
+
$foreground: map-get($theme, foreground);
|
|
403
|
+
color: mat.get-color-from-palette($foreground, 'text');
|
|
404
|
+
|
|
405
|
+
.alert {
|
|
406
|
+
// change color title
|
|
407
|
+
&-title {
|
|
408
|
+
color: mat.get-color-from-palette($foreground, 'text');
|
|
409
|
+
}
|
|
410
|
+
// change color text
|
|
411
|
+
&-text {
|
|
412
|
+
color: mat.get-color-from-palette($foreground, 'text');
|
|
413
|
+
}
|
|
414
|
+
}
|
|
297
415
|
}
|