PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.86
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.86
51.1.86 51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 All 40 releases
king-addons / includes / widgets / Woo_Product_Images_Gallery / style.css

style.css in King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder 51.1.86, at includes/widgets/Woo_Product_Images_Gallery/style.css

404 lines 9.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .ka-woo-gallery {
2 display: grid;
3 gap: 12px;
4 }
5
6 .ka-woo-gallery__main {
7 position: relative;
8 overflow: hidden;
9 }
10
11 .ka-woo-gallery__slider {
12 display: flex;
13 transition: transform 0.3s ease;
14 }
15
16 .ka-woo-gallery__slide {
17 min-width: 100%;
18 cursor: default;
19 position: relative;
20 }
21
22 .ka-woo-gallery--lightbox .ka-woo-gallery__slide,
23 .ka-woo-gallery--zoom .ka-woo-gallery__slide {
24 cursor: zoom-in;
25 }
26
27 .ka-woo-gallery__slide img {
28 width: 100%;
29 height: auto;
30 display: block;
31 }
32
33 .ka-woo-gallery__main[data-aspect] .ka-woo-gallery__slide {
34 overflow: hidden;
35 }
36
37 .ka-woo-gallery__main[data-aspect] .ka-woo-gallery__slide img {
38 width: 100%;
39 height: 100%;
40 object-fit: cover;
41 }
42
43 .ka-woo-gallery__main[data-aspect="1:1"] .ka-woo-gallery__slide {
44 aspect-ratio: 1 / 1;
45 }
46
47 .ka-woo-gallery__main[data-aspect="4:3"] .ka-woo-gallery__slide {
48 aspect-ratio: 4 / 3;
49 }
50
51 .ka-woo-gallery__main[data-aspect="3:4"] .ka-woo-gallery__slide {
52 aspect-ratio: 3 / 4;
53 }
54
55 .ka-woo-gallery__main[data-aspect="16:9"] .ka-woo-gallery__slide {
56 aspect-ratio: 16 / 9;
57 }
58
59 .ka-woo-gallery__main[data-aspect="9:16"] .ka-woo-gallery__slide {
60 aspect-ratio: 9 / 16;
61 }
62
63 .ka-woo-gallery--grid .ka-woo-gallery__slider {
64 display: grid;
65 grid-template-columns: repeat(var(--ka-gallery-grid-cols, 3), minmax(0, 1fr));
66 gap: var(--ka-gallery-gap, 12px);
67 }
68
69 .ka-woo-gallery--grid .ka-woo-gallery__slide {
70 min-width: 0;
71 }
72
73 .ka-woo-gallery--masonry .ka-woo-gallery__slider {
74 display: block;
75 column-count: var(--ka-gallery-grid-cols, 2);
76 column-gap: var(--ka-gallery-gap, 8px);
77 }
78
79 .ka-woo-gallery--masonry .ka-woo-gallery__slide {
80 break-inside: avoid;
81 margin: 0 0 var(--ka-gallery-gap, 8px);
82 width: 100%;
83 min-width: 0;
84 }
85
86 .ka-woo-gallery__thumbs {
87 display: grid;
88 grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
89 gap: 8px;
90 }
91
92 .ka-woo-gallery__thumb {
93 border: 1px solid #e5e7eb;
94 border-radius: 8px;
95 padding: 4px;
96 cursor: pointer;
97 transition: border-color 0.2s ease, box-shadow 0.2s ease;
98 }
99
100 .ka-woo-gallery__thumb img {
101 width: 100%;
102 height: auto;
103 display: block;
104 }
105
106 .ka-woo-gallery__thumb.is-active {
107 border-color: #2563eb;
108 box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
109 }
110
111 .ka-woo-gallery__arrow {
112 position: absolute;
113 top: 50%;
114 transform: translateY(-50%);
115 background: rgba(0, 0, 0, 0.45);
116 color: #fff;
117 border: none;
118 width: 36px;
119 height: 36px;
120 border-radius: 50%;
121 display: inline-flex;
122 align-items: center;
123 justify-content: center;
124 cursor: pointer;
125 transition: background 0.2s ease;
126 }
127
128 .ka-woo-gallery__arrow:hover {
129 background: rgba(0, 0, 0, 0.65);
130 }
131
132 .ka-woo-gallery__arrow--prev { left: 8px; }
133 .ka-woo-gallery__arrow--next { right: 8px; }
134
135 /* The Navigation skin and Dots skin controls emitted these classes but nothing
136 styled them, so both settings did nothing at all. Dark is the default look
137 above; light is for arrows and dots sitting on a dark image. */
138 .ka-woo-gallery--nav-light .ka-woo-gallery__arrow {
139 background: rgba(255, 255, 255, 0.85);
140 color: #111;
141 }
142
143 .ka-woo-gallery--nav-light .ka-woo-gallery__arrow:hover {
144 background: #fff;
145 }
146
147 .ka-woo-gallery__dots {
148 display: inline-flex;
149 gap: 6px;
150 align-items: center;
151 margin-top: 8px;
152 }
153
154 .ka-woo-gallery__dot {
155 width: 10px;
156 height: 10px;
157 border-radius: 50%;
158 border: 1px solid #999;
159 background: #fff;
160 padding: 0;
161 cursor: pointer;
162 }
163
164 .ka-woo-gallery__dot.is-active {
165 background: #111;
166 border-color: #111;
167 }
168
169 .ka-woo-gallery--dots-light .ka-woo-gallery__dot {
170 border-color: rgba(255, 255, 255, 0.7);
171 background: transparent;
172 }
173
174 .ka-woo-gallery--dots-light .ka-woo-gallery__dot.is-active {
175 background: #fff;
176 border-color: #fff;
177 }
178
179 .ka-woo-gallery__lightbox {
180 position: fixed;
181 inset: 0;
182 background: rgba(0, 0, 0, 0.75);
183 display: none;
184 align-items: center;
185 justify-content: center;
186 z-index: 9999;
187 padding: 16px;
188 }
189
190 .ka-woo-gallery__lightbox.is-open {
191 display: flex;
192 }
193
194 .ka-woo-gallery__lightbox-body {
195 position: relative;
196 background: #0f172a;
197 border-radius: 12px;
198 padding: 16px;
199 max-width: 90vw;
200 max-height: 90vh;
201 display: grid;
202 gap: 12px;
203 color: #fff;
204 }
205
206 .ka-woo-gallery__lightbox-top {
207 display: flex;
208 align-items: center;
209 justify-content: space-between;
210 gap: 12px;
211 }
212
213 .ka-woo-gallery__lightbox-counter {
214 font-size: 14px;
215 opacity: 0.85;
216 }
217
218 .ka-woo-gallery__lightbox-media {
219 display: grid;
220 gap: 8px;
221 justify-items: center;
222 }
223
224 .ka-woo-gallery__lightbox img {
225 max-width: 100%;
226 max-height: 80vh;
227 display: block;
228 }
229
230 .ka-woo-gallery__lightbox-close {
231 position: absolute;
232 top: 8px;
233 right: 8px;
234 border: none;
235 background: rgba(255, 255, 255, 0.12);
236 color: #fff;
237 width: 34px;
238 height: 34px;
239 border-radius: 50%;
240 cursor: pointer;
241 }
242
243 .ka-woo-gallery__lightbox-nav {
244 display: inline-flex;
245 gap: 8px;
246 justify-content: flex-end;
247 }
248
249 .ka-woo-gallery__lb-prev,
250 .ka-woo-gallery__lb-next {
251 border: none;
252 background: rgba(255, 255, 255, 0.12);
253 color: #fff;
254 padding: 8px 10px;
255 border-radius: 6px;
256 cursor: pointer;
257 }
258
259 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lightbox-body {
260 background: #fff;
261 color: #0f172a;
262 }
263
264 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lightbox-close,
265 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lb-prev,
266 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lb-next {
267 background: rgba(15, 23, 42, 0.08);
268 color: #0f172a;
269 }
270
271 .ka-woo-gallery__lightbox-thumbs {
272 display: grid;
273 grid-auto-flow: column;
274 grid-auto-columns: 64px;
275 gap: 8px;
276 overflow-x: auto;
277 padding: 4px;
278 }
279
280 .ka-woo-gallery__lightbox-thumb {
281 border: none;
282 padding: 0;
283 width: 64px;
284 height: 64px;
285 border-radius: 8px;
286 overflow: hidden;
287 position: relative;
288 cursor: pointer;
289 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
290 transition: box-shadow 0.2s ease, transform 0.2s ease;
291 }
292
293 .ka-woo-gallery__lightbox-thumb span {
294 display: block;
295 width: 100%;
296 height: 100%;
297 background-size: cover;
298 background-position: center;
299 }
300
301 .ka-woo-gallery__lightbox-thumb.is-active {
302 box-shadow: 0 0 0 2px #2563eb, 0 8px 18px rgba(37, 99, 235, 0.25);
303 transform: translateY(-2px);
304 }
305
306 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lightbox-body {
307 background: #fff;
308 color: #0f172a;
309 }
310
311 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lightbox-close,
312 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lb-prev,
313 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lb-next {
314 background: rgba(15, 23, 42, 0.08);
315 color: #0f172a;
316 }
317
318 .ka-woo-gallery--thumbs-left,
319 .ka-woo-gallery--thumbs-right {
320 display: grid;
321 gap: 12px;
322 align-items: start;
323 }
324
325 .ka-woo-gallery--thumbs-left {
326 grid-template-columns: 110px 1fr;
327 }
328
329 .ka-woo-gallery--thumbs-right {
330 grid-template-columns: 1fr 110px;
331 }
332
333 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumbs,
334 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumbs {
335 display: grid;
336 grid-template-columns: 1fr;
337 grid-auto-rows: 90px;
338 gap: 8px;
339 position: sticky;
340 top: 20px;
341 }
342
343 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumb,
344 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumb {
345 height: 100%;
346 }
347
348 .ka-woo-gallery__zoom-lens {
349 position: absolute;
350 width: 120px;
351 height: 120px;
352 border: 2px solid rgba(37, 99, 235, 0.6);
353 border-radius: 6px;
354 background-repeat: no-repeat;
355 background-size: 200% 200%;
356 display: none;
357 pointer-events: none;
358 }
359
360 .ka-woo-gallery--zoom .ka-woo-gallery__slide:hover .ka-woo-gallery__zoom-lens,
361 .ka-woo-gallery--zoom .ka-woo-gallery__zoom-lens.is-visible {
362 display: block;
363 }
364
365 @media (max-width: 767px) {
366 /* The mobile layout control emitted these classes but nothing styled them,
367 so switching a slider to a grid on a phone only changed which slides the
368 script un-hid - they then lined up in the flex row and overflowed. */
369 .ka-woo-gallery--mobile-grid .ka-woo-gallery__slider {
370 display: grid;
371 grid-template-columns: repeat(var(--ka-gallery-grid-cols, 2), minmax(0, 1fr));
372 gap: var(--ka-gallery-gap, 12px);
373 }
374
375 .ka-woo-gallery--mobile-grid .ka-woo-gallery__slide {
376 min-width: 0;
377 }
378
379 .ka-woo-gallery--mobile-grid .ka-woo-gallery__arrow,
380 .ka-woo-gallery--mobile-grid .ka-woo-gallery__dots,
381 .ka-woo-gallery--mobile-grid .ka-woo-gallery__thumbs {
382 display: none;
383 }
384
385 .ka-woo-gallery--mobile-slider .ka-woo-gallery__slider {
386 display: flex;
387 column-count: auto;
388 grid-template-columns: none;
389 }
390
391 .ka-woo-gallery--thumbs-left,
392 .ka-woo-gallery--thumbs-right {
393 grid-template-columns: 1fr;
394 }
395 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumbs,
396 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumbs {
397 position: relative;
398 grid-auto-rows: auto;
399 grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
400 }
401 }
402
403
404