PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.87
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.87
51.1.87 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 All 41 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.87, at includes/widgets/Woo_Product_Images_Gallery/style.css

408 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 body.admin-bar .ka-woo-gallery__lightbox {
191 padding-top: 48px;
192 }
193
194 .ka-woo-gallery__lightbox.is-open {
195 display: flex;
196 }
197
198 .ka-woo-gallery__lightbox-body {
199 position: relative;
200 background: #0f172a;
201 border-radius: 12px;
202 padding: 16px;
203 max-width: 90vw;
204 max-height: 90vh;
205 display: grid;
206 gap: 12px;
207 color: #fff;
208 }
209
210 .ka-woo-gallery__lightbox-top {
211 display: flex;
212 align-items: center;
213 justify-content: space-between;
214 gap: 12px;
215 }
216
217 .ka-woo-gallery__lightbox-counter {
218 font-size: 14px;
219 opacity: 0.85;
220 }
221
222 .ka-woo-gallery__lightbox-media {
223 display: grid;
224 gap: 8px;
225 justify-items: center;
226 }
227
228 .ka-woo-gallery__lightbox img {
229 max-width: 100%;
230 max-height: 80vh;
231 display: block;
232 }
233
234 .ka-woo-gallery__lightbox-close {
235 position: static;
236 z-index: 3;
237 border: none;
238 background: rgba(255, 255, 255, 0.12);
239 color: #fff;
240 width: 34px;
241 height: 34px;
242 border-radius: 50%;
243 cursor: pointer;
244 flex-shrink: 0;
245 }
246
247 .ka-woo-gallery__lightbox-nav {
248 display: inline-flex;
249 gap: 8px;
250 justify-content: flex-end;
251 }
252
253 .ka-woo-gallery__lb-prev,
254 .ka-woo-gallery__lb-next {
255 border: none;
256 background: rgba(255, 255, 255, 0.12);
257 color: #fff;
258 padding: 8px 10px;
259 border-radius: 6px;
260 cursor: pointer;
261 }
262
263 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lightbox-body {
264 background: #fff;
265 color: #0f172a;
266 }
267
268 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lightbox-close,
269 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lb-prev,
270 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lb-next {
271 background: rgba(15, 23, 42, 0.08);
272 color: #0f172a;
273 }
274
275 .ka-woo-gallery__lightbox-thumbs {
276 display: grid;
277 grid-auto-flow: column;
278 grid-auto-columns: 64px;
279 gap: 8px;
280 overflow-x: auto;
281 padding: 4px;
282 }
283
284 .ka-woo-gallery__lightbox-thumb {
285 border: none;
286 padding: 0;
287 width: 64px;
288 height: 64px;
289 border-radius: 8px;
290 overflow: hidden;
291 position: relative;
292 cursor: pointer;
293 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
294 transition: box-shadow 0.2s ease, transform 0.2s ease;
295 }
296
297 .ka-woo-gallery__lightbox-thumb span {
298 display: block;
299 width: 100%;
300 height: 100%;
301 background-size: cover;
302 background-position: center;
303 }
304
305 .ka-woo-gallery__lightbox-thumb.is-active {
306 box-shadow: 0 0 0 2px #2563eb, 0 8px 18px rgba(37, 99, 235, 0.25);
307 transform: translateY(-2px);
308 }
309
310 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lightbox-body {
311 background: #fff;
312 color: #0f172a;
313 }
314
315 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lightbox-close,
316 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lb-prev,
317 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lb-next {
318 background: rgba(15, 23, 42, 0.08);
319 color: #0f172a;
320 }
321
322 .ka-woo-gallery--thumbs-left,
323 .ka-woo-gallery--thumbs-right {
324 display: grid;
325 gap: 12px;
326 align-items: start;
327 }
328
329 .ka-woo-gallery--thumbs-left {
330 grid-template-columns: 110px 1fr;
331 }
332
333 .ka-woo-gallery--thumbs-right {
334 grid-template-columns: 1fr 110px;
335 }
336
337 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumbs,
338 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumbs {
339 display: grid;
340 grid-template-columns: 1fr;
341 grid-auto-rows: 90px;
342 gap: 8px;
343 position: sticky;
344 top: 20px;
345 }
346
347 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumb,
348 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumb {
349 height: 100%;
350 }
351
352 .ka-woo-gallery__zoom-lens {
353 position: absolute;
354 width: 120px;
355 height: 120px;
356 border: 2px solid rgba(37, 99, 235, 0.6);
357 border-radius: 6px;
358 background-repeat: no-repeat;
359 background-size: 200% 200%;
360 display: none;
361 pointer-events: none;
362 }
363
364 .ka-woo-gallery--zoom .ka-woo-gallery__slide:hover .ka-woo-gallery__zoom-lens,
365 .ka-woo-gallery--zoom .ka-woo-gallery__zoom-lens.is-visible {
366 display: block;
367 }
368
369 @media (max-width: 767px) {
370 /* The mobile layout control emitted these classes but nothing styled them,
371 so switching a slider to a grid on a phone only changed which slides the
372 script un-hid - they then lined up in the flex row and overflowed. */
373 .ka-woo-gallery--mobile-grid .ka-woo-gallery__slider {
374 display: grid;
375 grid-template-columns: repeat(var(--ka-gallery-grid-cols, 2), minmax(0, 1fr));
376 gap: var(--ka-gallery-gap, 12px);
377 }
378
379 .ka-woo-gallery--mobile-grid .ka-woo-gallery__slide {
380 min-width: 0;
381 }
382
383 .ka-woo-gallery--mobile-grid .ka-woo-gallery__arrow,
384 .ka-woo-gallery--mobile-grid .ka-woo-gallery__dots,
385 .ka-woo-gallery--mobile-grid .ka-woo-gallery__thumbs {
386 display: none;
387 }
388
389 .ka-woo-gallery--mobile-slider .ka-woo-gallery__slider {
390 display: flex;
391 column-count: auto;
392 grid-template-columns: none;
393 }
394
395 .ka-woo-gallery--thumbs-left,
396 .ka-woo-gallery--thumbs-right {
397 grid-template-columns: 1fr;
398 }
399 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumbs,
400 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumbs {
401 position: relative;
402 grid-auto-rows: auto;
403 grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
404 }
405 }
406
407
408