-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoast.css
64 lines (64 loc) · 1.32 KB
/
toast.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
div[class^="toast-wrapper"] {
position: absolute;
height: auto;
}
.toast-container {
font-size: 1rem;
text-align: center;
width: 300px;
z-index: 2147483647;
box-sizing: border-box;
cursor: pointer;
color: #fff;
padding: 10px;
margin: 10px;
-o-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
-ms-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}
@keyframes fadeOut {
0% {opacity: 1;}
100% {opacity: 0;}
}
@keyframes fadeInRight {
0% {
opacity: 0;
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
100% {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeInLeft {
0% {
opacity: 0;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
100% {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
.toast-top-left {
top: 0px;
left: 0px;
}
.toast-top-right {
top: 0px;
right: 0px;
}
.toast-bottom-right {
right: 0px;
bottom: 0px;
}
.toast-bottom-left {
bottom: 0px;
left: 0px;
}