summaryrefslogtreecommitdiff
path: root/styles/_sass/elements/notification.sass
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-07-11 10:59:50 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-07-11 10:59:50 -0400
commit66e98b7125c87706782b8247b8e0329473dbeb5a (patch)
tree4d33c71e5462aa991199159f7fa70c1b3acf355b /styles/_sass/elements/notification.sass
parent52daf90e6206a67414b2de2f7b741b9af2cd959a (diff)
downloadcobalt-site-66e98b7125c87706782b8247b8e0329473dbeb5a.tar.xz
cobalt-site-66e98b7125c87706782b8247b8e0329473dbeb5a.zip
reorganized assets and CSS, added a post
Diffstat (limited to 'styles/_sass/elements/notification.sass')
-rw-r--r--styles/_sass/elements/notification.sass35
1 files changed, 35 insertions, 0 deletions
diff --git a/styles/_sass/elements/notification.sass b/styles/_sass/elements/notification.sass
new file mode 100644
index 0000000..2bda414
--- /dev/null
+++ b/styles/_sass/elements/notification.sass
@@ -0,0 +1,35 @@
+$notification-background-color: $background !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: $white
+ 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