/** * Stylesheet * * @namespace Lungo.Widgets * @class Notification * * @author Javier Jimenez Villar || @soyjavi */ @import "__init.styl" LOADING = 104px WINDOW_WIDTH = 280px .notification position: absolute top: 0 left: 0 width: 100% height: 100% z-index: 1980 display: none &.show display-box() box-align(center) box-pack(center) &.push height: (HEADER_HEIGHT / 1.75) & .window position: relative opacity: 0 text-align: center transition-property opacity, margin-top transition-duration TRANSITION_TIME transition-timing-function DEFAULT_TRANSITION backface-visibility hidden &.show opacity: 1 margin-top: 0% !important &:not(.push) margin-top: 100% &.growl width: LOADING height: LOADING padding: 0 8px margin-top: 100% &.show & > .icon font-size: 52px line-height: LOADING & ~ strong position: relative top: -(LOADING / 4.5) height: 18px overflow: hidden & > .loading top: 26px display: block &.success, &.error, &.confirm, &.html padding-top: 16px width: WINDOW_WIDTH & > .icon font-size: 5em line-height: 1.0em & > strong font-size: FONT_SIZE_BIG padding-top: 4px & small padding-top: 8px padding-bottom: 16px & > strong, & small padding-left: 16px padding-right: 16px &.html .title height: HEADER_HEIGHT line-height: HEADER_HEIGHT font-size: FONT_SIZE_LARGE &.push position: absolute text-align: left height: H = (HEADER_HEIGHT / 1.75) line-height: H padding: 0 8px width: 100% margin-top: -(H) & .icon font-size: FONT_SIZE_LARGE float: left display: inline margin-right: 6px & button, & .button display: block margin-bottom: 1px height: 48px line-height: 48px border: none font-size: FONT_SIZE_LARGE & strong, small display: block