##// END OF EJS Templates
rhodecode-toast: css improvements.
marcink -
r1484:5e0cbb3f default
parent child Browse files
Show More
@@ -1,58 +1,57 b''
1 1 .alert1 { .border ( @border-thickness-tags, @alert1 ); color:@alert1; }
2 2 .alert2 { .border ( @border-thickness-tags, @alert2 ); color:@alert2; }
3 3 .alert3 { .border ( @border-thickness-tags, @alert3 ); color:@alert3; }
4 4 .alert4 { .border ( @border-thickness-tags, @alert4 ); color:@alert4; }
5 5
6 6 .alert {
7 7 clear: both;
8 margin: @space auto 0 auto;
9 8 padding: @padding;
10 9 border: @border-thickness solid;
11 10 border-radius: @border-radius;
12 11
13 12 // overwritter css from specific alerts
14 13 color: @grey3;
15 14 border-color: @alert4;
16 15 background-color: @alert4-inner;
17 16
18 17 a {
19 18 text-decoration: underline;
20 19 }
21 20 .close {
22 21 color: @grey3;
23 22 }
24 23 }
25 24
26 25 .infoform .alert {
27 26 width: 100%;
28 27 margin-top: 0;
29 28 }
30 29
31 30 .alert-success {
32 31 border-color: @alert1;
33 32 background-color: @alert1-inner;
34 33 }
35 34
36 35 .alert-error {
37 36 border-color: @alert2;
38 37 background-color: @alert2-inner;
39 38 }
40 39
41 40 .alert-warning {
42 41 border-color: @alert3;
43 42 background-color: @alert3-inner;
44 43 }
45 44
46 45 .alert-dismissable {
47 46 padding-right: 10px;
48 47
49 48 .close {
50 49 margin-top: -5px;
51 50 }
52 51 }
53 52
54 53 .loginbox {
55 54 .alert {
56 55 margin: 0 auto 35px auto;
57 56 }
58 57 }
@@ -1,24 +1,24 b''
1 1 <link rel="import" href="../../../../../../bower_components/paper-button/paper-button.html">
2 2 <link rel="import" href="../../../../../../bower_components/paper-toast/paper-toast.html">
3 3 <link rel="import" href="../rhodecode-unsafe-html/rhodecode-unsafe-html.html">
4 4 <dom-module id="rhodecode-toast">
5 5 <template>
6 6 <style include="shared-styles"></style>
7 7 <link rel="stylesheet" href="rhodecode-toast.css">
8 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 10 <template is="dom-repeat" items="[[toasts]]">
11 11 <div class$="alert alert-[[item.level]]">
12 12 <rhodecode-unsafe-html text="[[item.message]]"></rhodecode-unsafe-html>
13 13 </div>
14 14 </template>
15 15
16 16 <div class="toast-close">
17 17 <button on-tap="dismissNotifications" class="btn btn-default">[[_gettext('Close')]]</button>
18 18 </div>
19 19 </div>
20 20 </template>
21 21 </template>
22 22
23 23 <script src="rhodecode-toast.js"></script>
24 24 </dom-module>
@@ -1,22 +1,28 b''
1 1 @import '../../../../css/variables';
2 2 @import '../../../../css/mixins';
3 3
4 4 .alert{
5 5 margin: 10px 0;
6 6 }
7 7
8 8 .toast-close{
9 9 text-align: right;
10 .btn {
11 margin: 0;
12 }
10 13 }
11 14
12 15 .toast-message-holder{
13 background-color: #ffffff;
16 background: fade(#fff, 25%);
14 17
15 18 &.fixed{
16 19 position: fixed;
17 padding: 10px;
20 padding: 10px 0;
21 margin-left: 10px;
22 margin-right: 10px;
18 23 top: 0;
19 width: 1200px;
20 z-index: 1;
24 left: 0;
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