forked from scopisto/cogo-toast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
129 lines (110 loc) · 1.78 KB
/
styles.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
127
128
129
#ct-container {
position: fixed;
width: 100%;
height: 100vh;
top: 0px;
left: 0px;
z-index: 2000;
display: flex;
flex-direction: column;
justify-content: space-between;
pointer-events: none;
overflow: hidden;
}
.ct-row {
display: flex;
justify-content: space-between;
}
.ct-group {
flex: 1;
margin: 10px 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.ct-group:first-child {
align-items: flex-start;
}
.ct-group:last-child {
align-items: flex-end;
}
.ct-flex-bottom {
justify-content: flex-end;
}
.ct-toast {
display: flex;
justify-content: center;
align-items: center;
padding: 12px 20px;
background-color: #fff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
color: #000;
border-radius: 4px;
margin: 0px;
opacity: 1;
transition: 0.3s all ease-in-out;
min-height: 45px;
pointer-events: all;
}
.ct-toast:focus {
outline: none;
}
.ct-toast svg {
min-width: 18px;
}
.ct-cursor-pointer {
cursor: pointer;
}
.ct-icon-loading {
display: inline-block;
width: 20px;
height: 20px;
}
.ct-icon-loading:after {
content: ' ';
display: block;
width: 14px;
height: 14px;
margin: 1px;
border-radius: 50%;
border: 2px solid #0088ff;
border-color: #0088ff transparent #0088ff transparent;
animation: ct-icon-loading 1.2s linear infinite;
}
@keyframes ct-icon-loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.ct-text-group {
margin-left: 15px;
}
.ct-text-group-heading {
margin-left: 25px;
}
.ct-heading {
font-size: 18px;
margin: 0px;
margin-bottom: 5px;
}
.ct-text {
font-size: 14px;
}
@media (max-width: 768px) {
.ct-row {
justify-content: flex-start;
flex-direction: column;
margin: 7px 0px;
}
.ct-group {
flex: none;
margin: 0px;
}
.ct-toast {
margin: 8px 15px;
width: initial;
}
}