| 1 |
@import "../utilities/mixins" |
| 2 |
|
| 3 |
$notification-background-color: $background !default |
| 4 |
$notification-code-background-color: $scheme-main !default |
| 5 |
$notification-radius: $radius !default |
| 6 |
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default |
| 7 |
$notification-padding-ltr: 1.25rem 2.5rem 1.25rem 1.5rem !default |
| 8 |
$notification-padding-rtl: 1.25rem 1.5rem 1.25rem 2.5rem !default |
| 9 |
|
| 10 |
$notification-colors: $colors !default |
| 11 |
|
| 12 |
.notification |
| 13 |
@extend %block |
| 14 |
background-color: $notification-background-color |
| 15 |
border-radius: $notification-radius |
| 16 |
position: relative |
| 17 |
+ltr |
| 18 |
padding: $notification-padding-ltr |
| 19 |
+rtl |
| 20 |
padding: $notification-padding-rtl |
| 21 |
a:not(.button):not(.dropdown-item) |
| 22 |
color: currentColor |
| 23 |
text-decoration: underline |
| 24 |
strong |
| 25 |
color: currentColor |
| 26 |
code, |
| 27 |
pre |
| 28 |
background: $notification-code-background-color |
| 29 |
pre code |
| 30 |
background: transparent |
| 31 |
& > .delete |
| 32 |
+ltr-position(0.5rem) |
| 33 |
position: absolute |
| 34 |
top: 0.5rem |
| 35 |
.title, |
| 36 |
.subtitle, |
| 37 |
.content |
| 38 |
color: currentColor |
| 39 |
// Colors |
| 40 |
@each $name, $pair in $notification-colors |
| 41 |
$color: nth($pair, 1) |
| 42 |
$color-invert: nth($pair, 2) |
| 43 |
&.is-#{$name} |
| 44 |
background-color: $color |
| 45 |
color: $color-invert |
| 46 |
// If light and dark colors are provided |
| 47 |
@if length($pair) >= 4 |
| 48 |
$color-light: nth($pair, 3) |
| 49 |
$color-dark: nth($pair, 4) |
| 50 |
&.is-light |
| 51 |
background-color: $color-light |
| 52 |
color: $color-dark |