blob: 46a765b49191db9d1f3eb18ae3826b0872f5fe8c (
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
|
@import (reference) "../variables";
@import (reference) "../mixins";
// Base
.alert {
display: block;
margin-bottom: 8px;
padding: 5px 8px;
border: 1px solid @secondFontColor;
}
.alert:empty { display: none; }
.alert-inline {
display: inline-block;
vertical-align: middle;
}
// Color
.alert-emphasis-variant(@color, @background-color, @border-color) {
border-color: @border-color;
background-color: @background-color;
color: @color;
}
.alert-danger { .alert-emphasis-variant(#a94442, #f2dede, #ebccd1); }
.alert-warning { .alert-emphasis-variant(#8a6d3b, #fcf8e3, #faebcc); }
.alert-info { .alert-emphasis-variant(#31708f, #d9edf7, #bce8f1); }
.alert-success { .alert-emphasis-variant(#3c763d, #dff0d8, #d6e9c6); }
|