diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-08-21 11:08:06 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-08-21 11:08:06 -0400 |
| commit | c7ddcf86aa68af6a3c89fb6dd65b993815ed74eb (patch) | |
| tree | 82df20f5d926d11cbf1cb8ddfeaa023750a447e7 /www/lib/ionic-content-banner/scss | |
| parent | 011278151f7a7e541547d4bd8e5e774d438f5ca2 (diff) | |
using ionic content banners to display timed status messages
Diffstat (limited to 'www/lib/ionic-content-banner/scss')
| -rw-r--r-- | www/lib/ionic-content-banner/scss/ionic.content.banner.scss | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/www/lib/ionic-content-banner/scss/ionic.content.banner.scss b/www/lib/ionic-content-banner/scss/ionic.content.banner.scss new file mode 100644 index 00000000..af57ea9f --- /dev/null +++ b/www/lib/ionic-content-banner/scss/ionic.content.banner.scss @@ -0,0 +1,71 @@ +// Content Banner + +// Variables +//----------------------------------- + +$content-banner-height: 30px !default; +$content-banner-opacity: .7 !default; +$content-banner-error-bg: red !default; +$content-banner-info-bg: #333 !default; + +// Styles +//----------------------------------- + +.content-banner { + width: 100%; + color: white; + height: $content-banner-height; + line-height: $content-banner-height; + position: absolute; + top: 0; + opacity: $content-banner-opacity; + + &.error { + background-color: $content-banner-error-bg; + } + &.info { + background-color: $content-banner-info-bg; + } + .content-banner-text { + @include transition(opacity 500ms linear) ; + position: absolute; + top: 0; + right: ($button-padding * 2) + 5px + 12px; + left: ($button-padding * 2) + 5px + 12px; + text-align: center; + &.active { + opacity: 1; + } + &:not(.active){ + opacity: 0; + } + } + .content-banner-close { + position: absolute; + right: 5px; + top: 0; + padding: 0 $button-padding; + height: 100%; + line-height: $content-banner-height; + min-height: 0; + color: white; + &:before { + line-height: $content-banner-height; + } + } +} + +.content-banner-transition-vertical { + @include transition-transform(linear 250ms); + @include translate3d(0, -100%, 0); +} + +.content-banner-transition-fade { + @include transition(opacity 400ms linear) ; + opacity: 0; +} + +.content-banner-in { + @include translate3d(0, 0, 0); + opacity: $content-banner-opacity; +}
\ No newline at end of file |
