forked from AlexKvazos/VanillaToasts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvanillatoasts.css
98 lines (85 loc) · 1.76 KB
/
vanillatoasts.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
#vanillatoasts-container {
position: fixed;
top: 0;
right: 0;
width: 320px;
font-family: 'Helvetica';
}
.vanillatoasts-toast {
position: relative;
padding: 20px 17px;
margin: 20px;
border-radius: 10px;
background: #F5F5F5;
cursor: pointer;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
animation-duration: .3s;
animation-name: VanillaToasts;
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
.vanillatoasts-fadeOut {
animation-name: VanillaToastsFadeOut;
animation-duration: .3s;
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
animation-fill-mode: forwards;
}
#vanillatoasts-container p,
#vanillatoasts-container h4 {
margin: 3px 0!important;
}
.vanillatoasts-title {
font-weight: 700;
font-size: 15px;
margin-bottom: 10px;
}
.vanillatoasts-text {
font-size: 14px;
color: #777;
}
.vanillatoasts-icon {
position: absolute;
top: 5px;
left: -40px;
width: 50px;
height: 50px;
border-radius: 100%;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
background: #FFF;
}
.vanillatoasts-toast a, .vanillatoasts-toast a:hover {
color: #549EDB !important;
text-decoration: none !important;
}
/** toast types */
.vanillatoasts-success {
border-bottom: 2px solid #51C625;
}
.vanillatoasts-warning {
border-bottom: 2px solid #DB9215;
}
.vanillatoasts-error {
border-bottom: 2px solid #DB2B1D;
}
.vanillatoasts-info {
border-bottom: 2px solid #27ABDB;
}
@keyframes VanillaToasts {
from {
transform: translate3d(400px, 0, 0);;
opacity: 0;
}
to {
transform: translate3d(0, 0, 0);
opacity: 1;
}
}
@keyframes VanillaToastsFadeOut {
from {
transform: translate3d(0, 0, 0);
opacity: 1;
}
to {
transform: translate3d(400px, 0, 0);
opacity: 0;
}
}