PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.6.7
VikBooking Hotel Booking Engine & PMS v1.6.7
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.7, at admin/resources/toast.css

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