.notification-message { background: rgba($gray-light, .95); color: $white; opacity: 0; padding: 1rem; position: fixed; top: 0; transform: translateY(-100%); width: 100%; z-index: 99920; &.inactive { transition: all .6s ease-in-out; } &.active { opacity: 1; transform: translateY(0); transition: all .6s ease-in-out; } .text { display: inline-block; margin-left: .5rem; width: 80%; p { margin: 0; } } .warning { @extend %xlarge; @extend %bold; color: $white; line-height: 2.4rem; } .icon-delete { color: $white; position: absolute; right: 1rem; top: 1rem; } } .notification-message-success { background: rgba($fresh-taiga, .9); .icon-notification-success { @extend %xxlarge; display: inline; vertical-align: sub; } } .notification-message-error { background: rgba($red, .9); .icon-notification-error { @extend %xxlarge; display: inline; vertical-align: sub; } } .notification-light { background: rgba($gray-light, .95); color: $white; left: calc(50% - 200px); padding: 1rem 1rem .2rem; position: absolute; top: 0; transform: translateY(-100%); width: 400px; z-index: 99999; &.inactive { transition: all .6s ease-in-out; } &.active { transform: translateY(0); transition: all .6s ease-in-out; } .text { display: inline-block; margin-left: .5rem; width: 80%; } .warning { @extend %large; @extend %bold; color: $white; line-height: 2.4rem; } .icon-delete { color: $white; position: absolute; right: 1rem; } } .notification-message-light-error { background: rgba($red, .95); }