PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.83
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.83
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 51.1.46 All 39 releases
king-addons / includes / widgets / Woo_Products_Grid / style.css

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

370 lines 7.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .ka-woo-products-grid {
2 display: grid;
3 gap: 16px;
4 grid-template-columns: repeat(var(--ka-grid-desktop, 4), minmax(0, 1fr));
5 }
6
7 /* Masonry spans are counted in 8px rows, and a row gap applies between every
8 one of them - an 82-row card picked up 81 gaps and grew to 1952px. The gap
9 is folded into the span instead, and align-self keeps the item at its
10 content height so measuring it does not feed back into its own span. */
11 .ka-woo-products-grid[data-layout-type="masonry"] {
12 grid-auto-rows: var(--ka-masonry-row, 8px);
13 grid-row-gap: 0;
14 }
15
16 .ka-woo-products-grid[data-layout-type="masonry"] .ka-woo-products-grid__item {
17 align-self: start;
18 margin-bottom: var(--ka-masonry-gap, 16px);
19 }
20
21 .ka-woo-products-grid--slider {
22 overflow: hidden;
23 position: relative;
24 }
25
26 /* The track is the container's only child, so leaving the container on its
27 column count parked the whole slider in the first column - a 1120px grid
28 showed a 268px slider. */
29 .ka-woo-products-grid[data-layout-type="slider"] {
30 grid-template-columns: minmax(0, 1fr);
31 }
32
33 /* A list card puts the image beside the text and needs a full row. On the
34 normal column count a 180px thumbnail was crammed into a 268px cell, leaving
35 80px for the title, price and button. */
36 .ka-woo-products-grid[data-card-layout="list"] {
37 grid-template-columns: minmax(0, 1fr);
38 }
39
40 .ka-woo-products-grid__track {
41 display: flex;
42 gap: 0;
43 transition: transform 0.3s ease;
44 }
45
46 .ka-woo-products-grid--slider .ka-woo-products-grid__slide,
47 .ka-woo-products-grid--slider .ka-woo-products-grid__item {
48 min-width: 100%;
49 }
50
51 @media (max-width: 1024px) {
52 .ka-woo-products-grid {
53 grid-template-columns: repeat(var(--ka-grid-tablet, 3), minmax(0, 1fr));
54 }
55 }
56
57 @media (max-width: 767px) {
58 .ka-woo-products-grid {
59 grid-template-columns: repeat(var(--ka-grid-mobile, 2), minmax(0, 1fr));
60 }
61 }
62
63 .ka-woo-products-grid__item {
64 border: 1px solid #eee;
65 padding: 12px;
66 display: grid;
67 gap: 8px;
68 }
69
70 .ka-woo-products-grid__item--list {
71 grid-template-columns: 180px 1fr;
72 align-items: start;
73 gap: 12px;
74 }
75
76 @media (max-width: 767px) {
77 .ka-woo-products-grid__item--list {
78 grid-template-columns: 1fr;
79 }
80 }
81
82 .ka-woo-products-grid__thumb-wrap {
83 position: relative;
84 }
85
86 .ka-woo-products-grid__thumb img {
87 width: 100%;
88 height: auto;
89 display: block;
90 }
91
92 .ka-woo-products-grid__list-thumb .ka-woo-products-grid__thumb {
93 display: block;
94 }
95
96 .ka-woo-products-grid__list-body {
97 display: grid;
98 gap: 6px;
99 }
100
101 .ka-woo-products-grid__actions {
102 display: flex;
103 flex-direction: column;
104 align-items: flex-start;
105 gap: 8px;
106 }
107
108 .ka-woo-products-grid__badges {
109 position: absolute;
110 top: 8px;
111 left: 8px;
112 display: flex;
113 gap: 6px;
114 flex-wrap: wrap;
115 z-index: 2;
116 }
117
118 .ka-woo-products-grid__badge {
119 background: #111827;
120 color: #fff;
121 padding: 4px 8px;
122 font-size: 11px;
123 border-radius: 999px;
124 position: relative;
125 font-weight: 600;
126 box-shadow: 0 6px 12px rgba(17, 24, 39, 0.18);
127 }
128
129 .ka-woo-products-grid__badge--best {
130 background: linear-gradient(135deg, #2563eb, #1d4ed8);
131 }
132
133 .ka-woo-products-grid__badge--custom {
134 background: linear-gradient(135deg, #f59e0b, #d97706);
135 }
136
137 .ka-woo-products-grid__title {
138 margin: 0;
139 font-size: 16px;
140 line-height: 1.4;
141 }
142
143 .ka-woo-products-grid__title a {
144 text-decoration: none;
145 color: inherit;
146 }
147
148 .ka-woo-products-grid__price {
149 font-weight: 700;
150 }
151
152 .ka-woo-products-grid__rating {
153 display: inline-flex;
154 align-items: center;
155 gap: 4px;
156 }
157
158 .ka-woo-products-grid__excerpt {
159 font-size: 14px;
160 line-height: 1.5;
161 color: #444;
162 }
163
164 .ka-woo-products-grid__meta {
165 display: flex;
166 flex-wrap: wrap;
167 gap: 8px;
168 font-size: 12px;
169 color: #555;
170 }
171
172 .ka-woo-products-grid__meta-item {
173 display: inline-flex;
174 gap: 4px;
175 align-items: center;
176 }
177
178 .ka-woo-products-grid__pagination {
179 margin-top: 16px;
180 text-align: center;
181 }
182
183 .ka-woo-products-grid__pagination.ka-woo-products-grid__pagination--align-left {
184 text-align: left;
185 }
186
187 .ka-woo-products-grid__pagination.ka-woo-products-grid__pagination--align-center {
188 text-align: center;
189 }
190
191 .ka-woo-products-grid__pagination.ka-woo-products-grid__pagination--align-right {
192 text-align: right;
193 }
194
195 .ka-woo-products-grid__load-more {
196 padding: 10px 16px;
197 border: 1px solid #ddd;
198 background: #f7f7f7;
199 cursor: pointer;
200 transition: all 0.2s ease;
201 min-width: 140px;
202 display: inline-flex;
203 align-items: center;
204 justify-content: center;
205 gap: 8px;
206 }
207
208 .ka-woo-products-grid__load-more:hover {
209 background: #eee;
210 }
211
212 .ka-woo-products-grid__load-more.is-loading {
213 opacity: 0.7;
214 cursor: not-allowed;
215 }
216
217 .ka-woo-products-grid__load-more--skin-outline {
218 background: transparent;
219 border: 1px solid #111;
220 color: #111;
221 }
222
223 .ka-woo-products-grid__load-more--skin-outline:hover {
224 background: #111;
225 color: #fff;
226 }
227
228 .ka-woo-products-grid__load-more--skin-ghost {
229 background: transparent;
230 border: none;
231 color: #111;
232 }
233
234 .ka-woo-products-grid__load-more--skin-ghost:hover {
235 color: #555;
236 }
237
238 .ka-woo-products-grid__spinner {
239 width: 14px;
240 height: 14px;
241 border-radius: 50%;
242 border: 2px solid rgba(0, 0, 0, 0.15);
243 border-top-color: rgba(0, 0, 0, 0.55);
244 animation: ka-woo-products-grid-spin 0.8s linear infinite;
245 display: none;
246 }
247
248 .ka-woo-products-grid__load-more.is-loading .ka-woo-products-grid__spinner {
249 display: inline-block;
250 }
251
252 .ka-woo-products-grid__slider-nav {
253 display: flex;
254 align-items: center;
255 justify-content: space-between;
256 gap: 12px;
257 margin-top: 10px;
258 }
259
260 .ka-woo-products-grid__slider-controls {
261 display: inline-flex;
262 gap: 8px;
263 }
264
265 .ka-woo-products-grid__slider-btn {
266 border: 1px solid #ddd;
267 background: #fff;
268 padding: 6px 10px;
269 cursor: pointer;
270 border-radius: 4px;
271 }
272
273 .ka-woo-products-grid__slider-btn:hover {
274 background: #f4f4f4;
275 }
276
277 .ka-woo-products-grid__slider-dots {
278 display: inline-flex;
279 gap: 6px;
280 align-items: center;
281 }
282
283 .ka-woo-products-grid__slider-dot {
284 width: 10px;
285 height: 10px;
286 border-radius: 50%;
287 border: 1px solid #999;
288 background: #fff;
289 padding: 0;
290 cursor: pointer;
291 }
292
293 .ka-woo-products-grid__slider-dot.is-active {
294 background: #111;
295 border-color: #111;
296 }
297
298 .ka-woo-products-grid__sentinel {
299 height: 36px;
300 display: flex;
301 align-items: center;
302 justify-content: center;
303 }
304
305 .ka-woo-products-grid__sentinel::after {
306 content: '';
307 width: 16px;
308 height: 16px;
309 border-radius: 50%;
310 border: 2px solid rgba(0, 0, 0, 0.12);
311 border-top-color: rgba(0, 0, 0, 0.5);
312 animation: ka-woo-products-grid-spin 0.8s linear infinite;
313 opacity: 0.6;
314 }
315
316 .ka-woo-products-grid__lightbox {
317 position: fixed;
318 inset: 0;
319 background: rgba(0, 0, 0, 0.75);
320 display: none;
321 align-items: center;
322 justify-content: center;
323 z-index: 9999;
324 padding: 20px;
325 }
326
327 .ka-woo-products-grid__lightbox.is-open {
328 display: flex;
329 }
330
331 .ka-woo-products-grid__lightbox-figure {
332 margin: 0;
333 max-width: 90vw;
334 max-height: 90vh;
335 color: #fff;
336 text-align: center;
337 }
338
339 .ka-woo-products-grid__lightbox img {
340 max-width: 100%;
341 max-height: 80vh;
342 display: block;
343 margin: 0 auto 8px;
344 }
345
346 .ka-woo-products-grid__lightbox-close {
347 position: absolute;
348 top: 12px;
349 right: 12px;
350 border: none;
351 background: rgba(0, 0, 0, 0.5);
352 color: #fff;
353 font-size: 24px;
354 line-height: 1;
355 padding: 6px 10px;
356 cursor: pointer;
357 }
358
359 @keyframes ka-woo-products-grid-spin {
360 to {
361 transform: rotate(360deg);
362 }
363 }
364
365
366
367
368
369
370