Sha256: 1d473f6ec2e684df5707cbf0dc64e2c787b81a8867e3a0fbd478a3dfa0f7e92b
Contents?: true
Size: 1.73 KB
Versions: 1
Compression:
Stored size: 1.73 KB
Contents
// NOTE: This style require usage of https://github.com/evrone/ultimate-mixins or Piebone // // 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; top: 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 box-sizing(border-box); @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.9.2 | app/assets/stylesheets/ultimate/flash.scss |