From 6972a1d0c039b4f1b4843720b2dea50ffecc102f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Thu, 15 Oct 2015 15:13:06 +0200 Subject: [PATCH] Notification light refactor --- .../components/notification-message.scss | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/app/styles/components/notification-message.scss b/app/styles/components/notification-message.scss index e2e9e451..1b0c1c64 100644 --- a/app/styles/components/notification-message.scss +++ b/app/styles/components/notification-message.scss @@ -96,40 +96,45 @@ } .notification-light { + align-items: center; background: rgba($gray-light, .95); color: $white; - left: calc(50% - 200px); - padding: 1rem 1rem .2rem; + display: flex; + justify-content: space-between; + opacity: 0; + padding: 1rem; position: absolute; top: 0; transform: translateY(-100%); - width: 400px; + transition: all .6s; + width: 100%; z-index: 99999; &.inactive { - transition: all .6s ease-in-out; + opacity: 0; + transform: translateY(-100%); + transition: all .6s; } &.active { + opacity: 1; transform: translateY(0); - transition: all .6s ease-in-out; + transition: all .6s; } - .text { - display: inline-block; - margin-left: .5rem; - width: 80%; + p { + @extend %light; + @extend %small; + margin: 0; } .warning { - @extend %large; - @extend %bold; color: $white; - line-height: 2.4rem; + line-height: 1.5rem; } .icon-delete { + @extend %larger; color: $white; - position: absolute; - right: 1rem; + margin-right: 1rem; } } .notification-message-light-error { - background: rgba($red, .95); + background: rgba($red, .8); }