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

356 lines 7.4 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 .ka-woo-gallery__dots {
136 display: inline-flex;
137 gap: 6px;
138 align-items: center;
139 margin-top: 8px;
140 }
141
142 .ka-woo-gallery__dot {
143 width: 10px;
144 height: 10px;
145 border-radius: 50%;
146 border: 1px solid #999;
147 background: #fff;
148 padding: 0;
149 cursor: pointer;
150 }
151
152 .ka-woo-gallery__dot.is-active {
153 background: #111;
154 border-color: #111;
155 }
156
157 .ka-woo-gallery__lightbox {
158 position: fixed;
159 inset: 0;
160 background: rgba(0, 0, 0, 0.75);
161 display: none;
162 align-items: center;
163 justify-content: center;
164 z-index: 9999;
165 padding: 16px;
166 }
167
168 .ka-woo-gallery__lightbox.is-open {
169 display: flex;
170 }
171
172 .ka-woo-gallery__lightbox-body {
173 position: relative;
174 background: #0f172a;
175 border-radius: 12px;
176 padding: 16px;
177 max-width: 90vw;
178 max-height: 90vh;
179 display: grid;
180 gap: 12px;
181 color: #fff;
182 }
183
184 .ka-woo-gallery__lightbox-top {
185 display: flex;
186 align-items: center;
187 justify-content: space-between;
188 gap: 12px;
189 }
190
191 .ka-woo-gallery__lightbox-counter {
192 font-size: 14px;
193 opacity: 0.85;
194 }
195
196 .ka-woo-gallery__lightbox-media {
197 display: grid;
198 gap: 8px;
199 justify-items: center;
200 }
201
202 .ka-woo-gallery__lightbox img {
203 max-width: 100%;
204 max-height: 80vh;
205 display: block;
206 }
207
208 .ka-woo-gallery__lightbox-close {
209 position: absolute;
210 top: 8px;
211 right: 8px;
212 border: none;
213 background: rgba(255, 255, 255, 0.12);
214 color: #fff;
215 width: 34px;
216 height: 34px;
217 border-radius: 50%;
218 cursor: pointer;
219 }
220
221 .ka-woo-gallery__lightbox-nav {
222 display: inline-flex;
223 gap: 8px;
224 justify-content: flex-end;
225 }
226
227 .ka-woo-gallery__lb-prev,
228 .ka-woo-gallery__lb-next {
229 border: none;
230 background: rgba(255, 255, 255, 0.12);
231 color: #fff;
232 padding: 8px 10px;
233 border-radius: 6px;
234 cursor: pointer;
235 }
236
237 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lightbox-body {
238 background: #fff;
239 color: #0f172a;
240 }
241
242 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lightbox-close,
243 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lb-prev,
244 .ka-woo-gallery__lightbox--light .ka-woo-gallery__lb-next {
245 background: rgba(15, 23, 42, 0.08);
246 color: #0f172a;
247 }
248
249 .ka-woo-gallery__lightbox-thumbs {
250 display: grid;
251 grid-auto-flow: column;
252 grid-auto-columns: 64px;
253 gap: 8px;
254 overflow-x: auto;
255 padding: 4px;
256 }
257
258 .ka-woo-gallery__lightbox-thumb {
259 border: none;
260 padding: 0;
261 width: 64px;
262 height: 64px;
263 border-radius: 8px;
264 overflow: hidden;
265 position: relative;
266 cursor: pointer;
267 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
268 transition: box-shadow 0.2s ease, transform 0.2s ease;
269 }
270
271 .ka-woo-gallery__lightbox-thumb span {
272 display: block;
273 width: 100%;
274 height: 100%;
275 background-size: cover;
276 background-position: center;
277 }
278
279 .ka-woo-gallery__lightbox-thumb.is-active {
280 box-shadow: 0 0 0 2px #2563eb, 0 8px 18px rgba(37, 99, 235, 0.25);
281 transform: translateY(-2px);
282 }
283
284 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lightbox-body {
285 background: #fff;
286 color: #0f172a;
287 }
288
289 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lightbox-close,
290 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lb-prev,
291 .ka-woo-gallery--lightbox-light .ka-woo-gallery__lb-next {
292 background: rgba(15, 23, 42, 0.08);
293 color: #0f172a;
294 }
295
296 .ka-woo-gallery--thumbs-left,
297 .ka-woo-gallery--thumbs-right {
298 display: grid;
299 gap: 12px;
300 align-items: start;
301 }
302
303 .ka-woo-gallery--thumbs-left {
304 grid-template-columns: 110px 1fr;
305 }
306
307 .ka-woo-gallery--thumbs-right {
308 grid-template-columns: 1fr 110px;
309 }
310
311 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumbs,
312 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumbs {
313 display: grid;
314 grid-template-columns: 1fr;
315 grid-auto-rows: 90px;
316 gap: 8px;
317 position: sticky;
318 top: 20px;
319 }
320
321 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumb,
322 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumb {
323 height: 100%;
324 }
325
326 .ka-woo-gallery__zoom-lens {
327 position: absolute;
328 width: 120px;
329 height: 120px;
330 border: 2px solid rgba(37, 99, 235, 0.6);
331 border-radius: 6px;
332 background-repeat: no-repeat;
333 background-size: 200% 200%;
334 display: none;
335 pointer-events: none;
336 }
337
338 .ka-woo-gallery--zoom .ka-woo-gallery__slide:hover .ka-woo-gallery__zoom-lens {
339 display: block;
340 }
341
342 @media (max-width: 767px) {
343 .ka-woo-gallery--thumbs-left,
344 .ka-woo-gallery--thumbs-right {
345 grid-template-columns: 1fr;
346 }
347 .ka-woo-gallery--thumbs-left .ka-woo-gallery__thumbs,
348 .ka-woo-gallery--thumbs-right .ka-woo-gallery__thumbs {
349 position: relative;
350 grid-auto-rows: auto;
351 grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
352 }
353 }
354
355
356