-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoast.style.css
126 lines (118 loc) · 3.17 KB
/
toast.style.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
115
116
117
118
119
120
121
122
123
124
125
126
@charset "UTF-8";
@font-face {
font-family: 'toast';
src: url("../fonts/toast.eot?76tjxy");
src: url("../fonts/toast.eot?76tjxy#iefix") format("embedded-opentype"), url("../fonts/toast.ttf?76tjxy") format("truetype"), url("../fonts/toast.woff?76tjxy") format("woff"), url("../fonts/toast.svg?76tjxy#toast") format("svg");
font-weight: normal;
font-style: normal; }
i {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'toast' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; }
.toast-icon-error:before {
content: ""; }
.toast-icon-info:before {
content: ""; }
.toast-icon-notice:before {
content: ""; }
.toast-icon-success:before {
content: ""; }
.toast-icon-warning:before {
content: ""; }
.toast-item-wrapper {
min-width: 250px;
padding: 10px;
box-sizing: border-box;
color: #fff;
overflow: hidden;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.toast-item-wrapper i.toast-icon {
position: absolute;
top: 12px;
left: 0;
width: 50px;
text-align: center;
vertical-align: middle;
font-size: 2rem; }
.toast-item-wrapper .toast-close {
font-size: 1.2rem;
position: absolute;
top: 0;
right: 0;
width: 20px;
text-align: center;
cursor: pointer; }
.toast-item-wrapper.success {
background-color: #29ab9f;
border: 1px solid #1a9581; }
.toast-item-wrapper.error {
background-color: #ff7946;
border: 1px solid #f35818; }
.toast-item-wrapper.warning {
background-color: #fff1c0;
border: 1px solid #f0c948;
color: #333; }
.toast-item-wrapper.notice {
background-color: #48a9f8;
border: 1px solid #208ce4; }
.toast-item-wrapper.info {
background-color: #7f97a3;
border: 1px solid #6b8699; }
.toast-item-wrapper.toast-top-left {
left: 20px;
top: 20px; }
.toast-item-wrapper.toast-top-right {
right: 20px;
top: 20px; }
.toast-item-wrapper.toast-top-center {
margin: 0 auto;
top: 20px; }
.toast-item-wrapper.toast-bottom-left {
left: 20px;
bottom: 20px; }
.toast-item-wrapper.toast-bottom-right {
right: 20px;
bottom: 20px; }
.toast-item-wrapper.toast-bottom-center {
margin: 0 auto;
bottom: 20px; }
.toast-item-wrapper.fullscreen {
left: 20px;
right: 20px;
width: calc(100% - 40px); }
.toast-item-wrapper p {
margin: 0; }
.toast-item-wrapper .toast-message {
font-size: 0.87rem; }
.toast-item-wrapper .toast-progress {
width: 0;
height: 3px;
background-color: rgba(0, 0, 0, 0.5);
position: absolute;
bottom: 0;
right: 0; }
.toast-item-wrapper.rtl {
direction: rtl;
text-align: right; }
.toast-item-wrapper.rtl i.toast-icon {
left: auto;
right: 0; }
.toast-item-wrapper.rtl .toast-close {
right: auto;
left: 0; }
.toast-item-wrapper.rtl p {
text-align: right; }
.toast-item-wrapper.rtl .toast-progress {
left: auto;
right: 0; }