diff --git a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.html --- 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 @@ <paper-toast id="p-toast" duration="0" horizontal-offset="100" horizontal-align="auto" vertical-align="top" always-on-top> <div class="toast-message-holder"> <template is="dom-repeat" items="{{toasts}}"> - <div class="toast-notification"> - <span class$="toast-level {{item.level}}">{{item.level}}</span> + <div class$="alert alert-{{item.level}}"> <rhodecode-unsafe-html text="{{item.message}}"></rhodecode-unsafe-html> </div> </template> </div> <div class="toast-close"> - <paper-button on-tap="dismissNotifications" class="btn btn-primary">{{_gettext('Close now')}}</paper-button> + <paper-button on-tap="dismissNotifications" class="btn btn-default">{{_gettext('Close now')}}</paper-button> </div> </paper-toast> </template> diff --git a/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.less b/rhodecode/public/js/src/components/rhodecode-toast/rhodecode-toast.less --- 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); +}