forked from dmuy/Material-Toast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmdtoast.css
74 lines (71 loc) · 2.03 KB
/
mdtoast.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
/* Toast */
.md-toast-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 100001;
}
.md-toast {
position: fixed;
left: 48px;
bottom: 48px;
color: #fff;
opacity: 1;
padding: 16px;
font-size: 14px;
text-align: left;
pointer-events: auto;
-moz-user-select: none;
user-select: none;
background-color: #263238;
-moz-border-radius: 2px;
border-radius: 2px;
-moz-transform: translateY(0);
transform: translateY(0);
-moz-box-shadow: 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12), 0 3px 5px -1px rgba(0,0,0,0.3);
box-shadow: 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12), 0 3px 5px -1px rgba(0,0,0,0.3);
-moz-transition: -moz-transform .3s cubic-bezier(.4,0,.2,1), opacity .2s linear;
transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s linear;
z-index: 100002;
}
.md-toast.load {
-moz-transform: translateY(32px);
transform: translateY(32px);
opacity: 0;
}
.md-toast.info { background-color: #1976d2; }
.md-toast.error { background-color: #e53935; }
.md-toast.warning { background-color: #ef6c00; }
.md-toast.success { background-color: #2e7d32; }
.md-toast .action {
margin-left: 16px;
padding: 0 8px;
color: #ffeb3b;
text-align: center;
cursor: pointer;
font-weight: 500;
}
body.md-toast-modal { pointer-events: none; }
@media (max-width: 767px) {
.md-toast {
left: 0;
bottom: 0;
right: 0;
font-weight: 500;
-moz-transform: translateY(0);
transform: translateY(0);
-moz-border-radius: 0;
border-radius: 0;
-moz-box-shadow: none;
box-shadow: none;
}
.md-toast.load {
opacity: 1;
-moz-transform: translateY(100%);
transform: translateY(100%);
}
.md-toast .action { float: right; }
}
/* End Toast */