Show More
@@ -5,7 +5,6 b'' | |||||
5 |
|
5 | |||
6 | .alert { |
|
6 | .alert { | |
7 | clear: both; |
|
7 | clear: both; | |
8 | margin: @space auto 0 auto; |
|
|||
9 | padding: @padding; |
|
8 | padding: @padding; | |
10 | border: @border-thickness solid; |
|
9 | border: @border-thickness solid; | |
11 | border-radius: @border-radius; |
|
10 | border-radius: @border-radius; |
@@ -6,7 +6,7 b'' | |||||
6 | <style include="shared-styles"></style> |
|
6 | <style include="shared-styles"></style> | |
7 | <link rel="stylesheet" href="rhodecode-toast.css"> |
|
7 | <link rel="stylesheet" href="rhodecode-toast.css"> | |
8 | <template is="dom-if" if="[[hasToasts]]"> |
|
8 | <template is="dom-if" if="[[hasToasts]]"> | |
9 |
<div class$="container toast-message-holder [[conditionalClass(isFixed)]]" |
|
9 | <div class$="container toast-message-holder [[conditionalClass(isFixed)]]"> | |
10 | <template is="dom-repeat" items="[[toasts]]"> |
|
10 | <template is="dom-repeat" items="[[toasts]]"> | |
11 | <div class$="alert alert-[[item.level]]"> |
|
11 | <div class$="alert alert-[[item.level]]"> | |
12 | <rhodecode-unsafe-html text="[[item.message]]"></rhodecode-unsafe-html> |
|
12 | <rhodecode-unsafe-html text="[[item.message]]"></rhodecode-unsafe-html> |
@@ -7,16 +7,22 b'' | |||||
7 |
|
7 | |||
8 | .toast-close{ |
|
8 | .toast-close{ | |
9 | text-align: right; |
|
9 | text-align: right; | |
|
10 | .btn { | |||
|
11 | margin: 0; | |||
|
12 | } | |||
10 | } |
|
13 | } | |
11 |
|
14 | |||
12 | .toast-message-holder{ |
|
15 | .toast-message-holder{ | |
13 |
background |
|
16 | background: fade(#fff, 25%); | |
14 |
|
17 | |||
15 | &.fixed{ |
|
18 | &.fixed{ | |
16 | position: fixed; |
|
19 | position: fixed; | |
17 | padding: 10px; |
|
20 | padding: 10px 0; | |
|
21 | margin-left: 10px; | |||
|
22 | margin-right: 10px; | |||
18 | top: 0; |
|
23 | top: 0; | |
19 |
|
|
24 | left: 0; | |
20 |
|
|
25 | right:0; | |
|
26 | z-index: 100; | |||
21 | } |
|
27 | } | |
22 | } |
|
28 | } |
General Comments 0
You need to be logged in to leave comments.
Login now