PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 1.0.0
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v1.0.0
4.9.2 4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / modules / quick-view / assets / lib / sqv / smart-quick-view.scss
shopengine / modules / quick-view / assets / lib / sqv Last commit date
smart-quick-view-backup.css 5 years ago smart-quick-view.css 5 years ago smart-quick-view.js 5 years ago smart-quick-view.scss 5 years ago
smart-quick-view.scss
283 lines
1 /**
2 * jQuery Smart Quick View Plugin
3 * Requires jQuery v1.7 or later
4 *
5 * @author emranio <hello@emran.io>
6 * @license GPL 3.0 or later
7 * https://www.gnu.org/licenses/gpl-3.0.html
8 *
9 * Thanks to Ashraf for some excellent CSS contributions!
10 */
11
12
13 // by default modal wrapper will be display none
14 .sqv-modal--wrapper {
15 display: none;
16 }
17
18 // stop scrolling
19
20 .sqv-element-clicked,
21 .sqv-modal-opened {
22 overflow: hidden;
23 }
24
25
26 /*
27 --------------------------
28 sqv-element-loading-spin
29 --------------------------
30 */
31
32 .sqv-element-clicked {
33
34 /*
35 ---------------------------------------
36 Spin into qu button / trigger element
37 --------------------------------------
38 */
39
40 .sqv-element-loading-spin {
41 cursor: wait;
42 user-select: none;
43 position: relative;
44
45 * {
46 opacity: 0.6;
47 filter: grayscale(1);
48 pointer-events: none;
49 }
50
51 &::before {
52 position: absolute;
53 content: "";
54 width: 100%;
55 height: 100%;
56 top: 0;
57 right: 0;
58 z-index: 10;
59 cursor: wait;
60 }
61
62 &::after {
63 content: "";
64 border: 4px solid #f3f3f3;
65 border-radius: 50%;
66 border-top: 4px solid #3498db;
67 top: 50%;
68 left: 50%;
69 width: 40px;
70 height: 40px;
71 -webkit-animation: spin 2s linear infinite;
72 animation: spin 2s linear infinite;
73 z-index: 15;
74 display: inline-block;
75 position: absolute;
76 margin-top: -20px;
77 margin-left: -20px;
78 }
79
80 }
81
82
83 /*
84 --------------------------
85 Spin into modal overlay
86 --------------------------
87 */
88
89 .sqv-modal {
90
91 &--overlay.sqv-loading-spin-show {
92
93 @extend %sqv-modal-overlay;
94 }
95
96 &__body {
97 display: none;
98 }
99
100 &--close-btn {
101 z-index: 999;
102 }
103 }
104
105 .sqv-modal--wrapper {
106
107 @extend %sqv-modal-wrapper;
108 }
109 }
110
111
112 /*
113 --------------------------
114 modal general style
115 --------------------------
116 */
117
118 .sqv-modal-opened { // sqv-modal-opend placed at body tag
119
120 .sqv-modal--wrapper {
121
122 @extend %sqv-modal-wrapper;
123 }
124
125 .sqv-modal { /* stylelint-disable-line */
126
127 &--overlay {
128
129 @extend %sqv-modal-overlay;
130 }
131
132 &__body { /* stylelint-disable-line */
133 width: 80vw;
134 height: 80vh;
135 max-width: 1600px;
136 max-height: 800px;
137 position: fixed;
138 top: 50%;
139 left: 50%;
140 opacity: 1;
141 transform: translate(-50%, -50%);
142 background: #fff;
143 animation: sqv-open 1s;
144 z-index: 999;
145
146 &--close-btn { /* stylelint-disable-line */
147 width: 50px;
148 height: 50px;
149 position: absolute;
150 right: 0;
151 top: 0;
152 background: #f50b17;
153 transform: scale(1) translate(20%, -20%);
154 transform-origin: center center;
155 border-radius: 50%;
156 text-align: center;
157 line-height: 50px;
158 color: #fff;
159 cursor: pointer;
160 transition: all linear 0.2s;
161
162 &:hover {
163 transform: translate(20%, -20%) scale(0.9);
164 }
165
166 //close icon
167 .sqv-close-icon {
168 position: relative;
169
170 &::before {
171 content: "\2716";
172 font-style: normal;
173 }
174 }
175 }
176
177 &--content {
178 overflow-y: scroll;
179 overflow-x: hidden;
180 padding: 20px 30px;
181 height: 100%;
182 }
183 }
184 }
185
186 }
187
188
189 /*
190 -----------------------------
191 extends , keyframes, mixins
192 ----------------------------
193 */
194
195
196 %sqv-modal-overlay {
197 background: rgba($color: #000, $alpha: 0.8);
198 position: fixed;
199 top: 0;
200 left: 0;
201 width: 100%;
202 height: 100%;
203 display: flex;
204 align-items: center;
205 justify-content: center;
206 z-index: 99;
207 }
208
209 %sqv-modal-wrapper {
210 display: block; // when .sqv-model-open class found in body, sqv modal will appear
211 }
212
213
214 @keyframes sqv-open {
215
216 0% {
217 opacity: 0;
218 }
219
220 100% {
221 opacity: 1;
222 }
223 }
224
225 @keyframes sqv_spin {
226
227 from {
228 transform: rotate(0deg);
229 }
230
231 to {
232 transform: rotate(360deg);
233 }
234 }
235
236 @mixin tablet {
237
238 @media (max-width: 768px) {
239 @content;
240 }
241 }
242
243
244 @mixin mobile {
245
246 @media (max-width: 500px) {
247 @content;
248 }
249 }
250
251
252 /*
253 -----------------------------
254 modal responsive view
255 ----------------------------
256 */
257 .sqv-modal-opened { /* stylelint-disable-line */
258
259 .sqv-modal { /* stylelint-disable-line */
260
261 &__body { /* stylelint-disable-line */
262
263 @include tablet {
264 width: 90vw;
265 height: 85vh;
266 }
267
268 @include mobile {
269 width: 100vw;
270 height: 100vh;
271 }
272
273 &--close-btn { /* stylelint-disable-line */
274
275 @include mobile {
276 transform: scale(1) translate(-5px, 5px);
277 }
278 }
279 }
280
281 }
282 }
283