Sha256: 38820acf6cfaafc3f1e6b147652c445fcc56f98fa8521759de04481a6f346aa4

Contents?: true

Size: 1.41 KB

Versions: 94

Compression:

Stored size: 1.41 KB

Contents

@import "../utilities/mixins"

$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-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

.notification
  @extend %block
  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)
    color: currentColor
    text-decoration: underline
  strong
    color: currentColor
  code,
  pre
    background: $notification-code-background-color
  pre code
    background: transparent
  & > .delete
    +ltr-position(0.5rem)
    position: absolute
    top: 0.5rem
  .title,
  .subtitle,
  .content
    color: currentColor
  // Colors
  @each $name, $pair in $notification-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

Version data entries

94 entries across 94 versions & 11 rubygems

Version Path
lesli-5.0.13 vendor/bulma/sass/elements/notification.sass
bulma-clean-theme-0.14.0 node_modules/bulma/sass/elements/notification.sass
lesli-5.0.11 vendor/bulma/sass/elements/notification.sass
lesli-5.0.10 vendor/bulma/sass/elements/notification.sass
lesli-5.0.9 vendor/bulma/sass/elements/notification.sass
lesli-5.0.7 vendor/bulma/sass/elements/notification.sass
lesli-5.0.6 vendor/bulma/sass/elements/notification.sass
lesli-5.0.5 vendor/bulma/sass/elements/notification.sass
lesli-5.0.4 vendor/bulma/sass/elements/notification.sass
lesli-5.0.3 vendor/bulma/sass/elements/notification.sass
bulma-clean-theme-0.13.3 node_modules/bulma/sass/elements/notification.sass
udt-itf-theme-0.1.0 _sass/node_modules/bulma/sass/elements/notification.sass
bulma-clean-theme-0.13.2 node_modules/bulma/sass/elements/notification.sass
bulma-rails-0.9.4 app/assets/stylesheets/sass/elements/notification.sass
bulma-sass-rails-0.9.4 app/assets/stylesheets/bulma/sass/elements/notification.sass
intia-theme-0.1.65 node_modules/bulma/sass/elements/notification.sass
intia-theme-0.1.64 node_modules/bulma/sass/elements/notification.sass
intia-theme-0.1.63 node_modules/bulma/sass/elements/notification.sass
intia-theme-0.1.62 node_modules/bulma/sass/elements/notification.sass
intia-theme-0.1.61 node_modules/bulma/sass/elements/notification.sass