mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
64 lines
1.7 KiB
Sass
64 lines
1.7 KiB
Sass
$notification-background-color: $background !default
|
|
$notification-code-background-color: $scheme-main !default
|
|
$notification-radius: $radius !default
|
|
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
|
|
|
|
.notification
|
|
@extend %block
|
|
background-color: $notification-background-color
|
|
border-radius: $notification-radius
|
|
padding: $notification-padding
|
|
position: relative
|
|
a:not(.button):not(.dropdown-item)
|
|
color: currentColor
|
|
text-decoration: underline
|
|
strong
|
|
color: currentColor
|
|
code,
|
|
pre
|
|
background: $notification-code-background-color
|
|
pre code
|
|
background: transparent
|
|
& > .delete
|
|
position: absolute
|
|
right: 0.5rem
|
|
top: 0.5rem
|
|
.title,
|
|
.subtitle,
|
|
.content
|
|
color: currentColor
|
|
// Colors
|
|
@each $name, $pair in $colors
|
|
$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
|
|
|
|
.vnotification
|
|
@extend %block
|
|
background-color: var(--background-color)
|
|
border-radius: $notification-radius
|
|
color: var(--color)
|
|
padding: $notification-padding
|
|
position: relative
|
|
& > .delete
|
|
position: absolute
|
|
right: 0.5rem
|
|
top: 0.5rem
|
|
@each $name, $trio in $colors
|
|
$base: "#{$prefix}#{$name}"
|
|
&.is-#{$name}
|
|
--background-color: var(--#{$base})
|
|
--color: var(--#{$base}-invert)
|
|
&.is-light
|
|
--background-color: var(--#{$base}-light)
|
|
--color: var(--#{$base}-dark)
|