##// END OF EJS Templates
toasts: refedined how notifications looks
ergo -
r747:ca67c281 default
parent child Browse files
Show More
@@ -9,14 +9,13 b''
9 9 <paper-toast id="p-toast" duration="0" horizontal-offset="100" horizontal-align="auto" vertical-align="top" always-on-top>
10 10 <div class="toast-message-holder">
11 11 <template is="dom-repeat" items="{{toasts}}">
12 <div class="toast-notification">
13 <span class$="toast-level {{item.level}}">{{item.level}}</span>
12 <div class$="alert alert-{{item.level}}">
14 13 <rhodecode-unsafe-html text="{{item.message}}"></rhodecode-unsafe-html>
15 14 </div>
16 15 </template>
17 16 </div>
18 17 <div class="toast-close">
19 <paper-button on-tap="dismissNotifications" class="btn btn-primary">{{_gettext('Close now')}}</paper-button>
18 <paper-button on-tap="dismissNotifications" class="btn btn-default">{{_gettext('Close now')}}</paper-button>
20 19 </div>
21 20 </paper-toast>
22 21 </template>
@@ -3,42 +3,26 b''
3 3 paper-toast{
4 4 width: 100%;
5 5 min-width: 400px;
6 --paper-toast-background-color: #ffffff;
6 --paper-toast-background-color: transparent;
7 7 --paper-toast-color: #000000;
8 -webkit-box-shadow: none;
9 -moz-box-shadow: none;
10 box-shadow: none;
8 11 }
9 12 paper-toast a{
10 13 font-weight: bold
11 14 }
12 15
13 16 .toast-message-holder {
14 width: ~'calc(100% - 150px)';
15 display: inline-block;
16 17 }
17 18 .toast-close {
18 display: inline-block;
19 width: 145px;
20 19 text-align: right;
21 float: right;
22 }
23 .toast-notification {
24 padding: 10px 0 10px 0;
25 }
26 20
27 .toast-level {
28 display: inline-block;
29 min-width: 100px;
30 font-weight: bold;
31 text-transform: uppercase;
32 &.info{
33 color: @alert4;
34 }
35 &.success {
36 color: @alert1;
37 }
38 &.error, &.danger {
39 color: @alert2;
40 }
41 &.warning {
42 color: @alert3;
21 paper-button{
22 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
43 23 }
44 24 }
25 paper-toast .alert{
26 margin: 0px 0 15px 0;
27 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
28 }
General Comments 0
You need to be logged in to leave comments. Login now