From d01caa9cea28ff19c315f759f82b7ce935e218ee Mon Sep 17 00:00:00 2001 From: Marcin Lulek Date: Wed, 7 Sep 2016 12:53:27 +0200 Subject: [PATCH] toasts: refedined how notifications looks --- .../rhodecode-toast/rhodecode-toast.html | 5 ++- .../rhodecode-toast/rhodecode-toast.less | 36 ++++++------------- 2 files changed, 12 insertions(+), 29 deletions(-) diff --git a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html index efdcd874..c9b9f296 100644 --- a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html +++ b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html @@ -9,14 +9,13 @@
- {{_gettext('Close now')}} + {{_gettext('Close now')}}
diff --git a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.less b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.less index 4b02daea..af73e953 100644 --- a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.less +++ b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.less @@ -3,42 +3,26 @@ paper-toast{ width: 100%; min-width: 400px; - --paper-toast-background-color: #ffffff; + --paper-toast-background-color: transparent; --paper-toast-color: #000000; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; } paper-toast a{ font-weight: bold } .toast-message-holder { - width: ~'calc(100% - 150px)'; - display: inline-block; } .toast-close { - display: inline-block; - width: 145px; text-align: right; - float: right; -} -.toast-notification { - padding: 10px 0 10px 0; -} -.toast-level { - display: inline-block; - min-width: 100px; - font-weight: bold; - text-transform: uppercase; - &.info{ - color: @alert4; - } - &.success { - color: @alert1; - } - &.error, &.danger { - color: @alert2; - } - &.warning { - color: @alert3; + paper-button{ + box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15); } } +paper-toast .alert{ + margin: 0px 0 15px 0; + box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15); +}