Sha256: 1453f66fc33ebbadc4ac3ca3cd07d340bf3b08f152d86e155f58d36ad8ab9892

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 KB

Contents

//  Usage:
//    .l-page__flashes {
//      @include ultimate-flash($background-alpha: 0.7);
//      @include font_custom;
//      > .flash {
//        &.custom-type { }
//      }
//    }

@mixin ultimate-flash(
  $notice-background:     #393,
  $notice-border-color:   #6c6,
  $alert-background:      #c33,
  $alert-border-color:    #e66,
  $default-background:    #06c,
  $default-border-color:  #39e,
  $text-color:            #fff,
  $opacity:               1,
  $background-alpha:      1
){
  position:   fixed;
  width:      100%;
  left:       0;
  z-index:    9999;
  text-align: center;
// >>> recomendations:
// @include invert_link_decoration();
// white-space: nowrap;

  > .flash {
    @if $background-alpha < 1 {
      $notice-background:   rgba($notice-background,  $background-alpha);
      $alert-background:    rgba($alert-background,   $background-alpha);
      $default-background:  rgba($default-background, $background-alpha);
    }
    padding:       10px;
    top:           0;
    width:         100%;
    font-size:     24px;
    line-height:   30px;
    color:         $text-color;
    @include pie-bg($default-background);
    border-bottom: 2px solid $default-border-color;
    @if $opacity < 1 {
      @include opacity($opacity);
    }
    // >>> recomendations:
    // @include text-shadow_hard(#000 0 1px 0);
    z-index:       9999;
    a {
      color: $text-color;
    }
    &.notice {
      @include pie-bg($notice-background);
      border-color: $notice-border-color;
    }
    &.alert {
      @include pie-bg($alert-background);
      border-color: $alert-border-color;
    }
  }

}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ultimate-flash-0.6.1 app/assets/stylesheets/ultimate/flash.scss