From c7ddcf86aa68af6a3c89fb6dd65b993815ed74eb Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Fri, 21 Aug 2015 11:08:06 -0400 Subject: using ionic content banners to display timed status messages --- .../scss/ionic.content.banner.scss | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 www/lib/ionic-content-banner/scss/ionic.content.banner.scss (limited to 'www/lib/ionic-content-banner/scss') 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 -- cgit v1.2.3