deps.rs/assets/styles/bulma/elements/notification.sass

56 lines
1.5 KiB
Sass
Raw Normal View History

@import "../utilities/mixins"
2018-01-29 09:42:34 +00:00
$notification-background-color: $background !default
$notification-code-background-color: $scheme-main !default
2018-01-29 09:42:34 +00:00
$notification-radius: $radius !default
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
$notification-padding-ltr: 1.25rem 2.5rem 1.25rem 1.5rem !default
$notification-padding-rtl: 1.25rem 1.5rem 1.25rem 2.5rem !default
$notification-colors: $colors !default
2018-01-29 09:42:34 +00:00
.notification
@extend %block
2018-01-29 09:42:34 +00:00
background-color: $notification-background-color
border-radius: $notification-radius
position: relative
+ltr
padding: $notification-padding-ltr
+rtl
padding: $notification-padding-rtl
a:not(.button):not(.dropdown-item)
2018-01-29 09:42:34 +00:00
color: currentColor
text-decoration: underline
strong
color: currentColor
code,
pre
background: $notification-code-background-color
2018-01-29 09:42:34 +00:00
pre code
background: transparent
& > .delete
+ltr-position(0.5rem)
2018-01-29 09:42:34 +00:00
position: absolute
top: 0.5rem
.title,
.subtitle,
.content
color: currentColor
// Colors
@each $name, $pair in $notification-colors
2018-01-29 09:42:34 +00:00
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
background-color: $color
color: $color-invert
// If light and dark colors are provided
@if length($pair) >= 4
$color-light: nth($pair, 3)
$color-dark: nth($pair, 4)
&.is-light
background-color: $color-light
color: $color-dark
ul
list-style: disc
padding: 0 40