-
Notifications
You must be signed in to change notification settings - Fork 0
/
alert.css
114 lines (113 loc) · 1.76 KB
/
alert.css
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
.alert {
display: inline-block;
text-align: center;
position: relative;
padding: 10px 16px;
min-width: 120px;
max-width: 60%;
margin: 0 auto;
border: 1px solid transparent;
border-radius: .25rem;
font-size: 14px;
word-break: break-all;
-webkit-line-clamp: 2;
}
.alert-primary {
color: #004085;
background-color: #cce5ff;
border-color: #b8daff;
}
.alert-secondary {
color: #383d41;
background-color: #e2e3e5;
border-color: #d6d8db;
}
.alert-success {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
}
.alert-danger, .alert-error {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
}
.alert-warning {
color: #856404;
background-color: #fff3cd;
border-color: #ffeeba;
}
.alert-info {
color: #0c5460;
background-color: #d1ecf1;
border-color: #bee5eb;
}
.alert-light {
color: #818182;
background-color: #fefefe;
border-color: #eee;
}
.alert-dark {
color: #fff;
background-color: rgba(0,0,0,.85);
}
.alert-wrapper {
text-align: center;
position: fixed;
top: -80px;
left: 0;
width: 100%;
z-index: 15;
animation: move .35s ease-out both;
}
.alert-out {
animation: moveout .35s ease-out both;
}
@media screen and (max-width: 640px) {
.alert{
display: block;
max-width: 100%;
border-radius: 0;
border: 0;
text-align: center;
}
.alert-wrapper {
top: -80px;
animation-name: mobile-move;
}
.alert-out {
animation-name: mobile-moveout;
}
}
@keyframes move {
from {
top: -80px;
}
to {
top: 30px;
}
}
@keyframes moveout {
from {
top: 30px;
}
to {
top: -80px;
}
}
@keyframes mobile-move{
from{
top: -80px;
}
to{
top: 0;
}
}
@keyframes mobile-moveout {
from {
top: 0;
}
to {
top: -80px;
}
}