notification.sass 838 B

1234567891011121314151617181920212223242526272829303132333435
  1. $notification-background-color: $background !default
  2. $notification-radius: $radius !default
  3. $notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
  4. .notification
  5. @extend %block
  6. background-color: $notification-background-color
  7. border-radius: $notification-radius
  8. padding: $notification-padding
  9. position: relative
  10. a:not(.button):not(.dropdown-item)
  11. color: currentColor
  12. text-decoration: underline
  13. strong
  14. color: currentColor
  15. code,
  16. pre
  17. background: $white
  18. pre code
  19. background: transparent
  20. & > .delete
  21. position: absolute
  22. right: 0.5rem
  23. top: 0.5rem
  24. .title,
  25. .subtitle,
  26. .content
  27. color: currentColor
  28. // Colors
  29. @each $name, $pair in $colors
  30. $color: nth($pair, 1)
  31. $color-invert: nth($pair, 2)
  32. &.is-#{$name}
  33. background-color: $color
  34. color: $color-invert