thirdparty-gritter.less
2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
//jquery gritter
.enable_plugin_gritter() when(@enable-plugin-gritter = true) {
.gritter-item-wrapper {
background-image:none !important;
box-shadow:0 2px 10px rgba(50, 50, 50, 0.5);
background:rgba(50,50,50,0.92);
&.gritter-info {
background:rgba(49, 81, 133, 0.92);
}
&.gritter-error {
background:rgba(153, 40, 18, 0.92);
}
&.gritter-success {
background:rgba(89, 131, 75, 0.92);
}
&.gritter-warning {
background:rgba(190, 112, 31, 0.92);
}
&.gritter-light {
background:rgba(245,245,245,0.95);
border:1px solid #BBB;
&.gritter-info {
background:rgba(232, 242, 255, 0.95);
.gritter-item { color:#4A577D; }
}
&.gritter-error {
background:rgba(255, 235, 235, 0.95);
.gritter-item { color:#894A38; }
}
&.gritter-success {
background:rgba(239, 250, 227, 0.95);
.gritter-item { color:#416131; }
}
&.gritter-warning {
background:rgba(252, 248, 227, 0.95);
.gritter-item { color:#946446; }
}
}
}
.gritter-item p {
line-height:1.8;
}
.gritter-top , .gritter-bottom , .gritter-item {
background-image:none;
}
.gritter-close {
left: auto;
right: 3px;
background-image:none;
width: 18px;
height: 18px;
line-height: 17px;
text-align: center;
border: 2px solid transparent;
border-radius: 16px;
color: #E17B67;
&:before {
font-family: FontAwesome;
font-size: 16px;
content: "\f00d";
}
}
.gritter-info .gritter-close {
color:#FFA500;
}
.gritter-error , .gritter-success , .gritter-warning {
.gritter-close {
color:#FFEA07;
}
}
.gritter-close:hover{
color:#FFF !important;
}
.gritter-title {
text-shadow:none;
}
.gritter-light {
.gritter-item , .gritter-bottom , .gritter-top , .gritter-close {
background-image: none;
color: #444;
}
.gritter-title {
text-shadow: none;
}
.gritter-close:hover {
color:#8A3104 !important;
}
}
.gritter-center {
position:fixed;
left:33%; right:33%; top:33%;
}
@media only screen and (max-width: @screen-xs-max) {
.gritter-center {
left:16%; right:16%; top:30%;
}
}
@media only screen and (max-width: @screen-xs) {
.gritter-center {
left:30px; right:30px;
}
}
@media only screen and (max-width: @screen-tiny) {
.gritter-center {
left:10px; right:10px;
}
}
}
.enable_plugin_gritter();