hemfixarna-web-components 1.2.2 → 1.2.4
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/dist/cjs/hemfixarna-address_20.cjs.entry.js +4 -4
- package/dist/collection/components/hemfixarna-component/hemfixarna.css +95 -95
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.css +12 -12
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js +1 -1
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js.map +1 -1
- package/dist/collection/components/hemfixarna-hornbach/hemfixarna-hornbach.js +2 -2
- package/dist/collection/components/hemfixarna-hornbach/hemfixarna-hornbach.js.map +1 -1
- package/dist/esm/hemfixarna-address_20.entry.js +4 -4
- package/dist/hemfixarna-components/hemfixarna-components.esm.js +1 -1
- package/dist/hemfixarna-components/p-618089b8.entry.js +2 -0
- package/package.json +1 -1
- package/dist/hemfixarna-components/p-24be8f8d.entry.js +0 -2
- /package/dist/hemfixarna-components/{p-24be8f8d.entry.js.map → p-618089b8.entry.js.map} +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
font-family: "Inter", sans-serif;
|
|
8
8
|
}
|
|
9
9
|
:host .mb-2 {
|
|
10
|
-
margin-bottom:
|
|
10
|
+
margin-bottom: 32px;
|
|
11
11
|
}
|
|
12
12
|
:host button {
|
|
13
13
|
color: #474444;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:host form {
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
|
-
gap:
|
|
18
|
+
gap: 16px;
|
|
19
19
|
}
|
|
20
20
|
:host form img {
|
|
21
21
|
position: absolute;
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
pointer-events: none;
|
|
25
25
|
}
|
|
26
26
|
:host form img:first-of-type {
|
|
27
|
-
left:
|
|
27
|
+
left: 16px;
|
|
28
28
|
}
|
|
29
29
|
:host form img:last-of-type {
|
|
30
|
-
right:
|
|
30
|
+
right: 16px;
|
|
31
31
|
}
|
|
32
32
|
:host form span {
|
|
33
|
-
margin-top: -
|
|
33
|
+
margin-top: -8px;
|
|
34
34
|
color: #ec6632;
|
|
35
35
|
}
|
|
36
36
|
:host form p {
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
:host form div label {
|
|
46
46
|
pointer-events: none;
|
|
47
47
|
position: absolute;
|
|
48
|
-
left:
|
|
48
|
+
left: 16px;
|
|
49
49
|
top: 50%;
|
|
50
50
|
transform: translateY(-50%);
|
|
51
51
|
background: #fff;
|
|
52
|
-
padding:
|
|
52
|
+
padding: 4px;
|
|
53
53
|
transition: 0.2s all cubic-bezier(0.465, 0.183, 0.153, 0.946);
|
|
54
54
|
}
|
|
55
55
|
:host form div input {
|
|
56
|
-
padding:
|
|
56
|
+
padding: 16px;
|
|
57
57
|
width: 100%;
|
|
58
|
-
font-size:
|
|
58
|
+
font-size: 16px;
|
|
59
59
|
border: 1px solid #fcd9c9;
|
|
60
60
|
}
|
|
61
61
|
:host form div input:focus ~ label,
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
line-height: 32px;
|
|
71
71
|
letter-spacing: -3%;
|
|
72
72
|
text-align: left;
|
|
73
|
-
margin: 0 0
|
|
73
|
+
margin: 0 0 8px;
|
|
74
74
|
}
|
|
75
75
|
:host h2 {
|
|
76
|
-
margin: 0 0
|
|
76
|
+
margin: 0 0 24px;
|
|
77
77
|
font-weight: 700;
|
|
78
78
|
font-size: 20px;
|
|
79
79
|
line-height: 28px;
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
color: #ec6632;
|
|
111
111
|
text-decoration: none;
|
|
112
112
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
113
|
-
border-radius:
|
|
114
|
-
padding:
|
|
113
|
+
border-radius: 56px;
|
|
114
|
+
padding: 8px 32px;
|
|
115
115
|
}
|
|
116
116
|
:host .hemfixarna_nav > div {
|
|
117
117
|
position: relative;
|
|
@@ -121,16 +121,16 @@
|
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: space-between;
|
|
123
123
|
align-items: center;
|
|
124
|
-
padding: 0
|
|
124
|
+
padding: 0 16px;
|
|
125
125
|
}
|
|
126
126
|
@media (min-width: 769px) {
|
|
127
127
|
:host .hemfixarna_nav > div {
|
|
128
|
-
padding: 0
|
|
128
|
+
padding: 0 32px;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
:host .hemfixarna_nav > div > div {
|
|
132
132
|
display: flex;
|
|
133
|
-
gap:
|
|
133
|
+
gap: 32px;
|
|
134
134
|
justify-content: space-between;
|
|
135
135
|
}
|
|
136
136
|
:host .hemfixarna_nav > div > img {
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
}
|
|
208
208
|
:host .hemfixarna_checkbox {
|
|
209
209
|
display: grid;
|
|
210
|
-
grid-template-columns:
|
|
210
|
+
grid-template-columns: 40px auto;
|
|
211
211
|
font-size: 16px;
|
|
212
212
|
font-weight: 400;
|
|
213
213
|
line-height: 24px;
|
|
@@ -227,10 +227,10 @@
|
|
|
227
227
|
:host .hemfixarna_info {
|
|
228
228
|
display: flex;
|
|
229
229
|
flex-direction: column;
|
|
230
|
-
gap:
|
|
231
|
-
padding:
|
|
230
|
+
gap: 24px;
|
|
231
|
+
padding: 32px;
|
|
232
232
|
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.0392156863);
|
|
233
|
-
border-radius:
|
|
233
|
+
border-radius: 4px;
|
|
234
234
|
border: 1px solid #fcd9c9;
|
|
235
235
|
}
|
|
236
236
|
:host .hemfixarna_info h2 {
|
|
@@ -251,13 +251,13 @@
|
|
|
251
251
|
max-width: 80%;
|
|
252
252
|
background: #fffaf2;
|
|
253
253
|
border: 1px solid #fcd9c9;
|
|
254
|
-
padding:
|
|
254
|
+
padding: 32px;
|
|
255
255
|
z-index: 99;
|
|
256
|
-
border-radius:
|
|
256
|
+
border-radius: 4px;
|
|
257
257
|
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.0392156863);
|
|
258
258
|
display: flex;
|
|
259
259
|
flex-direction: column;
|
|
260
|
-
gap:
|
|
260
|
+
gap: 16px;
|
|
261
261
|
}
|
|
262
262
|
:host .hemfixarna_infomodal p,
|
|
263
263
|
:host .hemfixarna_infomodal h4 {
|
|
@@ -268,16 +268,16 @@
|
|
|
268
268
|
color: #fff;
|
|
269
269
|
border-radius: 60px;
|
|
270
270
|
font-size: 16px;
|
|
271
|
-
padding:
|
|
271
|
+
padding: 8px 16px;
|
|
272
272
|
}
|
|
273
273
|
:host .hemfixarna_addressinfo {
|
|
274
|
-
padding:
|
|
274
|
+
padding: 16px 16px 64px;
|
|
275
275
|
border: 1px solid #fcd9c9;
|
|
276
276
|
position: relative;
|
|
277
|
-
margin-bottom:
|
|
277
|
+
margin-bottom: 32px;
|
|
278
278
|
display: grid;
|
|
279
279
|
grid-template-columns: 1fr;
|
|
280
|
-
gap:
|
|
280
|
+
gap: 8px;
|
|
281
281
|
}
|
|
282
282
|
@media (min-width: 769px) {
|
|
283
283
|
:host .hemfixarna_addressinfo {
|
|
@@ -286,8 +286,8 @@
|
|
|
286
286
|
}
|
|
287
287
|
:host .hemfixarna_addressinfo button {
|
|
288
288
|
position: absolute;
|
|
289
|
-
bottom:
|
|
290
|
-
right:
|
|
289
|
+
bottom: 16px;
|
|
290
|
+
right: 16px;
|
|
291
291
|
font-weight: 500;
|
|
292
292
|
text-underline-offset: 2px;
|
|
293
293
|
text-decoration: underline;
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
background: #fff;
|
|
297
297
|
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.0392156863);
|
|
298
298
|
display: grid;
|
|
299
|
-
padding:
|
|
299
|
+
padding: 16px;
|
|
300
300
|
grid-template-columns: auto 75px;
|
|
301
301
|
}
|
|
302
302
|
:host .hemfixarna_counter {
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
align-items: center;
|
|
305
305
|
}
|
|
306
306
|
:host .hemfixarna_counter span {
|
|
307
|
-
padding: 0
|
|
307
|
+
padding: 0 8px;
|
|
308
308
|
}
|
|
309
309
|
:host .hemfixarna_counter img {
|
|
310
310
|
cursor: pointer;
|
|
@@ -317,12 +317,12 @@
|
|
|
317
317
|
}
|
|
318
318
|
:host .hemfixarna_description {
|
|
319
319
|
display: grid;
|
|
320
|
-
gap:
|
|
320
|
+
gap: 16px;
|
|
321
321
|
}
|
|
322
322
|
:host .hemfixarna_description ul {
|
|
323
323
|
list-style: disc;
|
|
324
|
-
padding-right:
|
|
325
|
-
transform: translateX(
|
|
324
|
+
padding-right: 12px;
|
|
325
|
+
transform: translateX(12px);
|
|
326
326
|
}
|
|
327
327
|
:host .hemfixarna_description--hidden {
|
|
328
328
|
max-height: 140px;
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
bottom: 0;
|
|
337
337
|
left: 0;
|
|
338
338
|
right: 0;
|
|
339
|
-
height:
|
|
339
|
+
height: 128px;
|
|
340
340
|
background: linear-gradient(180deg, rgba(255, 253, 250, 0), rgba(255, 253, 250, 0.46) 50%, #fffaf2);
|
|
341
341
|
}
|
|
342
342
|
:host .hemfixarna_terms {
|
|
@@ -346,10 +346,10 @@
|
|
|
346
346
|
color: inherit;
|
|
347
347
|
}
|
|
348
348
|
:host .hemfixarna_logo {
|
|
349
|
-
height:
|
|
349
|
+
height: 64px;
|
|
350
350
|
}
|
|
351
351
|
:host .hemfixarna_box {
|
|
352
|
-
padding:
|
|
352
|
+
padding: 16px;
|
|
353
353
|
display: flex;
|
|
354
354
|
align-items: center;
|
|
355
355
|
justify-content: space-between;
|
|
@@ -357,12 +357,12 @@
|
|
|
357
357
|
border: 1px solid #fcd9c9;
|
|
358
358
|
width: 100%;
|
|
359
359
|
box-sizing: border-box;
|
|
360
|
-
border-radius:
|
|
361
|
-
gap:
|
|
360
|
+
border-radius: 4px;
|
|
361
|
+
gap: 16px 8px;
|
|
362
362
|
}
|
|
363
363
|
:host .hemfixarna_box > div {
|
|
364
364
|
display: grid;
|
|
365
|
-
gap:
|
|
365
|
+
gap: 8px;
|
|
366
366
|
}
|
|
367
367
|
:host .hemfixarna_btn, :host .hemfixarna_buy,
|
|
368
368
|
:host .hemfixarna input[type=submit] {
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
font-size: 14px;
|
|
385
385
|
background: #c84e18;
|
|
386
386
|
color: #fff;
|
|
387
|
-
padding:
|
|
387
|
+
padding: 16px 24px;
|
|
388
388
|
white-space: nowrap;
|
|
389
389
|
position: relative;
|
|
390
390
|
}
|
|
@@ -400,8 +400,8 @@
|
|
|
400
400
|
font-weight: 600;
|
|
401
401
|
font-size: 13px;
|
|
402
402
|
line-height: 11px;
|
|
403
|
-
top: -
|
|
404
|
-
right: -
|
|
403
|
+
top: -8px;
|
|
404
|
+
right: -12px;
|
|
405
405
|
}
|
|
406
406
|
:host .hemfixarna_btn span {
|
|
407
407
|
background: #25a710;
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
font-size: 21px;
|
|
414
414
|
background: #25a710;
|
|
415
415
|
color: #fff;
|
|
416
|
-
padding:
|
|
416
|
+
padding: 16px 24px;
|
|
417
417
|
}
|
|
418
418
|
:host .hemfixarna .disabled {
|
|
419
419
|
opacity: 0.5;
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
position: fixed;
|
|
424
424
|
background: #fffaf2;
|
|
425
425
|
border: 1px solid #fcd9c9;
|
|
426
|
-
border-radius:
|
|
426
|
+
border-radius: 4px;
|
|
427
427
|
top: 50%;
|
|
428
428
|
left: 50%;
|
|
429
429
|
z-index: 1000;
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
max-width: 920px;
|
|
436
436
|
display: flex;
|
|
437
437
|
flex-direction: column;
|
|
438
|
-
gap:
|
|
438
|
+
gap: 8px;
|
|
439
439
|
}
|
|
440
440
|
:host .hemfixarna_modal--open {
|
|
441
441
|
opacity: 1;
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
background-position: center !important;
|
|
467
467
|
display: grid;
|
|
468
468
|
grid-template-columns: 1fr 1fr;
|
|
469
|
-
padding:
|
|
469
|
+
padding: 48px 32px 64px;
|
|
470
470
|
}
|
|
471
471
|
@media (max-width: 768px) {
|
|
472
472
|
:host .hemfixarna_order {
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
}
|
|
477
477
|
:host .hemfixarna_order > div:last-of-type {
|
|
478
478
|
background: #fffaf2;
|
|
479
|
-
padding:
|
|
479
|
+
padding: 32px;
|
|
480
480
|
display: flex;
|
|
481
481
|
flex-direction: column;
|
|
482
482
|
max-height: 100%;
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
cursor: pointer;
|
|
487
487
|
}
|
|
488
488
|
:host .hemfixarna_order button {
|
|
489
|
-
margin:
|
|
489
|
+
margin: 16px 0;
|
|
490
490
|
padding: 0;
|
|
491
491
|
text-decoration: underline;
|
|
492
492
|
text-underline-offset: 2px;
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
:host .hemfixarna_cart {
|
|
497
497
|
display: grid;
|
|
498
498
|
grid-template-columns: 1fr 1fr;
|
|
499
|
-
gap:
|
|
499
|
+
gap: 32px;
|
|
500
500
|
}
|
|
501
501
|
@media (max-width: 768px) {
|
|
502
502
|
:host .hemfixarna_cart {
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
align-items: center;
|
|
510
510
|
}
|
|
511
511
|
:host .hemfixarna_cart--right h2 img, :host .hemfixarna_cart--left h2 img {
|
|
512
|
-
margin-top:
|
|
512
|
+
margin-top: 3.2px;
|
|
513
513
|
}
|
|
514
514
|
@media (min-width: 769px) {
|
|
515
515
|
:host .hemfixarna_cart--left h2 button {
|
|
@@ -531,14 +531,14 @@
|
|
|
531
531
|
}
|
|
532
532
|
:host .hemfixarna_cart--rutrot div {
|
|
533
533
|
display: flex;
|
|
534
|
-
gap:
|
|
534
|
+
gap: 16px;
|
|
535
535
|
align-items: center;
|
|
536
536
|
}
|
|
537
537
|
:host .hemfixarna_cart--additional {
|
|
538
538
|
display: flex;
|
|
539
539
|
flex-direction: column;
|
|
540
|
-
gap:
|
|
541
|
-
padding:
|
|
540
|
+
gap: 16px;
|
|
541
|
+
padding: 16px;
|
|
542
542
|
border-top: 1px solid #fcd9c9;
|
|
543
543
|
}
|
|
544
544
|
:host .hemfixarna_cart--additional p {
|
|
@@ -554,11 +554,11 @@
|
|
|
554
554
|
position: absolute;
|
|
555
555
|
top: 50%;
|
|
556
556
|
transform: translateY(-50%);
|
|
557
|
-
right: -
|
|
557
|
+
right: -24px;
|
|
558
558
|
}
|
|
559
559
|
:host .hemfixarna_cart--price {
|
|
560
560
|
border-top: 1px solid #fcd9c9;
|
|
561
|
-
padding:
|
|
561
|
+
padding: 16px;
|
|
562
562
|
display: flex;
|
|
563
563
|
justify-content: space-between;
|
|
564
564
|
}
|
|
@@ -568,8 +568,8 @@
|
|
|
568
568
|
:host .hemfixarna_cart--item {
|
|
569
569
|
display: flex;
|
|
570
570
|
flex-direction: column;
|
|
571
|
-
gap:
|
|
572
|
-
padding:
|
|
571
|
+
gap: 8px;
|
|
572
|
+
padding: 16px 0;
|
|
573
573
|
border-top: 1px solid #fcd9c9;
|
|
574
574
|
}
|
|
575
575
|
:host .hemfixarna_cart--item > div {
|
|
@@ -579,17 +579,17 @@
|
|
|
579
579
|
:host .hemfixarna_cart--item > div > div {
|
|
580
580
|
display: flex;
|
|
581
581
|
align-items: center;
|
|
582
|
-
gap:
|
|
582
|
+
gap: 16px;
|
|
583
583
|
}
|
|
584
584
|
:host .hemfixarna_cart--item > div button {
|
|
585
585
|
color: #ec6632;
|
|
586
586
|
}
|
|
587
587
|
:host .hemfixarna_categories {
|
|
588
588
|
display: grid;
|
|
589
|
-
gap:
|
|
589
|
+
gap: 24px;
|
|
590
590
|
}
|
|
591
591
|
:host .hemfixarna_categories--wrapper {
|
|
592
|
-
gap:
|
|
592
|
+
gap: 32px;
|
|
593
593
|
display: grid;
|
|
594
594
|
grid-template-columns: 1fr 1fr;
|
|
595
595
|
}
|
|
@@ -601,13 +601,13 @@
|
|
|
601
601
|
:host .hemfixarna_categories li {
|
|
602
602
|
position: relative;
|
|
603
603
|
background: #fff;
|
|
604
|
-
border-radius:
|
|
604
|
+
border-radius: 4px;
|
|
605
605
|
min-height: 132px;
|
|
606
|
-
padding:
|
|
606
|
+
padding: 24px;
|
|
607
607
|
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.0392156863);
|
|
608
608
|
display: flex;
|
|
609
609
|
align-items: center;
|
|
610
|
-
gap:
|
|
610
|
+
gap: 24px;
|
|
611
611
|
cursor: pointer;
|
|
612
612
|
}
|
|
613
613
|
:host .hemfixarna_categories li:hover {
|
|
@@ -626,23 +626,23 @@
|
|
|
626
626
|
:host .hemfixarna_content {
|
|
627
627
|
height: 100%;
|
|
628
628
|
overflow: auto;
|
|
629
|
-
padding: 0
|
|
629
|
+
padding: 0 32px 64px;
|
|
630
630
|
}
|
|
631
631
|
:host .hemfixarna_content--5 {
|
|
632
|
-
padding-top:
|
|
632
|
+
padding-top: 16px;
|
|
633
633
|
}
|
|
634
634
|
:host .hemfixarna_crumbs {
|
|
635
635
|
position: relative;
|
|
636
|
-
padding:
|
|
636
|
+
padding: 16px 24px;
|
|
637
637
|
border-bottom: 1px solid #fcd9c9;
|
|
638
638
|
display: flex;
|
|
639
639
|
justify-content: space-between;
|
|
640
640
|
}
|
|
641
641
|
:host .hemfixarna_crumbs--back {
|
|
642
|
-
padding:
|
|
642
|
+
padding: 16px 24px 8px;
|
|
643
643
|
display: flex;
|
|
644
644
|
align-items: center;
|
|
645
|
-
gap:
|
|
645
|
+
gap: 8px;
|
|
646
646
|
box-shadow: none !important;
|
|
647
647
|
}
|
|
648
648
|
:host .hemfixarna_crumbs--back:hover {
|
|
@@ -656,12 +656,12 @@
|
|
|
656
656
|
}
|
|
657
657
|
:host .hemfixarna_crumbs .close {
|
|
658
658
|
position: absolute;
|
|
659
|
-
right: -
|
|
660
|
-
top: -
|
|
659
|
+
right: -16px;
|
|
660
|
+
top: -16px;
|
|
661
661
|
z-index: 9;
|
|
662
662
|
}
|
|
663
663
|
:host .hemfixarna_crumbs .cart {
|
|
664
|
-
padding-left:
|
|
664
|
+
padding-left: 16px;
|
|
665
665
|
position: relative;
|
|
666
666
|
}
|
|
667
667
|
:host .hemfixarna_crumbs .cart img {
|
|
@@ -679,8 +679,8 @@
|
|
|
679
679
|
font-weight: 600;
|
|
680
680
|
font-size: 13px;
|
|
681
681
|
line-height: 11px;
|
|
682
|
-
top: -
|
|
683
|
-
right: -
|
|
682
|
+
top: -8px;
|
|
683
|
+
right: -12px;
|
|
684
684
|
}
|
|
685
685
|
:host .hemfixarna_crumbs .cart_active {
|
|
686
686
|
cursor: pointer;
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
:host .hemfixarna_crumbs--links {
|
|
693
693
|
display: flex;
|
|
694
694
|
align-items: center;
|
|
695
|
-
gap:
|
|
695
|
+
gap: 16px;
|
|
696
696
|
overflow: auto;
|
|
697
697
|
}
|
|
698
698
|
@media (min-width: 769px) {
|
|
@@ -709,8 +709,8 @@
|
|
|
709
709
|
:host .hemfixarna_crumbs button {
|
|
710
710
|
white-space: nowrap;
|
|
711
711
|
background: #f1ded6;
|
|
712
|
-
border-radius:
|
|
713
|
-
padding:
|
|
712
|
+
border-radius: 64px;
|
|
713
|
+
padding: 12px 16px;
|
|
714
714
|
font-size: 12px;
|
|
715
715
|
font-weight: 600;
|
|
716
716
|
letter-spacing: 0.3px;
|
|
@@ -727,44 +727,44 @@
|
|
|
727
727
|
cursor: default;
|
|
728
728
|
}
|
|
729
729
|
:host .hemfixarna_features {
|
|
730
|
-
gap:
|
|
730
|
+
gap: 12px !important;
|
|
731
731
|
}
|
|
732
732
|
:host .hemfixarna_features li {
|
|
733
733
|
display: flex;
|
|
734
|
-
gap:
|
|
734
|
+
gap: 16px;
|
|
735
735
|
align-items: center;
|
|
736
736
|
}
|
|
737
737
|
:host .hemfixarna_address {
|
|
738
|
-
margin-bottom:
|
|
738
|
+
margin-bottom: 16px;
|
|
739
739
|
}
|
|
740
740
|
:host .hemfixarna_product {
|
|
741
741
|
display: grid;
|
|
742
|
-
gap:
|
|
742
|
+
gap: 16px;
|
|
743
743
|
}
|
|
744
744
|
:host .hemfixarna_product--link {
|
|
745
745
|
font-weight: 700;
|
|
746
746
|
color: #474444;
|
|
747
|
-
text-underline-offset:
|
|
747
|
+
text-underline-offset: 4px;
|
|
748
748
|
}
|
|
749
749
|
:host .hemfixarna_product--left {
|
|
750
|
-
gap:
|
|
750
|
+
gap: 32px;
|
|
751
751
|
}
|
|
752
752
|
:host .hemfixarna_product--right {
|
|
753
|
-
gap:
|
|
753
|
+
gap: 32px;
|
|
754
754
|
}
|
|
755
755
|
:host .hemfixarna_product--price {
|
|
756
|
-
margin-top:
|
|
756
|
+
margin-top: 4px;
|
|
757
757
|
font-weight: 700;
|
|
758
758
|
}
|
|
759
759
|
:host .hemfixarna_product--total {
|
|
760
760
|
text-align: center;
|
|
761
|
-
margin: -
|
|
761
|
+
margin: -16px 0;
|
|
762
762
|
font-size: 21px;
|
|
763
763
|
line-height: 28px;
|
|
764
764
|
}
|
|
765
765
|
:host .hemfixarna_product--item {
|
|
766
766
|
background: #fff;
|
|
767
|
-
padding:
|
|
767
|
+
padding: 16px;
|
|
768
768
|
display: grid;
|
|
769
769
|
grid-template-columns: auto 75px;
|
|
770
770
|
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.0392156863);
|
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
:host .hemfixarna_product--grid {
|
|
773
773
|
display: grid;
|
|
774
774
|
grid-template-columns: 1fr 1fr;
|
|
775
|
-
gap:
|
|
775
|
+
gap: 32px;
|
|
776
776
|
}
|
|
777
777
|
@media (max-width: 768px) {
|
|
778
778
|
:host .hemfixarna_product--grid {
|
|
@@ -786,14 +786,14 @@
|
|
|
786
786
|
:host .hemfixarna_product--grid ul {
|
|
787
787
|
display: flex;
|
|
788
788
|
flex-direction: column;
|
|
789
|
-
gap:
|
|
789
|
+
gap: 4px;
|
|
790
790
|
}
|
|
791
791
|
:host .hemfixarna_product p {
|
|
792
792
|
margin: 0;
|
|
793
793
|
}
|
|
794
794
|
:host .hemfixarna_product--top {
|
|
795
795
|
display: flex;
|
|
796
|
-
gap:
|
|
796
|
+
gap: 32px;
|
|
797
797
|
}
|
|
798
798
|
:host .hemfixarna_product--top > div {
|
|
799
799
|
width: 100%;
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
:host .hemfixarna_product--top h4 {
|
|
810
|
-
margin-bottom:
|
|
810
|
+
margin-bottom: 8px;
|
|
811
811
|
}
|
|
812
812
|
:host h5,
|
|
813
813
|
:host p {
|
|
@@ -817,15 +817,15 @@
|
|
|
817
817
|
cursor: pointer;
|
|
818
818
|
}
|
|
819
819
|
:host input[type=date] ~ label {
|
|
820
|
-
left:
|
|
820
|
+
left: 56px;
|
|
821
821
|
}
|
|
822
822
|
:host input[type=date] {
|
|
823
823
|
border: 1px solid #fcd9c9;
|
|
824
|
-
padding-left:
|
|
824
|
+
padding-left: 64px;
|
|
825
825
|
}
|
|
826
826
|
:host input[type=checkbox] {
|
|
827
|
-
height:
|
|
828
|
-
width:
|
|
827
|
+
height: 18px;
|
|
828
|
+
width: 18px;
|
|
829
829
|
border: 1px solid #fcd9c9;
|
|
830
830
|
}
|
|
831
831
|
:host input[type=checkbox]:checked {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
font-family: "Inter", sans-serif;
|
|
4
4
|
}
|
|
5
5
|
:host .hemfixarna_example {
|
|
6
|
-
margin-bottom:
|
|
6
|
+
margin-bottom: 16px;
|
|
7
7
|
background: #000;
|
|
8
|
-
padding:
|
|
8
|
+
padding: 16px;
|
|
9
9
|
color: #fff;
|
|
10
10
|
display: flex;
|
|
11
11
|
justify-content: space-between;
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
}
|
|
17
17
|
:host .hemfixarna_example--tooltip {
|
|
18
18
|
background: #000;
|
|
19
|
-
top: -
|
|
19
|
+
top: -48px;
|
|
20
20
|
font-size: 16px;
|
|
21
21
|
left: 40%;
|
|
22
22
|
color: white;
|
|
23
|
-
padding:
|
|
23
|
+
padding: 8px;
|
|
24
24
|
position: absolute;
|
|
25
25
|
opacity: 0;
|
|
26
26
|
}
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
}
|
|
46
46
|
:host .hemfixarna_install {
|
|
47
47
|
display: grid;
|
|
48
|
-
gap:
|
|
49
|
-
margin-top:
|
|
48
|
+
gap: 8px;
|
|
49
|
+
margin-top: 16px;
|
|
50
50
|
}
|
|
51
51
|
:host .hemfixarna_product--label {
|
|
52
52
|
background: #e1e0f5;
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
display: flex;
|
|
61
61
|
align-items: center;
|
|
62
62
|
justify-content: space-between;
|
|
63
|
-
padding:
|
|
63
|
+
padding: 8px;
|
|
64
64
|
}
|
|
65
65
|
:host .hemfixarna_categories--label button {
|
|
66
66
|
background: #3f3a92;
|
|
67
67
|
border: none;
|
|
68
68
|
font-weight: 600;
|
|
69
|
-
padding:
|
|
69
|
+
padding: 3.2px 9.6px;
|
|
70
70
|
border-radius: 10px;
|
|
71
|
-
margin-right:
|
|
71
|
+
margin-right: 8px;
|
|
72
72
|
color: #ece8e8;
|
|
73
73
|
}
|
|
74
74
|
:host .hemfixarna_categories--label button:active {
|
|
@@ -90,13 +90,13 @@
|
|
|
90
90
|
}
|
|
91
91
|
:host > div {
|
|
92
92
|
display: grid;
|
|
93
|
-
gap:
|
|
93
|
+
gap: 32px;
|
|
94
94
|
width: 100%;
|
|
95
95
|
grid-template-columns: 1fr 1fr;
|
|
96
96
|
height: 100vh;
|
|
97
97
|
place-items: center;
|
|
98
98
|
overflow: hidden;
|
|
99
|
-
padding:
|
|
99
|
+
padding: 16px 32px;
|
|
100
100
|
box-sizing: border-box;
|
|
101
101
|
}
|
|
102
102
|
:host > div > * {
|
|
@@ -115,6 +115,6 @@
|
|
|
115
115
|
display: grid;
|
|
116
116
|
}
|
|
117
117
|
:host > div ul li {
|
|
118
|
-
padding-left:
|
|
118
|
+
padding-left: 16px;
|
|
119
119
|
background: #fff;
|
|
120
120
|
}
|
|
@@ -61,7 +61,7 @@ export class MyComponent {
|
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
63
|
const copy = getAssetPath(`./assets/copy.png`);
|
|
64
|
-
return (h("div", null, h("div", null, h("div", { onClick: () => this.copyExample(), class: "hemfixarna_example" }, h("p", null, this.getExample()), h("img", { src: copy, height: 20 }), h("span", { class: "hemfixarna_example--tooltip" }, this.tooltipText)), process.env.BUSINESS === Business.byggmax && (h("hemfixarna-byggmax", { forceOldTree: Boolean(process.env.FORCE_OLD_TREE), slug: this.selectedSlug, id: this.selectedID })), process.env.BUSINESS === Business.skanska && h("hemfixarna-skanska", { id: this.selectedID }), process.env.BUSINESS === Business.string && h("hemfixarna-string-furniture", { id: this.selectedID }), process.env.BUSINESS === Business.hornbach && h("hemfixarna-hornbach", { id: this.selectedID }), process.env.BUSINESS === Business.kund && h("hemfixarna-kund", { id: this.selectedID }), h("div", { class: "hemfixarna_install" }, h("div", { onClick: () => this.copyCdn(), class: "hemfixarna_example" }, h("p", null, this.cdnLink), h("span", { class: "hemfixarna_example--tooltip" }, this.tooltipText), h("img", { src: copy, height: 20 })))), h("ul", { class: "hemfixarna_categories" }, this.customer ? (h("div", null, this.customer.categories.map(c => (h("li", null, h("div", { class: "hemfixarna_categories--label hemfixarna_categories--label--big" }, h("div", null, h("p", null, c.name), h("span", null, `c-${c.id}`)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(`c-${c.id}`) }, "Kopiera ID"), h("button", { onClick: () => (this.selectedID = `c-${c.id}`) }, "Ladda kategori"))), c.show_products && c.products ? (h("ul", null, c.products.map(p => (h("li", null, h("div", { class: "hemfixarna_categories--label hemfixarna_product--label" }, h("div", null, h("p", null, p.fields.post_title), h("span", null, p.fields.ID)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(String(p.fields.ID)) }, "Kopiera ID"), h("button", { onClick: () => (this.selectedID = String(p.fields.ID)) }, "Ladda produkt")))))))) : (h("ul", null, c.sub_categories &&
|
|
64
|
+
return (h("div", null, h("div", null, h("div", { onClick: () => this.copyExample(), class: "hemfixarna_example" }, h("p", null, this.getExample()), h("img", { src: copy, height: 20 }), h("span", { class: "hemfixarna_example--tooltip" }, this.tooltipText)), process.env.BUSINESS === Business.byggmax && (h("hemfixarna-byggmax", { forceOldTree: Boolean(process.env.FORCE_OLD_TREE), slug: this.selectedSlug, id: this.selectedID })), process.env.BUSINESS === Business.skanska && h("hemfixarna-skanska", { id: this.selectedID }), process.env.BUSINESS === Business.string && h("hemfixarna-string-furniture", { id: this.selectedID }), process.env.BUSINESS === Business.hornbach && h("hemfixarna-hornbach", { isDemo: true, id: this.selectedID }), process.env.BUSINESS === Business.kund && h("hemfixarna-kund", { id: this.selectedID }), h("div", { class: "hemfixarna_install" }, h("div", { onClick: () => this.copyCdn(), class: "hemfixarna_example" }, h("p", null, this.cdnLink), h("span", { class: "hemfixarna_example--tooltip" }, this.tooltipText), h("img", { src: copy, height: 20 })))), h("ul", { class: "hemfixarna_categories" }, this.customer ? (h("div", null, this.customer.categories.map(c => (h("li", null, h("div", { class: "hemfixarna_categories--label hemfixarna_categories--label--big" }, h("div", null, h("p", null, c.name), h("span", null, `c-${c.id}`)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(`c-${c.id}`) }, "Kopiera ID"), h("button", { onClick: () => (this.selectedID = `c-${c.id}`) }, "Ladda kategori"))), c.show_products && c.products ? (h("ul", null, c.products.map(p => (h("li", null, h("div", { class: "hemfixarna_categories--label hemfixarna_product--label" }, h("div", null, h("p", null, p.fields.post_title), h("span", null, p.fields.ID)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(String(p.fields.ID)) }, "Kopiera ID"), h("button", { onClick: () => (this.selectedID = String(p.fields.ID)) }, "Ladda produkt")))))))) : (h("ul", null, c.sub_categories &&
|
|
65
65
|
c.sub_categories.map(sc => (h("li", null, h("div", { class: "hemfixarna_categories--label" }, h("div", null, h("p", null, sc.name), h("span", null, `c-${sc.id}`)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(`c-${sc.id}`) }, "Kopiera ID"), h("button", { onClick: () => (this.selectedID = `c-${sc.id}`) }, "Ladda kategori"))), h("ul", null, sc.products.map(p => (h("li", null, h("div", { class: "hemfixarna_categories--label hemfixarna_product--label" }, h("div", null, h("p", null, p.fields.post_title), h("span", null, p.fields.ID)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(String(p.fields.ID)) }, "Kopiera ID"), h("button", { onClick: () => (this.selectedID = String(p.fields.ID)) }, "Ladda produkt"))))))))))))))))) : (h("div", null, this.tree.sub_cats.map(c => (h("li", null, h("div", { class: "hemfixarna_categories--label hemfixarna_categories--label--big" }, h("div", null, h("p", null, c.name), h("span", null, `category/${c.slug}`)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(`category/${c.slug}`) }, "Kopiera slug"), h("button", { onClick: () => (this.selectedSlug = `category/${c.slug}`) }, "Ladda kategori"))), h("ul", null, c.services.map(sc => (h("li", null, h("div", { class: "hemfixarna_categories--label" }, h("div", null, h("p", null, sc.post_title), h("span", null, `service/${sc.post_name}`)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(`service/${sc.post_name}`) }, "Kopiera slug"), h("button", { onClick: () => (this.selectedSlug = `service/${sc.post_name}`) }, "Ladda kategori"))), h("ul", null, sc.products.map(sc => (h("li", null, h("div", { class: "hemfixarna_categories--label" }, h("div", null, h("p", null, sc.post_title), h("span", null, `product/${sc.post_name}`)), h("div", null, h("button", { onClick: () => navigator.clipboard.writeText(`product/${sc.post_name}`) }, "Kopiera slug"), h("button", { onClick: () => (this.selectedSlug = `product/${sc.post_name}`) }, "Ladda kategori")))))))))))))))))));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "hemfixarna-demo"; }
|