Sha256: 3ff8edded2c0a7e8f6f59e28dccfa9a8c9942392b2f8d1a78cb9b5f64ade079b

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

.message-body
  border: 1px solid $border
  border-radius: $radius
  padding: 12px 15px
  strong
    color: inherit

.message-header
  background-color: $text
  border-radius: $radius $radius 0 0
  color: $text-invert
  padding: 7px 10px
  strong
    color: inherit
  & + .message-body
    border-radius: 0 0 $radius $radius
    border-top: none

.message
  @extend .block
  background-color: $background
  border-radius: $radius
  // Colors
  @each $name, $pair in $colors
    $color: nth($pair, 1)
    $color-invert: nth($pair, 2)
    $lightning: max((100% - lightness($color)) - 4%, 0%)
    $darkness: max(lightness($color) - 10%, lightness($color))
    &.is-#{$name}
      background-color: lighten($color, $lightning)
      .message-header
        background-color: $color
        color: $color-invert
      .message-body
        border-color: $color
        @if (colorLuminance($color) > 0.8)
          color: desaturate(lighten(darken($color, 100%), 40%), 40%)
        @else
          color: desaturate(lighten(darken($color, 100%), 50%), 30%)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bulma-rails-0.1.2 app/assets/stylesheets/sass/components/message.sass
bulma-rails-0.1.0 app/assets/stylesheets/sass/components/message.sass