@pradip1995/segment-powerhouse-shop 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/add-to-cart.ts +24 -0
- package/src/product-card.tsx +80 -44
- package/src/shop.css +387 -78
- package/src/shop.tsx +270 -145
package/src/shop.css
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
html.powerhouse-filters-open,
|
|
2
|
+
html.powerhouse-filters-open body {
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.powerhouse-shop .sr-only {
|
|
7
|
+
position: absolute;
|
|
8
|
+
width: 1px;
|
|
9
|
+
height: 1px;
|
|
10
|
+
padding: 0;
|
|
11
|
+
margin: -1px;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
clip: rect(0, 0, 0, 0);
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
border: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
1
18
|
.powerhouse-shop {
|
|
2
19
|
--layout-container-max-width: 1400px;
|
|
3
20
|
max-width: var(--layout-container-max-width);
|
|
@@ -94,29 +111,52 @@
|
|
|
94
111
|
align-items: center;
|
|
95
112
|
justify-content: space-between;
|
|
96
113
|
gap: 1rem;
|
|
97
|
-
margin
|
|
114
|
+
margin: 0;
|
|
115
|
+
padding: 1.1rem 1.15rem;
|
|
116
|
+
border-bottom: 1px solid #e8e8e8;
|
|
117
|
+
background: #fff;
|
|
98
118
|
}
|
|
99
119
|
|
|
100
120
|
.powerhouse-shop__sidebar h2,
|
|
101
|
-
.powerhouse-shop__filter
|
|
121
|
+
.powerhouse-shop__filter-toggle {
|
|
102
122
|
margin: 0;
|
|
103
123
|
font-family: var(--font-sans, inherit);
|
|
104
124
|
font-weight: 700;
|
|
125
|
+
color: #1d1d1d;
|
|
105
126
|
}
|
|
106
127
|
|
|
107
128
|
.powerhouse-shop__sidebar h2 {
|
|
108
129
|
font-size: 1.25rem;
|
|
130
|
+
line-height: 1.2;
|
|
109
131
|
}
|
|
110
132
|
|
|
111
133
|
.powerhouse-shop__filter {
|
|
112
|
-
margin: 0
|
|
113
|
-
padding
|
|
114
|
-
border-bottom: 1px solid #
|
|
134
|
+
margin: 0;
|
|
135
|
+
padding: 0;
|
|
136
|
+
border-bottom: 1px solid #e8e8e8;
|
|
115
137
|
}
|
|
116
138
|
|
|
117
|
-
.powerhouse-shop__filter
|
|
118
|
-
|
|
139
|
+
.powerhouse-shop__filter-toggle {
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: space-between;
|
|
143
|
+
width: 100%;
|
|
144
|
+
padding: 1.05rem 0 0.85rem;
|
|
145
|
+
border: 0;
|
|
146
|
+
background: transparent;
|
|
119
147
|
font-size: 0.9375rem;
|
|
148
|
+
text-align: left;
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.powerhouse-shop__filter-icon {
|
|
153
|
+
font-size: 1.25rem;
|
|
154
|
+
line-height: 1;
|
|
155
|
+
font-weight: 400;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.powerhouse-shop__filter-body {
|
|
159
|
+
padding: 0 0 1.15rem;
|
|
120
160
|
}
|
|
121
161
|
|
|
122
162
|
.powerhouse-shop__filter ul {
|
|
@@ -126,21 +166,21 @@
|
|
|
126
166
|
}
|
|
127
167
|
|
|
128
168
|
.powerhouse-shop__filter li + li {
|
|
129
|
-
margin-top: 0.
|
|
169
|
+
margin-top: 0.7rem;
|
|
130
170
|
}
|
|
131
171
|
|
|
132
172
|
.powerhouse-shop__filter a {
|
|
133
173
|
display: flex;
|
|
134
174
|
align-items: center;
|
|
135
|
-
gap: 0.
|
|
175
|
+
gap: 0.7rem;
|
|
136
176
|
color: #1d1d1d;
|
|
137
177
|
font-size: 0.9375rem;
|
|
138
178
|
text-decoration: none;
|
|
139
179
|
}
|
|
140
180
|
|
|
141
181
|
.powerhouse-shop__check {
|
|
142
|
-
width:
|
|
143
|
-
height:
|
|
182
|
+
width: 1.05rem;
|
|
183
|
+
height: 1.05rem;
|
|
144
184
|
flex-shrink: 0;
|
|
145
185
|
border: 1px solid #1d1d1d;
|
|
146
186
|
background: #fff;
|
|
@@ -151,38 +191,64 @@
|
|
|
151
191
|
box-shadow: inset 0 0 0 2px #fff;
|
|
152
192
|
}
|
|
153
193
|
|
|
194
|
+
.powerhouse-shop__swatches {
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-wrap: wrap;
|
|
197
|
+
gap: 0.55rem;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.powerhouse-shop__swatches li + li {
|
|
201
|
+
margin-top: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.powerhouse-shop__swatch {
|
|
205
|
+
display: block;
|
|
206
|
+
width: 1.35rem;
|
|
207
|
+
height: 1.35rem;
|
|
208
|
+
border: 1px solid #cfcfcf;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.powerhouse-shop__swatches a.is-active .powerhouse-shop__swatch {
|
|
212
|
+
outline: 1px solid #1d1d1d;
|
|
213
|
+
outline-offset: 2px;
|
|
214
|
+
}
|
|
215
|
+
|
|
154
216
|
.powerhouse-shop__price-form {
|
|
155
217
|
display: grid;
|
|
156
218
|
grid-template-columns: 1fr 1fr;
|
|
157
|
-
gap: 0.
|
|
219
|
+
gap: 0.65rem;
|
|
158
220
|
}
|
|
159
221
|
|
|
160
|
-
.powerhouse-shop__price-
|
|
222
|
+
.powerhouse-shop__price-field {
|
|
161
223
|
display: flex;
|
|
162
|
-
|
|
163
|
-
gap: 0.
|
|
164
|
-
|
|
224
|
+
align-items: center;
|
|
225
|
+
gap: 0.35rem;
|
|
226
|
+
min-width: 0;
|
|
227
|
+
padding: 0 0.65rem;
|
|
228
|
+
border: 1px solid #dddddd;
|
|
229
|
+
background: #fff;
|
|
230
|
+
font-size: 0.9375rem;
|
|
231
|
+
color: #6e6e6e;
|
|
165
232
|
}
|
|
166
233
|
|
|
167
|
-
.powerhouse-shop__price-
|
|
168
|
-
.powerhouse-shop__sort select {
|
|
234
|
+
.powerhouse-shop__price-field input {
|
|
169
235
|
width: 100%;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
236
|
+
min-width: 0;
|
|
237
|
+
padding: 0.7rem 0;
|
|
238
|
+
border: 0;
|
|
239
|
+
background: transparent;
|
|
173
240
|
color: #1d1d1d;
|
|
174
241
|
font-family: var(--font-sans, inherit);
|
|
175
242
|
font-size: 0.9375rem;
|
|
176
243
|
}
|
|
177
244
|
|
|
178
|
-
.powerhouse-
|
|
179
|
-
|
|
180
|
-
min-width: 12rem;
|
|
245
|
+
.powerhouse-shop__price-field input:focus {
|
|
246
|
+
outline: none;
|
|
181
247
|
}
|
|
182
248
|
|
|
183
249
|
.powerhouse-shop__price-form button {
|
|
184
250
|
grid-column: 1 / -1;
|
|
185
|
-
padding: 0.
|
|
251
|
+
padding: 0.7rem 0.9rem;
|
|
186
252
|
border: 1px solid #1d1d1d;
|
|
187
253
|
background: #1d1d1d;
|
|
188
254
|
color: #fff;
|
|
@@ -212,37 +278,97 @@
|
|
|
212
278
|
display: flex;
|
|
213
279
|
align-items: center;
|
|
214
280
|
justify-content: space-between;
|
|
215
|
-
gap: 0.
|
|
216
|
-
margin:
|
|
281
|
+
gap: 0.5rem;
|
|
282
|
+
margin: 0.35rem 0 1rem;
|
|
283
|
+
flex-wrap: nowrap;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.powerhouse-shop__utils-left {
|
|
287
|
+
display: flex;
|
|
288
|
+
align-items: center;
|
|
289
|
+
min-width: 0;
|
|
290
|
+
gap: 0.15rem 1.15rem;
|
|
217
291
|
}
|
|
218
292
|
|
|
219
293
|
.powerhouse-shop__filters-btn,
|
|
220
294
|
.powerhouse-shop__sort {
|
|
221
|
-
display: flex;
|
|
295
|
+
display: inline-flex;
|
|
222
296
|
align-items: center;
|
|
223
|
-
gap: 0.
|
|
297
|
+
gap: 0.45rem;
|
|
224
298
|
font-family: var(--font-sans, inherit);
|
|
299
|
+
font-size: 0.9375rem;
|
|
300
|
+
color: #1d1d1d;
|
|
225
301
|
}
|
|
226
302
|
|
|
227
303
|
.powerhouse-shop__filters-btn {
|
|
228
|
-
padding: 0.
|
|
229
|
-
border:
|
|
304
|
+
padding: 0.45rem 0.15rem;
|
|
305
|
+
border: 0;
|
|
306
|
+
background: transparent;
|
|
307
|
+
cursor: pointer;
|
|
308
|
+
white-space: nowrap;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.powerhouse-shop__sort {
|
|
312
|
+
position: relative;
|
|
313
|
+
min-width: 0;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.powerhouse-shop__sort-control {
|
|
317
|
+
position: relative;
|
|
318
|
+
display: inline-flex;
|
|
319
|
+
align-items: center;
|
|
320
|
+
min-width: 10.75rem;
|
|
321
|
+
max-width: 100%;
|
|
322
|
+
min-height: 2.5rem;
|
|
323
|
+
padding: 0 2.15rem 0 0.9rem;
|
|
324
|
+
border: 1px solid #d4d4d4;
|
|
325
|
+
border-radius: 2px;
|
|
230
326
|
background: #fff;
|
|
327
|
+
box-shadow: 0 1px 0 rgba(29, 29, 29, 0.04);
|
|
328
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.powerhouse-shop__sort-value {
|
|
332
|
+
min-width: 0;
|
|
333
|
+
overflow: hidden;
|
|
334
|
+
text-overflow: ellipsis;
|
|
335
|
+
white-space: nowrap;
|
|
336
|
+
font-size: 0.9375rem;
|
|
337
|
+
line-height: 1.2;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.powerhouse-shop__sort-caret {
|
|
341
|
+
position: absolute;
|
|
342
|
+
right: 0.8rem;
|
|
343
|
+
top: 50%;
|
|
231
344
|
color: #1d1d1d;
|
|
345
|
+
pointer-events: none;
|
|
346
|
+
transform: translateY(-50%);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.powerhouse-shop__sort select {
|
|
350
|
+
position: absolute;
|
|
351
|
+
inset: 0;
|
|
352
|
+
width: 100%;
|
|
353
|
+
height: 100%;
|
|
354
|
+
opacity: 0;
|
|
232
355
|
cursor: pointer;
|
|
356
|
+
font-size: 1rem;
|
|
233
357
|
}
|
|
234
358
|
|
|
235
|
-
.powerhouse-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
flex-wrap: wrap;
|
|
240
|
-
gap: 0.85rem 1.25rem;
|
|
241
|
-
margin-left: auto;
|
|
359
|
+
.powerhouse-shop__sort:hover .powerhouse-shop__sort-control,
|
|
360
|
+
.powerhouse-shop__sort:focus-within .powerhouse-shop__sort-control {
|
|
361
|
+
border-color: #1d1d1d;
|
|
362
|
+
box-shadow: 0 0 0 1px #1d1d1d;
|
|
242
363
|
}
|
|
243
364
|
|
|
244
365
|
.powerhouse-shop__utils-label {
|
|
245
366
|
font-size: 0.9375rem;
|
|
367
|
+
white-space: nowrap;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.powerhouse-shop__view-label {
|
|
371
|
+
display: none;
|
|
246
372
|
}
|
|
247
373
|
|
|
248
374
|
.powerhouse-shop__view {
|
|
@@ -318,58 +444,129 @@
|
|
|
318
444
|
|
|
319
445
|
.powerhouse-shop__grid.is-list {
|
|
320
446
|
grid-template-columns: 1fr;
|
|
321
|
-
gap:
|
|
447
|
+
gap: 1rem;
|
|
322
448
|
}
|
|
323
449
|
|
|
324
|
-
.powerhouse-shop__grid.is-list .powerhouse-shop__card
|
|
450
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__card,
|
|
451
|
+
.powerhouse-shop__card.is-list-card {
|
|
325
452
|
display: grid;
|
|
326
|
-
grid-template-columns: 7.
|
|
453
|
+
grid-template-columns: 7.25rem minmax(0, 1fr);
|
|
327
454
|
align-items: start;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
455
|
+
height: auto;
|
|
456
|
+
gap: 0.9rem 1rem;
|
|
457
|
+
padding: 1rem;
|
|
458
|
+
border: 1px solid #dddddd;
|
|
331
459
|
}
|
|
332
460
|
|
|
333
|
-
.powerhouse-shop__grid.is-list .powerhouse-
|
|
334
|
-
|
|
461
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__media {
|
|
462
|
+
grid-row: 1 / 3;
|
|
335
463
|
}
|
|
336
464
|
|
|
337
|
-
.powerhouse-
|
|
338
|
-
|
|
339
|
-
|
|
465
|
+
.powerhouse-shop__copy {
|
|
466
|
+
min-width: 0;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__name {
|
|
470
|
+
display: block;
|
|
471
|
+
-webkit-line-clamp: unset;
|
|
472
|
+
overflow: visible;
|
|
473
|
+
min-height: 0;
|
|
474
|
+
font-weight: 700;
|
|
475
|
+
font-size: 1.0625rem;
|
|
476
|
+
line-height: 1.3;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__stock {
|
|
480
|
+
margin-top: 0.25rem;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__stock.is-out {
|
|
484
|
+
color: #1d1d1d;
|
|
340
485
|
}
|
|
341
486
|
|
|
342
487
|
.powerhouse-shop__grid.is-list .powerhouse-shop__excerpt {
|
|
343
488
|
display: block;
|
|
489
|
+
margin-top: 0.65rem;
|
|
490
|
+
color: #4d4d4d;
|
|
491
|
+
font-size: 0.9375rem;
|
|
492
|
+
line-height: 1.55;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.powerhouse-shop__details-link {
|
|
496
|
+
display: inline-block;
|
|
497
|
+
margin-top: 0.7rem;
|
|
498
|
+
color: #1d1d1d;
|
|
499
|
+
font-size: 0.9375rem;
|
|
500
|
+
text-decoration: underline;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.powerhouse-shop__details-link:hover {
|
|
504
|
+
text-decoration: underline;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.powerhouse-shop__aside {
|
|
508
|
+
display: flex;
|
|
509
|
+
flex-direction: column;
|
|
510
|
+
align-items: stretch;
|
|
511
|
+
justify-content: space-between;
|
|
512
|
+
gap: 1rem;
|
|
513
|
+
min-width: 0;
|
|
514
|
+
grid-column: 2;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__price {
|
|
518
|
+
margin: 0;
|
|
519
|
+
min-height: 0;
|
|
344
520
|
}
|
|
345
521
|
|
|
346
522
|
.powerhouse-shop__grid.is-list .powerhouse-shop__actions {
|
|
523
|
+
display: flex;
|
|
524
|
+
flex-direction: column;
|
|
525
|
+
width: 100%;
|
|
526
|
+
margin-top: 0;
|
|
527
|
+
padding-top: 0;
|
|
347
528
|
opacity: 1;
|
|
348
529
|
pointer-events: auto;
|
|
349
530
|
}
|
|
350
531
|
|
|
532
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__quickshop,
|
|
533
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__atc {
|
|
534
|
+
flex: none;
|
|
535
|
+
width: 100%;
|
|
536
|
+
}
|
|
537
|
+
|
|
351
538
|
.powerhouse-shop__grid {
|
|
352
539
|
display: grid;
|
|
353
540
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
354
|
-
|
|
541
|
+
align-items: stretch;
|
|
542
|
+
gap: 2rem 10px;
|
|
543
|
+
width: 100%;
|
|
355
544
|
}
|
|
356
545
|
|
|
357
546
|
.powerhouse-shop__card {
|
|
547
|
+
display: flex;
|
|
548
|
+
flex-direction: column;
|
|
549
|
+
height: 100%;
|
|
358
550
|
min-width: 0;
|
|
551
|
+
max-width: 100%;
|
|
359
552
|
}
|
|
360
553
|
|
|
361
554
|
.powerhouse-shop__media {
|
|
362
555
|
position: relative;
|
|
363
556
|
display: block;
|
|
557
|
+
width: 100%;
|
|
364
558
|
overflow: hidden;
|
|
365
559
|
background: #f3f3f3;
|
|
560
|
+
aspect-ratio: 1;
|
|
366
561
|
}
|
|
367
562
|
|
|
368
563
|
.powerhouse-shop__media img,
|
|
369
564
|
.powerhouse-shop__placeholder {
|
|
565
|
+
position: absolute;
|
|
566
|
+
inset: 0;
|
|
370
567
|
display: block;
|
|
371
568
|
width: 100%;
|
|
372
|
-
|
|
569
|
+
height: 100%;
|
|
373
570
|
object-fit: cover;
|
|
374
571
|
}
|
|
375
572
|
|
|
@@ -396,15 +593,24 @@
|
|
|
396
593
|
}
|
|
397
594
|
|
|
398
595
|
.powerhouse-shop__info {
|
|
596
|
+
display: flex;
|
|
597
|
+
flex-direction: column;
|
|
598
|
+
flex: 1 1 auto;
|
|
599
|
+
min-width: 0;
|
|
399
600
|
padding-top: 0.75rem;
|
|
400
601
|
}
|
|
401
602
|
|
|
402
603
|
.powerhouse-shop__name {
|
|
604
|
+
display: -webkit-box;
|
|
605
|
+
-webkit-box-orient: vertical;
|
|
606
|
+
-webkit-line-clamp: 2;
|
|
607
|
+
overflow: hidden;
|
|
403
608
|
margin: 0;
|
|
609
|
+
min-height: calc(1em * 1.35 * 2);
|
|
404
610
|
font-family: var(--font-sans, inherit);
|
|
405
611
|
font-size: 1rem;
|
|
406
612
|
font-weight: 400;
|
|
407
|
-
line-height: 1.
|
|
613
|
+
line-height: 1.35;
|
|
408
614
|
}
|
|
409
615
|
|
|
410
616
|
.powerhouse-shop__name a {
|
|
@@ -414,6 +620,7 @@
|
|
|
414
620
|
|
|
415
621
|
.powerhouse-shop__stock {
|
|
416
622
|
margin: 0.35rem 0 0;
|
|
623
|
+
min-height: 1.2em;
|
|
417
624
|
color: #688600;
|
|
418
625
|
font-size: 0.8125rem;
|
|
419
626
|
}
|
|
@@ -431,7 +638,8 @@
|
|
|
431
638
|
}
|
|
432
639
|
|
|
433
640
|
.powerhouse-shop__price {
|
|
434
|
-
margin
|
|
641
|
+
margin: 0 0 0.4rem;
|
|
642
|
+
min-height: 2.7rem;
|
|
435
643
|
}
|
|
436
644
|
|
|
437
645
|
.powerhouse-shop__compare {
|
|
@@ -455,23 +663,29 @@
|
|
|
455
663
|
|
|
456
664
|
.powerhouse-shop__actions {
|
|
457
665
|
display: flex;
|
|
458
|
-
flex-
|
|
459
|
-
|
|
460
|
-
|
|
666
|
+
flex-direction: column;
|
|
667
|
+
flex-wrap: nowrap;
|
|
668
|
+
gap: 0.4rem;
|
|
669
|
+
margin-top: auto;
|
|
670
|
+
padding-top: 0.75rem;
|
|
461
671
|
}
|
|
462
672
|
|
|
463
673
|
.powerhouse-shop__quickshop,
|
|
464
674
|
.powerhouse-shop__atc {
|
|
465
|
-
display:
|
|
675
|
+
display: flex;
|
|
466
676
|
align-items: center;
|
|
467
677
|
justify-content: center;
|
|
678
|
+
width: 100%;
|
|
468
679
|
min-height: 2.5rem;
|
|
469
|
-
padding: 0.5rem 0.
|
|
680
|
+
padding: 0.5rem 0.45rem;
|
|
470
681
|
border-radius: 2px;
|
|
682
|
+
box-sizing: border-box;
|
|
471
683
|
font-family: var(--font-sans, inherit);
|
|
472
684
|
font-size: 0.8125rem;
|
|
473
|
-
font-weight:
|
|
685
|
+
font-weight: 600;
|
|
474
686
|
text-decoration: none;
|
|
687
|
+
text-align: center;
|
|
688
|
+
white-space: nowrap;
|
|
475
689
|
cursor: pointer;
|
|
476
690
|
}
|
|
477
691
|
|
|
@@ -536,40 +750,68 @@
|
|
|
536
750
|
@media screen and (max-width: 859px) {
|
|
537
751
|
.powerhouse-shop.is-filters-open .powerhouse-shop__sidebar,
|
|
538
752
|
.powerhouse-shop__layout.is-filters-open .powerhouse-shop__sidebar {
|
|
539
|
-
display:
|
|
753
|
+
display: flex;
|
|
754
|
+
flex-direction: column;
|
|
540
755
|
position: fixed;
|
|
541
756
|
inset: 0 auto 0 0;
|
|
542
|
-
z-index:
|
|
543
|
-
width: min(
|
|
544
|
-
|
|
545
|
-
|
|
757
|
+
z-index: 80;
|
|
758
|
+
width: min(26.5rem, 100vw);
|
|
759
|
+
max-width: 100%;
|
|
760
|
+
padding: 0;
|
|
761
|
+
overflow: hidden;
|
|
546
762
|
background: #fff;
|
|
547
|
-
box-shadow: 8px 0
|
|
763
|
+
box-shadow: 8px 0 28px rgb(0 0 0 / 18%);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.powerhouse-shop__layout.is-filters-open .powerhouse-shop__sidebar-head {
|
|
767
|
+
position: sticky;
|
|
768
|
+
top: 0;
|
|
769
|
+
z-index: 1;
|
|
770
|
+
flex-shrink: 0;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.powerhouse-shop__layout.is-filters-open .powerhouse-shop__sidebar-body {
|
|
774
|
+
flex: 1;
|
|
775
|
+
min-height: 0;
|
|
776
|
+
overflow: auto;
|
|
777
|
+
padding: 0 1.15rem 2rem;
|
|
778
|
+
-webkit-overflow-scrolling: touch;
|
|
548
779
|
}
|
|
549
780
|
|
|
550
781
|
.powerhouse-shop__layout.is-filters-open .powerhouse-shop__close,
|
|
551
782
|
.powerhouse-shop__layout.is-filters-open .powerhouse-shop__backdrop {
|
|
552
|
-
display:
|
|
783
|
+
display: flex;
|
|
553
784
|
}
|
|
554
785
|
|
|
555
786
|
.powerhouse-shop__backdrop {
|
|
556
787
|
position: fixed;
|
|
557
788
|
inset: 0;
|
|
558
|
-
z-index:
|
|
789
|
+
z-index: 75;
|
|
559
790
|
border: 0;
|
|
560
|
-
background: rgb(0 0 0 /
|
|
791
|
+
background: rgb(0 0 0 / 45%);
|
|
561
792
|
}
|
|
562
793
|
|
|
563
794
|
.powerhouse-shop__close {
|
|
795
|
+
align-items: center;
|
|
796
|
+
justify-content: center;
|
|
797
|
+
width: 2.5rem;
|
|
798
|
+
height: 2.5rem;
|
|
799
|
+
margin-right: -0.45rem;
|
|
564
800
|
padding: 0;
|
|
565
801
|
border: 0;
|
|
566
802
|
background: none;
|
|
567
803
|
color: #1d1d1d;
|
|
568
|
-
text-decoration: underline;
|
|
569
804
|
cursor: pointer;
|
|
570
805
|
}
|
|
571
806
|
}
|
|
572
807
|
|
|
808
|
+
@media screen and (max-width: 719px) {
|
|
809
|
+
.powerhouse-shop__crumbs,
|
|
810
|
+
.powerhouse-shop__masthead {
|
|
811
|
+
display: none;
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
573
815
|
@media screen and (min-width: 720px) {
|
|
574
816
|
.powerhouse-shop {
|
|
575
817
|
padding: 0 20px 4rem;
|
|
@@ -593,18 +835,43 @@
|
|
|
593
835
|
}
|
|
594
836
|
|
|
595
837
|
.powerhouse-shop__grid {
|
|
596
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
597
838
|
gap: 1.75rem 20px;
|
|
598
839
|
}
|
|
599
840
|
|
|
600
841
|
.powerhouse-shop__grid.is-list {
|
|
601
842
|
grid-template-columns: 1fr;
|
|
843
|
+
gap: 1.25rem;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__card,
|
|
847
|
+
.powerhouse-shop__card.is-list-card {
|
|
848
|
+
grid-template-columns: 11.5rem minmax(0, 1fr) 11.25rem;
|
|
849
|
+
align-items: stretch;
|
|
850
|
+
gap: 1.25rem 1.5rem;
|
|
851
|
+
padding: 1.25rem;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__media {
|
|
855
|
+
grid-row: auto;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.powerhouse-shop__aside {
|
|
859
|
+
grid-column: auto;
|
|
860
|
+
align-items: flex-end;
|
|
861
|
+
min-width: 11.25rem;
|
|
602
862
|
}
|
|
603
863
|
|
|
604
|
-
.powerhouse-shop__grid.is-list .powerhouse-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
864
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__price {
|
|
865
|
+
text-align: right;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__actions {
|
|
869
|
+
width: 11.25rem;
|
|
870
|
+
padding-top: 1.5rem;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.powerhouse-shop__sort-control {
|
|
874
|
+
min-width: 12.5rem;
|
|
608
875
|
}
|
|
609
876
|
}
|
|
610
877
|
|
|
@@ -621,6 +888,11 @@
|
|
|
621
888
|
flex-shrink: 0;
|
|
622
889
|
}
|
|
623
890
|
|
|
891
|
+
.powerhouse-shop__sidebar-head {
|
|
892
|
+
padding: 0 0 0.85rem;
|
|
893
|
+
border-bottom: 0;
|
|
894
|
+
}
|
|
895
|
+
|
|
624
896
|
.powerhouse-shop__sidebar-head .powerhouse-shop__close,
|
|
625
897
|
.powerhouse-shop__filters-btn {
|
|
626
898
|
display: none;
|
|
@@ -641,30 +913,67 @@
|
|
|
641
913
|
|
|
642
914
|
.powerhouse-shop__utils {
|
|
643
915
|
justify-content: flex-end;
|
|
916
|
+
margin-top: 0.75rem;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.powerhouse-shop__view-label {
|
|
920
|
+
display: inline;
|
|
644
921
|
}
|
|
645
922
|
|
|
646
923
|
.powerhouse-shop__grid {
|
|
647
|
-
grid-template-columns: repeat(
|
|
924
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
648
925
|
}
|
|
649
926
|
|
|
650
927
|
.powerhouse-shop__grid.is-list {
|
|
651
928
|
grid-template-columns: 1fr;
|
|
652
929
|
}
|
|
653
930
|
|
|
654
|
-
.powerhouse-shop__grid.is-list .powerhouse-shop__card
|
|
655
|
-
|
|
656
|
-
|
|
931
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__card,
|
|
932
|
+
.powerhouse-shop__card.is-list-card {
|
|
933
|
+
grid-template-columns: 14rem minmax(0, 1fr) 11.5rem;
|
|
934
|
+
gap: 1.5rem 2rem;
|
|
935
|
+
padding: 1.35rem 1.5rem;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__actions {
|
|
939
|
+
flex-direction: column;
|
|
940
|
+
width: 11.5rem;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__quickshop,
|
|
944
|
+
.powerhouse-shop__grid.is-list .powerhouse-shop__atc {
|
|
945
|
+
flex: none;
|
|
946
|
+
width: 100%;
|
|
657
947
|
}
|
|
658
948
|
|
|
659
949
|
.powerhouse-shop__actions {
|
|
950
|
+
flex-direction: row;
|
|
660
951
|
opacity: 0;
|
|
661
952
|
pointer-events: none;
|
|
662
953
|
transition: opacity 0.2s ease;
|
|
663
954
|
}
|
|
664
955
|
|
|
956
|
+
.powerhouse-shop__quickshop,
|
|
957
|
+
.powerhouse-shop__atc {
|
|
958
|
+
flex: 1 1 0;
|
|
959
|
+
width: auto;
|
|
960
|
+
min-width: 0;
|
|
961
|
+
}
|
|
962
|
+
|
|
665
963
|
.powerhouse-shop__card:hover .powerhouse-shop__actions,
|
|
964
|
+
.powerhouse-shop__card:focus-within .powerhouse-shop__actions,
|
|
666
965
|
.powerhouse-shop__grid.is-list .powerhouse-shop__actions {
|
|
667
966
|
opacity: 1;
|
|
668
967
|
pointer-events: auto;
|
|
669
968
|
}
|
|
670
969
|
}
|
|
970
|
+
|
|
971
|
+
@media screen and (min-width: 1100px) {
|
|
972
|
+
.powerhouse-shop__grid {
|
|
973
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.powerhouse-shop__grid.is-list {
|
|
977
|
+
grid-template-columns: 1fr;
|
|
978
|
+
}
|
|
979
|
+
}
|