bulma/sass/elements/notification.sass

36 lines
838 B
Sass
Raw Normal View History

2017-07-28 20:05:15 +00:00
$notification-background-color: $background !default
$notification-radius: $radius !default
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
2016-01-24 00:03:43 +00:00
.notification
2018-09-04 13:24:50 +00:00
@extend %block
2017-07-28 20:05:15 +00:00
background-color: $notification-background-color
border-radius: $notification-radius
padding: $notification-padding
2016-01-24 00:03:43 +00:00
position: relative
a:not(.button):not(.dropdown-item)
2017-03-31 21:25:53 +00:00
color: currentColor
text-decoration: underline
2017-07-05 20:27:23 +00:00
strong
color: currentColor
2016-10-30 23:44:50 +00:00
code,
pre
background: $white
pre code
background: transparent
2017-03-26 16:33:13 +00:00
& > .delete
2016-10-30 10:41:53 +00:00
position: absolute
right: 0.5rem
top: 0.5rem
2016-09-22 22:14:18 +00:00
.title,
.subtitle,
2016-09-22 22:14:18 +00:00
.content
2017-07-05 20:27:23 +00:00
color: currentColor
2016-04-10 15:00:32 +00:00
// Colors
2016-01-24 00:03:43 +00:00
@each $name, $pair in $colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
2016-06-29 22:59:48 +00:00
background-color: $color
2016-01-24 00:03:43 +00:00
color: $color-invert