-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtoast.css
70 lines (59 loc) · 994 Bytes
/
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
65
66
67
68
69
70
/*Toast*/
#toast-container {
position: fixed;
bottom: 0;
left: 0;
padding: 15px;
z-index: 2;
pointer-events: none;
}
.toast {
display: flex;
flex-direction: row;
position: relative;
min-width: 150px;
max-width: 600px;
background: #333;
opacity: 0.8;
box-shadow: 0 0 8px #333;
color: #FFF;
padding: 15px;
pointer-events: auto;
transition: all 0.3s;
font-size: 16px;
align-items: center;
}
.toast:not(:last-of-type) {
margin-bottom: 20px;
}
.toast:hover {
opacity: 1;
}
.toast-message {
flex-grow: 1;
word-wrap: break-word;
cursor: default;
padding-right: 20px;
border-right: 2px solid #c3c3c3;
}
.toast-action {
color: #71cfeb;
padding: 0 20px;
text-transform: uppercase;
cursor: pointer;
border-right: 2px solid #c3c3c3;
}
.toast-action a {
color: #71cfeb;
text-decoration: none;
}
.toast-close {
cursor: pointer;
padding: 0 10px 0 20px;
}
.toast-close .cross-icon use {
stroke: #c3c3c3;
}
.toast-close:hover .cross-icon use {
stroke: #ed5b6c;
}