PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.6.4
VikBooking Hotel Booking Engine & PMS v1.6.4
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
vikbooking / admin / resources / toast.css

toast.css in VikBooking Hotel Booking Engine & PMS 1.6.4, at admin/resources/toast.css

189 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* toast common */
2
3 .vbo-toast-wrapper {
4 position: fixed;
5 width: 400px;
6 z-index: 2147483647;
7
8 transition: 0.4s ease all;
9 -moz-transition: 0.4s ease all;
10 -webkit-transition: 0.4s ease all;
11 }
12 .vbo-toast-wrapper.clickable {
13 cursor: pointer;
14 }
15 .vbo-toast-wrapper .toast-message {
16 border-radius: 10px;
17 }
18 .vbo-toast-wrapper .toast-message-content {
19 padding: 10px 15px;
20 margin: 0;
21 font-size: 14px;
22 font-weight: bold;
23 border: 0;
24 color: #444;
25 background-color: rgba(64, 64, 64, 0.15);
26 border-radius: 10px;
27 box-shadow: 0 2px 5px rgba(0,0,0,.20);
28 }
29 .vbo-toast-wrapper .toast-message-content.error {
30 background-color: rgba(153, 0, 0, 0.20)
31 }
32 .vbo-toast-wrapper .toast-message-content.success {
33 background-color: rgba(112, 204, 135, 0.40);
34 }
35 .vbo-toast-wrapper .toast-message-content.warning {
36 background-color: rgba(224, 137, 80, 0.35);
37 }
38 .vbo-toast-wrapper .toast-message-content.notice {
39 background-color: #fff;
40 }
41
42 /* toast hidden positions */
43 .vbo-toast-wrapper.top-left,
44 .vbo-toast-wrapper.top-center,
45 .vbo-toast-wrapper.top-right {
46 /*
47 Use a higher margin to avoid seeing the toast on
48 browsers (like Safari) that lets the user to scroll
49 even if the page reached the end.
50 Same thing for the bottom position.
51 */
52 top: -100px;
53 transform: translateY(-100%);
54 }
55 .vbo-toast-wrapper.top-left,
56 .vbo-toast-wrapper.bottom-left {
57 left: 10px;
58 }
59 .vbo-toast-wrapper.top-right,
60 .vbo-toast-wrapper.bottom-right {
61 right: 10px;
62 }
63 .vbo-toast-wrapper.top-center {
64 left: 50%;
65 transform: translate(-50%, -100%);
66 }
67
68 .vbo-toast-wrapper.bottom-left,
69 .vbo-toast-wrapper.bottom-center,
70 .vbo-toast-wrapper.bottom-right {
71 bottom: -100px;
72 transform: translateY(100%);
73 }
74 .vbo-toast-wrapper.bottom-center {
75 left: 50%;
76 transform: translate(-50%, 100%);
77 }
78
79 /* toast slide-in positions */
80
81 .vbo-toast-wrapper.top-left.toast-slide-in,
82 .vbo-toast-wrapper.top-center.toast-slide-in,
83 .vbo-toast-wrapper.top-right.toast-slide-in {
84 transform: translateY(0%);
85 top: 10px;
86 }
87 .vbo-toast-wrapper.bottom-left.toast-slide-in,
88 .vbo-toast-wrapper.bottom-center.toast-slide-in,
89 .vbo-toast-wrapper.bottom-right.toast-slide-in {
90 transform: translateY(0%);
91 bottom: 15px;
92 }
93
94 .vbo-toast-wrapper.top-center.toast-slide-in,
95 .vbo-toast-wrapper.bottom-center.toast-slide-in {
96 transform: translate(-50%, 0%);
97 }
98
99 /* shake effect */
100
101 .vbo-toast-wrapper.do-shake {
102 backface-visibility: hidden;
103 perspective: 1000px;
104 }
105
106 .vbo-toast-wrapper.top-center.do-shake,
107 .vbo-toast-wrapper.bottom-center.do-shake {
108 animation: shake-animation-center 0.82s cubic-bezier(.36, .07, .19, .97) both;
109 transform: translate3d(-50%, 0, 0) !important;
110 }
111 @keyframes shake-animation-center {
112 10%, 90% {
113 transform: translate3d(-50.5%, 0, 0);
114 }
115
116 20%, 80% {
117 transform: translate3d(-49%, 0, 0);
118 }
119
120 30%, 50%, 70% {
121 transform: translate3d(-52%, 0, 0);
122 }
123
124 40%, 60% {
125 transform: translate3d(-48%, 0, 0);
126 }
127 }
128
129 .vbo-toast-wrapper.top-left.do-shake,
130 .vbo-toast-wrapper.top-right.do-shake,
131 .vbo-toast-wrapper.bottom-left.do-shake,
132 .vbo-toast-wrapper.bottom-right.do-shake {
133 animation: shake-animation-side 0.82s cubic-bezier(.36, .07, .19, .97) both;
134 }
135 @keyframes shake-animation-side {
136 10%, 90% {
137 transform: translate3d(-0.5%, 0, 0);
138 }
139
140 20%, 80% {
141 transform: translate3d(1%, 0, 0);
142 }
143
144 30%, 50%, 70% {
145 transform: translate3d(-2%, 0, 0);
146 }
147
148 40%, 60% {
149 transform: translate3d(2%, 0, 0);
150 }
151 }
152
153 @media screen and (max-width: 480px) {
154 .vbo-toast-wrapper {
155 right: 10px !important;
156 width: calc(100% - 20px) !important;
157 }
158 }
159
160 /* toast message template */
161
162 .vbo-pushnotif-wrapper {
163 display: flex;
164 align-items: center;
165 }
166 .vbo-pushnotif-wrapper .push-notif-icon {
167 margin-right: 10px;
168 }
169 .vbo-pushnotif-wrapper .push-notif-icon i {
170 font-size: 32px;
171 font-weight: bold;
172 }
173 .vbo-pushnotif-wrapper .push-notif-icon img {
174 width: 48px;
175 height: 48px;
176 border-radius: 50%;
177 object-fit: cover;
178 }
179 .vbo-pushnotif-wrapper .push-notif-text .push-notif-title {
180 font-size: larger;
181 font-weight: bold;
182 }
183 .vbo-pushnotif-wrapper .push-notif-text .push-notif-body {
184 font-weight: 500;
185 }
186 .vbo-pushnotif-wrapper .push-notif-text .push-notif-title + .push-notif-body {
187 margin-top: 5px;
188 }
189