source: pro-violet-viettel/www/deploy/20150304/assets/css/less/thirdparty-gritter.less @ 804

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