@@ -634,6 +634,14 @@ h3 .icon-arrow,
634
634
transform : translateX (-0.05rem );
635
635
}
636
636
637
+ .svg-wrapper {
638
+ display : inline-flex;
639
+ justify-content : center;
640
+ align-items : center;
641
+ width : 20px ;
642
+ height : 20px ;
643
+ }
644
+
637
645
/* base-details-summary */
638
646
summary {
639
647
cursor : pointer;
@@ -823,7 +831,7 @@ summary::-webkit-details-marker {
823
831
align-items : center;
824
832
}
825
833
826
- .title-wrapper-with-link .link-with-icon svg {
834
+ .title-wrapper-with-link .link-with-icon . svg-wrapper {
827
835
width : 1.5rem ;
828
836
}
829
837
@@ -1464,7 +1472,7 @@ details[open] > .share-button__fallback {
1464
1472
color : rgba (var (--color-foreground ), 0.75 );
1465
1473
}
1466
1474
1467
- .share-button__fallback button : hover svg {
1475
+ .share-button__fallback button : hover . svg-wrapper {
1468
1476
transform : scale (1.07 );
1469
1477
}
1470
1478
@@ -1662,9 +1670,10 @@ details[open] > .share-button__fallback {
1662
1670
1663
1671
/* Select */
1664
1672
1665
- .select .icon-caret ,
1666
- .customer select + svg {
1673
+ .select .svg-wrapper ,
1674
+ .customer select + . svg-wrapper {
1667
1675
height : 0.6rem ;
1676
+ width : 1rem ;
1668
1677
pointer-events : none;
1669
1678
position : absolute;
1670
1679
top : calc (50% - 0.2rem );
@@ -1769,7 +1778,7 @@ details[open] > .share-button__fallback {
1769
1778
width : 4.4rem ;
1770
1779
}
1771
1780
1772
- .field__button > svg {
1781
+ .field__button > . svg-wrapper {
1773
1782
height : 2.5rem ;
1774
1783
width : 2.5rem ;
1775
1784
}
@@ -1821,21 +1830,21 @@ input[type='checkbox'] {
1821
1830
}
1822
1831
1823
1832
.form__message .icon ,
1824
- .customer .form__message svg {
1833
+ .customer .form__message . svg-wrapper {
1825
1834
flex-shrink : 0 ;
1826
1835
height : 1.3rem ;
1827
1836
margin-right : 0.5rem ;
1828
1837
width : 1.3rem ;
1829
1838
}
1830
1839
1831
1840
.form__message--large .icon ,
1832
- .customer .form__message svg {
1841
+ .customer .form__message . svg-wrapper {
1833
1842
height : 1.5rem ;
1834
1843
width : 1.5rem ;
1835
1844
margin-right : 1rem ;
1836
1845
}
1837
1846
1838
- .customer .field .form__message svg {
1847
+ .customer .field .form__message . svg-wrapper {
1839
1848
align-self : start;
1840
1849
}
1841
1850
@@ -1937,7 +1946,7 @@ input[type='checkbox'] {
1937
1946
margin-right : calc (var (--inputs-border-width ));
1938
1947
}
1939
1948
1940
- .quantity__button svg {
1949
+ .quantity__button . svg-wrapper {
1941
1950
width : 1rem ;
1942
1951
pointer-events : none;
1943
1952
}
@@ -2515,6 +2524,11 @@ input[type='checkbox'] {
2515
2524
height : 100% ;
2516
2525
}
2517
2526
2527
+ .header__icon .svg-wrapper {
2528
+ width : 44px ;
2529
+ height : 44px ;
2530
+ }
2531
+
2518
2532
.header__icon ::after {
2519
2533
content : none;
2520
2534
}
@@ -2558,6 +2572,14 @@ input[type='checkbox'] {
2558
2572
--shop-avatar-size : 2.8rem ;
2559
2573
}
2560
2574
2575
+ details .header__icon-close {
2576
+ display : none;
2577
+ }
2578
+
2579
+ details [open ] .header__icon-close {
2580
+ display : inline-block;
2581
+ }
2582
+
2561
2583
account-icon {
2562
2584
display : flex;
2563
2585
}
@@ -3222,7 +3244,7 @@ details-disclosure > details {
3222
3244
}
3223
3245
3224
3246
.animate--zoom-in > img ,
3225
- .animate--zoom-in > svg {
3247
+ .animate--zoom-in > . svg-wrapper {
3226
3248
transition : scale var (--duration-short ) linear;
3227
3249
scale : var (--zoom-in-ratio );
3228
3250
}
@@ -3231,7 +3253,7 @@ details-disclosure > details {
3231
3253
3232
3254
@media (prefers-reduced-motion : no-preference) {
3233
3255
.animate--ambient > img ,
3234
- .animate--ambient > svg {
3256
+ .animate--ambient > . svg-wrapper {
3235
3257
animation : animateAmbient 30s linear infinite;
3236
3258
}
3237
3259
0 commit comments