PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.8
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.8
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / assets / sass / modules / quick-view / quick-view.scss

quick-view.scss in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 1.8, at assets/sass/modules/quick-view/quick-view.scss

517 lines 9.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Quick View.
3 *
4 */
5
6 .woocommerce {
7
8 .product {
9
10 .merchant-quick-view-button {
11 display: inline-flex !important;
12 justify-content: center !important;
13 align-items: center !important;
14 transition: all .2s;
15 text-decoration: none;
16 align-self: flex-start;
17 color: var(--mrc-qv-button-text-color, #FFF) !important;
18 border-color: var(--mrc-qv-button-border-color, #212121) !important;
19 background-color: var(--mrc-qv-button-bg-color, #212121) !important;
20 transition: all .2s;
21
22 svg + span {
23 display: inline-block;
24 margin-left: 8px;
25 }
26
27 svg {
28 width: 1em;
29 height: 1em;
30 fill: var(--mrc-qv-button-icon-color, #FFF) !important;
31 transition: all .2s;
32
33 path {
34 fill: var(--mrc-qv-button-icon-color, #FFF) !important;
35 }
36 }
37
38 &:hover {
39 color: var(--mrc-qv-button-color-hover, #FFF) !important;
40 border-color: var(--mrc-qv-button-border-color-hover, #414141) !important;
41 background-color: var(--mrc-qv-button-bg-color-hover, #414141) !important;
42
43 svg {
44 fill: var(--mrc-qv-button-icon-color-hover, #FFF) !important;
45
46 path {
47 fill: var(--mrc-qv-button-icon-color-hover, #FFF) !important;
48 }
49 }
50 }
51 }
52 }
53 }
54
55 .products {
56
57 .product {
58 position: relative;
59
60 .merchant-quick-view-position-overlay {
61 position: absolute;
62 z-index: 10;
63 top: var(--mrc-qv-button-position-top, 50%);
64 left: var(--mrc-qv-button-position-left, 50%);
65 transform: translate(calc(var(--mrc-qv-button-position-top, 50%) * -1), calc(var(--mrc-qv-button-position-left, 50%) * -1));
66 margin: 0;
67 white-space: nowrap !important;
68 opacity: 0;
69 transition: all .2s;
70 }
71
72 &:hover {
73
74 .merchant-quick-view-position-overlay {
75 opacity: 1;
76 }
77 }
78 }
79 }
80
81 .merchant-quick-view-modal {
82 position: fixed;
83 z-index: 999;
84 top: 0;
85 left: 0;
86 right: 0;
87 bottom: 0;
88 display: flex;
89 align-items: center;
90 justify-content: center;
91 opacity: 0;
92 visibility: hidden;
93 pointer-events: none;
94 transition: all .3s ease;
95
96 &.merchant-show {
97 opacity: 1;
98 visibility: visible;
99 pointer-events: auto;
100 }
101
102 &.merchant-loading {
103
104 .merchant-quick-view-loader {
105 opacity: 1;
106 visibility: visible;
107 }
108 }
109 }
110
111 .merchant-quick-view-overlay {
112 position: absolute;
113 z-index: 1;
114 top: 0;
115 left: 0;
116 right: 0;
117 bottom: 0;
118 background-color: rgba(0, 0, 0, 0.9);
119 }
120
121 .merchant-quick-view-loader {
122 position: absolute;
123 z-index: 2;
124 display: flex;
125 font-size: 26px;
126 animation: merchant-fa-spin .75s linear infinite;
127 opacity: 0;
128 visibility: hidden;
129
130 svg {
131 width: 1em;
132 height: 1em;
133 fill: #fff;
134 }
135 }
136
137 .merchant-quick-view-inner {
138 position: relative;
139 z-index: 3;
140 width: var(--mrc-qv-modal-width, 1000px);
141 max-height: var(--mrc-qv-modal-height, 500px);
142 max-width: 90vw;
143 padding: 35px;
144 background-color: #FFF;
145 opacity: 0;
146 visibility: hidden;
147 transition: opacity .3s ease, visibility .3s ease;
148
149 &.merchant-show {
150 opacity: 1;
151 visibility: visible;
152 }
153 }
154
155 .merchant-quick-view-close-button {
156 position: absolute;
157 z-index: 1;
158 right: -7px;
159 top: -32px;
160 width: 30px;
161 height: 30px;
162 font-size: 24px;
163 display: flex;
164 align-items: center;
165 justify-content: center;
166
167 svg {
168 width: 1em;
169 height: 1em;
170 fill: #fff;
171 }
172 }
173
174 @keyframes merchant-fa-spin {
175
176 0% {
177 transform: rotate(0deg)
178 }
179
180 to {
181 transform: rotate(1turn)
182 }
183 }
184
185 .merchant-quick-view-row {
186 display: flex;
187 grid-gap: 30px;
188 }
189
190 .merchant-quick-view-column {
191 flex: 1;
192 width: 50%;
193 }
194
195 .merchant-quick-view-product-gallery {
196
197 .woocommerce-product-gallery__image {
198 max-height: calc(var(--mrc-qv-modal-height, 500px) - 70px);
199
200 img {
201 max-height: calc(var(--mrc-qv-modal-height, 500px) - 70px);
202 }
203 }
204
205 .woocommerce-product-gallery {
206 width: 100% !important;
207 float: none !important;
208 margin: 0 !important;
209 }
210 }
211
212 .merchant-quick-view-product-gallery {
213
214 .flex-control-thumbs {
215
216 &::-webkit-scrollbar {
217 width: 6px
218 }
219
220 &::-webkit-scrollbar-track {
221 background: #ddd;
222 border-radius: 6px
223 }
224
225 &::-webkit-scrollbar-thumb {
226 background: #999;
227 border-radius: 6px
228 }
229
230 &::-webkit-scrollbar-thumb:hover {
231 background: #000;
232 }
233
234 li {
235 display: flex !important;
236 margin: 0 !important;
237 width: auto !important;
238
239 img {
240 width: 60px !important;
241 }
242 }
243 }
244 }
245
246 .merchant-quick-view-thumbs-at-left {
247
248 .woocommerce-product-gallery {
249 display: flex !important;
250 grid-gap: 5px !important;
251 flex-direction: row-reverse !important;
252
253 .flex-control-thumbs {
254 padding-right: 5px !important;;
255 flex-shrink: 0 !important;
256 display: flex !important;
257 grid-gap: 10px !important;
258 flex-direction: column !important;
259 margin: 0 !important;
260 overflow-y: auto !important;
261 max-height: calc(var(--mrc-qv-modal-height, 500px) - 70px) !important;;
262 }
263 }
264 }
265
266 .merchant-quick-view-thumbs-at-right {
267
268 .woocommerce-product-gallery {
269 display: flex !important;
270 grid-gap: 5px !important;
271
272 .woocommerce-product-gallery__trigger {
273 display: none !important;
274 }
275
276 .flex-control-thumbs {
277 padding-right: 5px !important;;
278 flex-shrink: 0 !important;
279 display: flex !important;
280 grid-gap: 10px !important;
281 flex-direction: column !important;
282 margin: 0 !important;
283 overflow-y: auto !important;
284 max-height: calc(var(--mrc-qv-modal-height, 500px) - 70px) !important;
285 }
286 }
287 }
288
289 .merchant-quick-view-thumbs-at-bottom {
290
291 .woocommerce-product-gallery {
292 display: flex !important;
293 grid-gap: 10px !important;
294 flex-direction: column !important;
295 max-height: calc(var(--mrc-qv-modal-height, 500px) - 70px) !important;
296
297 .flex-control-thumbs {
298 flex-shrink: 0 !important;
299 display: flex !important;
300 flex-wrap: wrap !important;
301 grid-gap: 10px !important;
302 margin: 0 !important;
303 }
304 }
305 }
306
307 .merchant-quick-view-summary {
308 display: flex;
309 flex-wrap: nowrap;
310 grid-gap: 10px;
311 flex-direction: column;
312 max-height: calc(var(--mrc-qv-modal-height, 500px) - 70px);
313 overflow-y: auto;
314 padding-right: 12px;
315 scrollbar-color: #444 #ddd;
316
317 .woocommerce-variation-price,
318 .merchant-quick-view-product-price {
319 color: var(--mrc-qv-regular-price-color, #999999);
320
321 del {
322 color: var(--mrc-qv-regular-price-color, #999999);
323 }
324
325 ins {
326 color: var(--mrc-qv-sale-price-color, #212121);
327 margin: 0;
328 font-size: 24px;
329 }
330 }
331
332 form.cart,
333 .woocommerce-variation-add-to-cart {
334 display: flex;
335 grid-gap: 10px;
336 flex-wrap: wrap;
337 margin: 0 !important;
338
339 > * {
340 align-self: inherit !important;
341 justify-self: inherit !important;
342 margin: 0 !important;
343 }
344 }
345
346 .quantity {
347 margin: 0;
348 width: auto;
349 }
350
351 > div:empty {
352 display: none;
353 }
354
355 &::-webkit-scrollbar {
356 width: 6px
357 }
358
359 &::-webkit-scrollbar-track {
360 background: #ddd;
361 border-radius: 6px
362 }
363
364 &::-webkit-scrollbar-thumb {
365 background: #999;
366 border-radius: 6px
367 }
368
369 &::-webkit-scrollbar-thumb:hover {
370 background: #000;
371 }
372 }
373
374 .merchant-quick-view-product-title {
375
376 h1.product_title {
377 margin: 0;
378 font-size: 32px;
379 font-weight: bold;
380 line-height: 1.2;
381 }
382 }
383
384 .merchant-quick-view-product-rating {
385
386 .star-rating {
387 margin-left: 0;
388 }
389 }
390
391 .merchant-quick-view-product-excerpt {
392
393 p:last-child {
394 margin-bottom: 0;
395 }
396 }
397
398 .merchant-quick-view-product-add-to-cart {
399 margin: 10px 0;
400 padding: 20px 0;
401 border-top: 1px solid #eee;
402 border-bottom: 1px solid #eee;
403
404 .button {
405
406 text-decoration: none;
407
408 &:hover {
409 text-decoration: none;
410 }
411 }
412
413 .disabled {
414 user-select: none;
415 pointer-events: none;
416 }
417 }
418
419 .merchant-hide-quantity {
420
421 .quantity {
422 display: none !important;
423 }
424 }
425
426 .merchant-quick-view-product-meta {
427
428 .product_meta {
429 display: flex;
430 grid-gap: 5px;
431 flex-direction: column;
432
433 span {
434 font-weight: bold;
435
436 a,
437 span {
438 font-weight: normal;
439 }
440 }
441 }
442 }
443
444 @media(max-width: 767px) {
445
446 .merchant-quick-view-row {
447 flex-direction: column;
448 }
449
450 .merchant-quick-view-column {
451 width: 100%;
452 }
453
454 .merchant-quick-view-content {
455 max-height: 100%;
456 overflow-y: auto;
457 overflow-x: hidden;
458 }
459
460 .merchant-quick-view-inner {
461 padding: 15px;
462 max-width: 80vw;
463 max-height: 85vh;
464 height: 85vh;
465 }
466
467 .merchant-quick-view-modal {
468 align-items: flex-start;
469 padding-top: 7vh;
470 }
471
472 .merchant-quick-view-summary {
473 max-height: none;
474 overflow: hidden;
475 }
476
477 .merchant-quick-view-product-gallery {
478
479 .woocommerce-product-gallery__image {
480 max-height: none;
481
482 img {
483 max-height: none;
484 }
485 }
486 }
487
488 .merchant-quick-view-thumbs-at-left,
489 .merchant-quick-view-thumbs-at-right {
490
491 .woocommerce-product-gallery {
492 display: flex !important;
493 grid-gap: 10px !important;
494 flex-direction: column !important;
495
496 .flex-control-thumbs {
497 flex-shrink: 0 !important;
498 display: flex !important;
499 flex-wrap: wrap !important;
500 flex-direction: row !important;
501 grid-gap: 10px !important;
502 margin: 0 !important;
503 padding: 0 !important;;
504 overflow: hidden !important;
505 max-height: none !important;
506 }
507 }
508 }
509
510 .merchant-quick-view-thumbs-at-bottom {
511
512 .woocommerce-product-gallery {
513 max-height: none !important;
514 }
515 }
516 }
517