blob: c3f1dee5e6df77396f5fa5e3fc6889b9e0a849bc (
plain)
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
|
.alert-icon-center-vertically(@font-size) {
@half-height: @font-size / 2;
// IE8 doesn't support calc(): it's OK, the icon will just be aligned to the top
top: calc(~'50% - @{half-height}');
// phantomjs only supports -webkit-calc()
top: -webkit-calc(~'50% - @{half-height}');
}
.alert {
padding: 20px 20px 20px 60px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 2px;
font-size: 14px;
position: relative;
&:before {
font-family: "piwik";
content: "\e625";
position: absolute;
left: 20px;
line-height: 100%; // line-height = font-size
font-size: 24px;
}
a {
color: inherit;
text-decoration: underline;
}
}
.alert-success {
color: #009874;
border-color: #1AA282;
&:before {
content: "\e63d";
color: #1AA282;
}
}
.alert-info {
color: #838383;
background-color: #F5F5F5;
font-size: 13px;
padding-top: 15px;
padding-bottom: 15px;
&:before {
color: #afafaf;
font-size: 20px;
}
}
.alert-warning {
color: #CA8100;
border-color: #DF9D27;
&:before {
content: "\e621";
color: #DF9D27;
}
}
.alert-danger {
color: #D4291F;
border-color: #D73F36;
&:before {
content: "\e616";
color: #D73F36;
}
}
|