pb-sxp-ui 1.20.26 → 1.20.28
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/index.cjs +466 -396
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +355 -291
- package/dist/index.js +466 -396
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +466 -396
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/StructurePage/index.d.ts +4 -0
- package/es/core/components/StructurePage/index.js +8 -1
- package/es/core/components/SxpPageRender/Modal/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/Modal/index.js +3 -3
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/typing.d.ts +1 -0
- package/es/core/index.d.ts +6 -0
- package/es/core/index.js +10 -0
- package/es/materials/sxp/popup/AddToCart/index.d.ts +1 -27
- package/es/materials/sxp/popup/AddToCart/index.js +117 -173
- package/es/materials/sxp/popup/AddToCart/index.new.d.ts +8 -0
- package/es/materials/sxp/popup/AddToCart/index.new.js +174 -0
- package/es/materials/sxp/popup/AddToCart/index.old.d.ts +33 -0
- package/es/materials/sxp/popup/AddToCart/index.old.js +299 -0
- package/es/materials/sxp/popup/AddToCart/material.js +1 -54
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +48 -53
- package/lib/core/components/StructurePage/index.d.ts +4 -0
- package/lib/core/components/StructurePage/index.js +8 -1
- package/lib/core/components/SxpPageRender/Modal/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/Modal/index.js +3 -3
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/typing.d.ts +1 -0
- package/lib/core/index.d.ts +6 -0
- package/lib/core/index.js +10 -5
- package/lib/materials/sxp/popup/AddToCart/index.d.ts +1 -27
- package/lib/materials/sxp/popup/AddToCart/index.js +115 -171
- package/lib/materials/sxp/popup/AddToCart/index.new.d.ts +8 -0
- package/lib/materials/sxp/popup/AddToCart/index.new.js +176 -0
- package/lib/materials/sxp/popup/AddToCart/index.old.d.ts +33 -0
- package/lib/materials/sxp/popup/AddToCart/index.old.js +301 -0
- package/lib/materials/sxp/popup/AddToCart/material.js +1 -54
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +48 -53
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -593,6 +593,361 @@ a:active {
|
|
|
593
593
|
border: none;
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
+
.add-to-cart-popup {
|
|
597
|
+
background: #fff;
|
|
598
|
+
border-radius: 20px 20px 0 0;
|
|
599
|
+
height: 80vh;
|
|
600
|
+
max-height: 80vh;
|
|
601
|
+
display: -webkit-box;
|
|
602
|
+
display: -webkit-flex;
|
|
603
|
+
display: -ms-flexbox;
|
|
604
|
+
display: flex;
|
|
605
|
+
-webkit-box-orient: vertical;
|
|
606
|
+
-webkit-box-direction: normal;
|
|
607
|
+
-webkit-flex-direction: column;
|
|
608
|
+
-ms-flex-direction: column;
|
|
609
|
+
flex-direction: column;
|
|
610
|
+
position: relative;
|
|
611
|
+
overflow: hidden;
|
|
612
|
+
/* 可滚动内容区 */
|
|
613
|
+
/* 商品标题 */
|
|
614
|
+
/* Variant Detail:已选 SKU 信息 */
|
|
615
|
+
/* Variant Options:规格选择 */
|
|
616
|
+
/* 固定底部按钮区域 */
|
|
617
|
+
}
|
|
618
|
+
.add-to-cart-popup .loading,
|
|
619
|
+
.add-to-cart-popup .error {
|
|
620
|
+
text-align: center;
|
|
621
|
+
padding: 40px 20px;
|
|
622
|
+
color: #666;
|
|
623
|
+
font-size: 16px;
|
|
624
|
+
}
|
|
625
|
+
.add-to-cart-popup .error {
|
|
626
|
+
color: #ff4444;
|
|
627
|
+
}
|
|
628
|
+
.add-to-cart-popup .close-btn {
|
|
629
|
+
position: fixed;
|
|
630
|
+
top: 12px;
|
|
631
|
+
right: 12px;
|
|
632
|
+
width: 36px;
|
|
633
|
+
height: 36px;
|
|
634
|
+
border: none;
|
|
635
|
+
background: rgba(255, 255, 255, 0.9);
|
|
636
|
+
border-radius: 50%;
|
|
637
|
+
font-size: 28px;
|
|
638
|
+
line-height: 1;
|
|
639
|
+
color: #666;
|
|
640
|
+
cursor: pointer;
|
|
641
|
+
display: -webkit-box;
|
|
642
|
+
display: -webkit-flex;
|
|
643
|
+
display: -ms-flexbox;
|
|
644
|
+
display: flex;
|
|
645
|
+
-webkit-box-align: center;
|
|
646
|
+
-webkit-align-items: center;
|
|
647
|
+
-ms-flex-align: center;
|
|
648
|
+
align-items: center;
|
|
649
|
+
-webkit-box-pack: center;
|
|
650
|
+
-webkit-justify-content: center;
|
|
651
|
+
-ms-flex-pack: center;
|
|
652
|
+
justify-content: center;
|
|
653
|
+
z-index: 1000;
|
|
654
|
+
padding: 0;
|
|
655
|
+
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
656
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
657
|
+
}
|
|
658
|
+
.add-to-cart-popup .close-btn:hover {
|
|
659
|
+
color: #333;
|
|
660
|
+
background: #fff;
|
|
661
|
+
}
|
|
662
|
+
.add-to-cart-popup .popup-content {
|
|
663
|
+
-webkit-box-flex: 1;
|
|
664
|
+
-webkit-flex: 1;
|
|
665
|
+
-ms-flex: 1;
|
|
666
|
+
flex: 1;
|
|
667
|
+
overflow-y: auto;
|
|
668
|
+
overflow-x: hidden;
|
|
669
|
+
padding: 20px;
|
|
670
|
+
padding-bottom: 20px;
|
|
671
|
+
}
|
|
672
|
+
.add-to-cart-popup .product-header {
|
|
673
|
+
margin-bottom: 16px;
|
|
674
|
+
}
|
|
675
|
+
.add-to-cart-popup .product-header .product-title {
|
|
676
|
+
font-size: 18px;
|
|
677
|
+
font-weight: 600;
|
|
678
|
+
color: #333;
|
|
679
|
+
line-height: 1.4;
|
|
680
|
+
padding-right: 10px;
|
|
681
|
+
}
|
|
682
|
+
.add-to-cart-popup .variant-detail {
|
|
683
|
+
display: -webkit-box;
|
|
684
|
+
display: -webkit-flex;
|
|
685
|
+
display: -ms-flexbox;
|
|
686
|
+
display: flex;
|
|
687
|
+
gap: 12px;
|
|
688
|
+
margin-bottom: 20px;
|
|
689
|
+
}
|
|
690
|
+
.add-to-cart-popup .variant-detail .variant-image-container {
|
|
691
|
+
-webkit-flex-shrink: 0;
|
|
692
|
+
-ms-flex-negative: 0;
|
|
693
|
+
flex-shrink: 0;
|
|
694
|
+
}
|
|
695
|
+
.add-to-cart-popup .variant-detail .variant-image-container .variant-image {
|
|
696
|
+
width: 120px;
|
|
697
|
+
height: 120px;
|
|
698
|
+
-o-object-fit: cover;
|
|
699
|
+
object-fit: cover;
|
|
700
|
+
border-radius: 8px;
|
|
701
|
+
background: #f5f5f5;
|
|
702
|
+
}
|
|
703
|
+
.add-to-cart-popup .variant-detail .variant-info {
|
|
704
|
+
-webkit-box-flex: 1;
|
|
705
|
+
-webkit-flex: 1;
|
|
706
|
+
-ms-flex: 1;
|
|
707
|
+
flex: 1;
|
|
708
|
+
display: -webkit-box;
|
|
709
|
+
display: -webkit-flex;
|
|
710
|
+
display: -ms-flexbox;
|
|
711
|
+
display: flex;
|
|
712
|
+
-webkit-box-orient: vertical;
|
|
713
|
+
-webkit-box-direction: normal;
|
|
714
|
+
-webkit-flex-direction: column;
|
|
715
|
+
-ms-flex-direction: column;
|
|
716
|
+
flex-direction: column;
|
|
717
|
+
-webkit-box-pack: justify;
|
|
718
|
+
-webkit-justify-content: space-between;
|
|
719
|
+
-ms-flex-pack: justify;
|
|
720
|
+
justify-content: space-between;
|
|
721
|
+
min-width: 0;
|
|
722
|
+
}
|
|
723
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-specs-row {
|
|
724
|
+
display: -webkit-box;
|
|
725
|
+
display: -webkit-flex;
|
|
726
|
+
display: -ms-flexbox;
|
|
727
|
+
display: flex;
|
|
728
|
+
-webkit-box-align: start;
|
|
729
|
+
-webkit-align-items: flex-start;
|
|
730
|
+
-ms-flex-align: start;
|
|
731
|
+
align-items: flex-start;
|
|
732
|
+
-webkit-box-pack: justify;
|
|
733
|
+
-webkit-justify-content: space-between;
|
|
734
|
+
-ms-flex-pack: justify;
|
|
735
|
+
justify-content: space-between;
|
|
736
|
+
gap: 8px;
|
|
737
|
+
margin-bottom: 8px;
|
|
738
|
+
}
|
|
739
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-specs-row .variant-specs {
|
|
740
|
+
display: -webkit-box;
|
|
741
|
+
display: -webkit-flex;
|
|
742
|
+
display: -ms-flexbox;
|
|
743
|
+
display: flex;
|
|
744
|
+
-webkit-flex-wrap: wrap;
|
|
745
|
+
-ms-flex-wrap: wrap;
|
|
746
|
+
flex-wrap: wrap;
|
|
747
|
+
gap: 6px;
|
|
748
|
+
-webkit-box-flex: 1;
|
|
749
|
+
-webkit-flex: 1;
|
|
750
|
+
-ms-flex: 1;
|
|
751
|
+
flex: 1;
|
|
752
|
+
min-width: 0;
|
|
753
|
+
}
|
|
754
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-specs-row .variant-specs .spec-item {
|
|
755
|
+
padding: 4px 12px;
|
|
756
|
+
background: #f5f5f5;
|
|
757
|
+
border-radius: 4px;
|
|
758
|
+
font-size: 13px;
|
|
759
|
+
color: #333;
|
|
760
|
+
}
|
|
761
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-specs-row .variant-specs .spec-placeholder {
|
|
762
|
+
font-size: 13px;
|
|
763
|
+
color: #999;
|
|
764
|
+
}
|
|
765
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-specs-row .stock-info {
|
|
766
|
+
font-size: 12px;
|
|
767
|
+
color: #666;
|
|
768
|
+
white-space: nowrap;
|
|
769
|
+
-webkit-flex-shrink: 0;
|
|
770
|
+
-ms-flex-negative: 0;
|
|
771
|
+
flex-shrink: 0;
|
|
772
|
+
}
|
|
773
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-price-row {
|
|
774
|
+
display: -webkit-box;
|
|
775
|
+
display: -webkit-flex;
|
|
776
|
+
display: -ms-flexbox;
|
|
777
|
+
display: flex;
|
|
778
|
+
-webkit-box-align: center;
|
|
779
|
+
-webkit-align-items: center;
|
|
780
|
+
-ms-flex-align: center;
|
|
781
|
+
align-items: center;
|
|
782
|
+
-webkit-box-pack: justify;
|
|
783
|
+
-webkit-justify-content: space-between;
|
|
784
|
+
-ms-flex-pack: justify;
|
|
785
|
+
justify-content: space-between;
|
|
786
|
+
gap: 12px;
|
|
787
|
+
}
|
|
788
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-price-row .price {
|
|
789
|
+
font-size: 20px;
|
|
790
|
+
font-weight: 700;
|
|
791
|
+
color: #333;
|
|
792
|
+
}
|
|
793
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-price-row .quantity-selector {
|
|
794
|
+
display: -webkit-box;
|
|
795
|
+
display: -webkit-flex;
|
|
796
|
+
display: -ms-flexbox;
|
|
797
|
+
display: flex;
|
|
798
|
+
-webkit-box-align: center;
|
|
799
|
+
-webkit-align-items: center;
|
|
800
|
+
-ms-flex-align: center;
|
|
801
|
+
align-items: center;
|
|
802
|
+
gap: 8px;
|
|
803
|
+
border: 1px solid #ddd;
|
|
804
|
+
border-radius: 4px;
|
|
805
|
+
padding: 4px 6px;
|
|
806
|
+
-webkit-flex-shrink: 0;
|
|
807
|
+
-ms-flex-negative: 0;
|
|
808
|
+
flex-shrink: 0;
|
|
809
|
+
}
|
|
810
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-price-row .quantity-selector .qty-btn {
|
|
811
|
+
width: 24px;
|
|
812
|
+
height: 24px;
|
|
813
|
+
border: none;
|
|
814
|
+
background: transparent;
|
|
815
|
+
font-size: 20px;
|
|
816
|
+
line-height: 1;
|
|
817
|
+
color: #333;
|
|
818
|
+
cursor: pointer;
|
|
819
|
+
display: -webkit-box;
|
|
820
|
+
display: -webkit-flex;
|
|
821
|
+
display: -ms-flexbox;
|
|
822
|
+
display: flex;
|
|
823
|
+
-webkit-box-align: center;
|
|
824
|
+
-webkit-align-items: center;
|
|
825
|
+
-ms-flex-align: center;
|
|
826
|
+
align-items: center;
|
|
827
|
+
-webkit-box-pack: center;
|
|
828
|
+
-webkit-justify-content: center;
|
|
829
|
+
-ms-flex-pack: center;
|
|
830
|
+
justify-content: center;
|
|
831
|
+
padding: 0;
|
|
832
|
+
}
|
|
833
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-price-row .quantity-selector .qty-btn:hover:not(:disabled) {
|
|
834
|
+
color: #000;
|
|
835
|
+
}
|
|
836
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-price-row .quantity-selector .qty-btn:disabled {
|
|
837
|
+
opacity: 0.3;
|
|
838
|
+
cursor: not-allowed;
|
|
839
|
+
}
|
|
840
|
+
.add-to-cart-popup .variant-detail .variant-info .variant-price-row .quantity-selector .qty-value {
|
|
841
|
+
min-width: 24px;
|
|
842
|
+
text-align: center;
|
|
843
|
+
font-size: 14px;
|
|
844
|
+
font-weight: 600;
|
|
845
|
+
}
|
|
846
|
+
.add-to-cart-popup .variant-options {
|
|
847
|
+
display: -webkit-box;
|
|
848
|
+
display: -webkit-flex;
|
|
849
|
+
display: -ms-flexbox;
|
|
850
|
+
display: flex;
|
|
851
|
+
-webkit-box-orient: vertical;
|
|
852
|
+
-webkit-box-direction: normal;
|
|
853
|
+
-webkit-flex-direction: column;
|
|
854
|
+
-ms-flex-direction: column;
|
|
855
|
+
flex-direction: column;
|
|
856
|
+
gap: 20px;
|
|
857
|
+
padding-bottom: 20px;
|
|
858
|
+
}
|
|
859
|
+
.add-to-cart-popup .variant-options .option-group .option-label {
|
|
860
|
+
font-size: 15px;
|
|
861
|
+
font-weight: 600;
|
|
862
|
+
color: #333;
|
|
863
|
+
margin-bottom: 12px;
|
|
864
|
+
}
|
|
865
|
+
.add-to-cart-popup .variant-options .option-group .option-values {
|
|
866
|
+
display: -webkit-box;
|
|
867
|
+
display: -webkit-flex;
|
|
868
|
+
display: -ms-flexbox;
|
|
869
|
+
display: flex;
|
|
870
|
+
-webkit-flex-wrap: wrap;
|
|
871
|
+
-ms-flex-wrap: wrap;
|
|
872
|
+
flex-wrap: wrap;
|
|
873
|
+
gap: 8px;
|
|
874
|
+
}
|
|
875
|
+
.add-to-cart-popup .variant-options .option-group .option-values .option-btn {
|
|
876
|
+
padding: 8px 16px;
|
|
877
|
+
border: 2px solid #ddd;
|
|
878
|
+
background: #fff;
|
|
879
|
+
border-radius: 4px;
|
|
880
|
+
font-size: 14px;
|
|
881
|
+
color: #333;
|
|
882
|
+
cursor: pointer;
|
|
883
|
+
-webkit-transition: all 0.2s;
|
|
884
|
+
transition: all 0.2s;
|
|
885
|
+
min-width: 60px;
|
|
886
|
+
text-align: center;
|
|
887
|
+
}
|
|
888
|
+
.add-to-cart-popup .variant-options .option-group .option-values .option-btn:hover:not(:disabled):not(.selected) {
|
|
889
|
+
border-color: #999;
|
|
890
|
+
}
|
|
891
|
+
.add-to-cart-popup .variant-options .option-group .option-values .option-btn.selected {
|
|
892
|
+
border-color: #4caf50 !important;
|
|
893
|
+
border-width: 2px !important;
|
|
894
|
+
background: #fff !important;
|
|
895
|
+
color: #333 !important;
|
|
896
|
+
font-weight: 500 !important;
|
|
897
|
+
}
|
|
898
|
+
.add-to-cart-popup .variant-options .option-group .option-values .option-btn.disabled {
|
|
899
|
+
opacity: 0.4;
|
|
900
|
+
cursor: not-allowed;
|
|
901
|
+
background: #f5f5f5;
|
|
902
|
+
color: #999;
|
|
903
|
+
border-color: #ddd;
|
|
904
|
+
}
|
|
905
|
+
.add-to-cart-popup .popup-footer {
|
|
906
|
+
-webkit-flex-shrink: 0;
|
|
907
|
+
-ms-flex-negative: 0;
|
|
908
|
+
flex-shrink: 0;
|
|
909
|
+
padding: 16px 20px;
|
|
910
|
+
padding-bottom: 20px;
|
|
911
|
+
border-top: 1px solid #eee;
|
|
912
|
+
background: #fff;
|
|
913
|
+
-webkit-box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
|
|
914
|
+
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
|
|
915
|
+
}
|
|
916
|
+
.add-to-cart-popup .popup-footer .add-to-cart-btn {
|
|
917
|
+
width: 100%;
|
|
918
|
+
padding: 14px;
|
|
919
|
+
border: none;
|
|
920
|
+
background: #d32f2f;
|
|
921
|
+
color: #fff;
|
|
922
|
+
font-size: 16px;
|
|
923
|
+
font-weight: 600;
|
|
924
|
+
border-radius: 6px;
|
|
925
|
+
cursor: pointer;
|
|
926
|
+
-webkit-transition: background 0.2s;
|
|
927
|
+
transition: background 0.2s;
|
|
928
|
+
text-align: center;
|
|
929
|
+
display: -webkit-box;
|
|
930
|
+
display: -webkit-flex;
|
|
931
|
+
display: -ms-flexbox;
|
|
932
|
+
display: flex;
|
|
933
|
+
-webkit-box-align: center;
|
|
934
|
+
-webkit-align-items: center;
|
|
935
|
+
-ms-flex-align: center;
|
|
936
|
+
align-items: center;
|
|
937
|
+
-webkit-box-pack: center;
|
|
938
|
+
-webkit-justify-content: center;
|
|
939
|
+
-ms-flex-pack: center;
|
|
940
|
+
justify-content: center;
|
|
941
|
+
}
|
|
942
|
+
.add-to-cart-popup .popup-footer .add-to-cart-btn:hover:not(:disabled) {
|
|
943
|
+
background: #b71c1c;
|
|
944
|
+
}
|
|
945
|
+
.add-to-cart-popup .popup-footer .add-to-cart-btn:disabled {
|
|
946
|
+
opacity: 0.5;
|
|
947
|
+
cursor: not-allowed;
|
|
948
|
+
background: #ccc;
|
|
949
|
+
}
|
|
950
|
+
|
|
596
951
|
.pb-commondityDiroNew {
|
|
597
952
|
position: relative;
|
|
598
953
|
height: 100%;
|
|
@@ -857,297 +1212,6 @@ a:active {
|
|
|
857
1212
|
/* 继承父元素的文本颜色 */
|
|
858
1213
|
}
|
|
859
1214
|
|
|
860
|
-
.add-to-cart-popup-container {
|
|
861
|
-
display: -webkit-box;
|
|
862
|
-
display: -webkit-flex;
|
|
863
|
-
display: -ms-flexbox;
|
|
864
|
-
display: flex;
|
|
865
|
-
-webkit-box-orient: vertical;
|
|
866
|
-
-webkit-box-direction: normal;
|
|
867
|
-
-webkit-flex-direction: column;
|
|
868
|
-
-ms-flex-direction: column;
|
|
869
|
-
flex-direction: column;
|
|
870
|
-
height: 100%;
|
|
871
|
-
background: #fff;
|
|
872
|
-
overflow: hidden;
|
|
873
|
-
}
|
|
874
|
-
.add-to-cart-popup-loading,
|
|
875
|
-
.add-to-cart-popup-error {
|
|
876
|
-
display: -webkit-box;
|
|
877
|
-
display: -webkit-flex;
|
|
878
|
-
display: -ms-flexbox;
|
|
879
|
-
display: flex;
|
|
880
|
-
-webkit-box-align: center;
|
|
881
|
-
-webkit-align-items: center;
|
|
882
|
-
-ms-flex-align: center;
|
|
883
|
-
align-items: center;
|
|
884
|
-
-webkit-box-pack: center;
|
|
885
|
-
-webkit-justify-content: center;
|
|
886
|
-
-ms-flex-pack: center;
|
|
887
|
-
justify-content: center;
|
|
888
|
-
height: 100%;
|
|
889
|
-
padding: 20px;
|
|
890
|
-
font-size: 16px;
|
|
891
|
-
color: #666;
|
|
892
|
-
}
|
|
893
|
-
.add-to-cart-popup-error {
|
|
894
|
-
color: #ef4444;
|
|
895
|
-
text-align: center;
|
|
896
|
-
}
|
|
897
|
-
/* Variant Detail 区域 */
|
|
898
|
-
.variant-detail-section {
|
|
899
|
-
padding: 20px;
|
|
900
|
-
border-bottom: 1px solid #e5e7eb;
|
|
901
|
-
}
|
|
902
|
-
.variant-image-wrapper {
|
|
903
|
-
width: 100%;
|
|
904
|
-
aspect-ratio: 1;
|
|
905
|
-
margin-bottom: 16px;
|
|
906
|
-
overflow: hidden;
|
|
907
|
-
border-radius: 8px;
|
|
908
|
-
background: #f9fafb;
|
|
909
|
-
}
|
|
910
|
-
.variant-image {
|
|
911
|
-
width: 100%;
|
|
912
|
-
height: 100%;
|
|
913
|
-
-o-object-fit: cover;
|
|
914
|
-
object-fit: cover;
|
|
915
|
-
display: block;
|
|
916
|
-
}
|
|
917
|
-
.variant-info-wrapper .product-title-text {
|
|
918
|
-
font-size: 20px;
|
|
919
|
-
font-weight: 600;
|
|
920
|
-
margin: 0 0 12px 0;
|
|
921
|
-
line-height: 1.4;
|
|
922
|
-
color: #111;
|
|
923
|
-
}
|
|
924
|
-
.selected-options-tags {
|
|
925
|
-
display: -webkit-box;
|
|
926
|
-
display: -webkit-flex;
|
|
927
|
-
display: -ms-flexbox;
|
|
928
|
-
display: flex;
|
|
929
|
-
-webkit-flex-wrap: wrap;
|
|
930
|
-
-ms-flex-wrap: wrap;
|
|
931
|
-
flex-wrap: wrap;
|
|
932
|
-
gap: 8px;
|
|
933
|
-
margin-bottom: 12px;
|
|
934
|
-
}
|
|
935
|
-
.option-tag {
|
|
936
|
-
padding: 4px 12px;
|
|
937
|
-
background: #f3f4f6;
|
|
938
|
-
border-radius: 4px;
|
|
939
|
-
font-size: 14px;
|
|
940
|
-
color: #374151;
|
|
941
|
-
}
|
|
942
|
-
.price-display {
|
|
943
|
-
margin-bottom: 16px;
|
|
944
|
-
}
|
|
945
|
-
.price-value {
|
|
946
|
-
font-size: 24px;
|
|
947
|
-
font-weight: 700;
|
|
948
|
-
color: #111;
|
|
949
|
-
}
|
|
950
|
-
.quantity-selector-wrapper {
|
|
951
|
-
display: -webkit-box;
|
|
952
|
-
display: -webkit-flex;
|
|
953
|
-
display: -ms-flexbox;
|
|
954
|
-
display: flex;
|
|
955
|
-
-webkit-box-align: center;
|
|
956
|
-
-webkit-align-items: center;
|
|
957
|
-
-ms-flex-align: center;
|
|
958
|
-
align-items: center;
|
|
959
|
-
gap: 12px;
|
|
960
|
-
}
|
|
961
|
-
.quantity-btn {
|
|
962
|
-
width: 36px;
|
|
963
|
-
height: 36px;
|
|
964
|
-
border: 1px solid #e5e7eb;
|
|
965
|
-
background: #fff;
|
|
966
|
-
border-radius: 4px;
|
|
967
|
-
cursor: pointer;
|
|
968
|
-
font-size: 18px;
|
|
969
|
-
font-weight: 600;
|
|
970
|
-
color: #111;
|
|
971
|
-
-webkit-transition: all 0.2s;
|
|
972
|
-
transition: all 0.2s;
|
|
973
|
-
}
|
|
974
|
-
.quantity-btn:disabled {
|
|
975
|
-
opacity: 0.5;
|
|
976
|
-
cursor: not-allowed;
|
|
977
|
-
background: #f9fafb;
|
|
978
|
-
}
|
|
979
|
-
.quantity-btn:hover:not(:disabled) {
|
|
980
|
-
background: #f3f4f6;
|
|
981
|
-
border-color: #d1d5db;
|
|
982
|
-
}
|
|
983
|
-
.quantity-btn:active:not(:disabled) {
|
|
984
|
-
-webkit-transform: scale(0.95);
|
|
985
|
-
transform: scale(0.95);
|
|
986
|
-
}
|
|
987
|
-
.quantity-input-field {
|
|
988
|
-
width: 60px;
|
|
989
|
-
height: 36px;
|
|
990
|
-
text-align: center;
|
|
991
|
-
border: 1px solid #e5e7eb;
|
|
992
|
-
border-radius: 4px;
|
|
993
|
-
font-size: 16px;
|
|
994
|
-
font-weight: 600;
|
|
995
|
-
color: #111;
|
|
996
|
-
background: #fff;
|
|
997
|
-
}
|
|
998
|
-
.quantity-input-field::-webkit-outer-spin-button,
|
|
999
|
-
.quantity-input-field::-webkit-inner-spin-button {
|
|
1000
|
-
-webkit-appearance: none;
|
|
1001
|
-
appearance: none;
|
|
1002
|
-
margin: 0;
|
|
1003
|
-
}
|
|
1004
|
-
.quantity-input-field[type='number'] {
|
|
1005
|
-
-moz-appearance: textfield;
|
|
1006
|
-
-webkit-appearance: textfield;
|
|
1007
|
-
appearance: textfield;
|
|
1008
|
-
}
|
|
1009
|
-
.no-selection-hint {
|
|
1010
|
-
padding: 20px;
|
|
1011
|
-
text-align: center;
|
|
1012
|
-
color: #9ca3af;
|
|
1013
|
-
font-style: italic;
|
|
1014
|
-
font-size: 14px;
|
|
1015
|
-
background: #f9fafb;
|
|
1016
|
-
border-radius: 8px;
|
|
1017
|
-
margin-top: 12px;
|
|
1018
|
-
}
|
|
1019
|
-
/* Variant Options 区域 */
|
|
1020
|
-
.variant-options-section {
|
|
1021
|
-
-webkit-box-flex: 1;
|
|
1022
|
-
-webkit-flex: 1;
|
|
1023
|
-
-ms-flex: 1;
|
|
1024
|
-
flex: 1;
|
|
1025
|
-
padding: 20px;
|
|
1026
|
-
overflow-y: auto;
|
|
1027
|
-
}
|
|
1028
|
-
.variant-options-section::-webkit-scrollbar {
|
|
1029
|
-
width: 6px;
|
|
1030
|
-
}
|
|
1031
|
-
.variant-options-section::-webkit-scrollbar-track {
|
|
1032
|
-
background: #f1f1f1;
|
|
1033
|
-
border-radius: 3px;
|
|
1034
|
-
}
|
|
1035
|
-
.variant-options-section::-webkit-scrollbar-thumb {
|
|
1036
|
-
background: #888;
|
|
1037
|
-
border-radius: 3px;
|
|
1038
|
-
}
|
|
1039
|
-
.variant-options-section::-webkit-scrollbar-thumb:hover {
|
|
1040
|
-
background: #555;
|
|
1041
|
-
}
|
|
1042
|
-
.option-group-wrapper {
|
|
1043
|
-
margin-bottom: 24px;
|
|
1044
|
-
}
|
|
1045
|
-
.option-group-wrapper:last-child {
|
|
1046
|
-
margin-bottom: 0;
|
|
1047
|
-
}
|
|
1048
|
-
.option-group-name {
|
|
1049
|
-
font-size: 16px;
|
|
1050
|
-
font-weight: 600;
|
|
1051
|
-
margin: 0 0 12px 0;
|
|
1052
|
-
color: #111;
|
|
1053
|
-
}
|
|
1054
|
-
.option-values-grid {
|
|
1055
|
-
display: -webkit-box;
|
|
1056
|
-
display: -webkit-flex;
|
|
1057
|
-
display: -ms-flexbox;
|
|
1058
|
-
display: flex;
|
|
1059
|
-
-webkit-flex-wrap: wrap;
|
|
1060
|
-
-ms-flex-wrap: wrap;
|
|
1061
|
-
flex-wrap: wrap;
|
|
1062
|
-
gap: 8px;
|
|
1063
|
-
}
|
|
1064
|
-
.option-value-button {
|
|
1065
|
-
padding: 10px 20px;
|
|
1066
|
-
margin: 0;
|
|
1067
|
-
border: 1px solid #e5e7eb;
|
|
1068
|
-
background: #fff;
|
|
1069
|
-
color: #000;
|
|
1070
|
-
cursor: pointer;
|
|
1071
|
-
border-radius: 4px;
|
|
1072
|
-
font-size: 14px;
|
|
1073
|
-
-webkit-transition: all 0.2s;
|
|
1074
|
-
transition: all 0.2s;
|
|
1075
|
-
}
|
|
1076
|
-
.option-value-button.selected {
|
|
1077
|
-
border: 2px solid #22c55e;
|
|
1078
|
-
border-color: #22c55e;
|
|
1079
|
-
}
|
|
1080
|
-
.option-value-button.disabled {
|
|
1081
|
-
background: #f3f4f6;
|
|
1082
|
-
color: #9ca3af;
|
|
1083
|
-
cursor: not-allowed;
|
|
1084
|
-
opacity: 0.5;
|
|
1085
|
-
}
|
|
1086
|
-
.option-value-button:hover:not(.disabled) {
|
|
1087
|
-
border-color: #22c55e;
|
|
1088
|
-
-webkit-transform: translateY(-1px);
|
|
1089
|
-
transform: translateY(-1px);
|
|
1090
|
-
}
|
|
1091
|
-
/* Add to Cart 按钮 */
|
|
1092
|
-
.add-to-cart-button {
|
|
1093
|
-
width: 100%;
|
|
1094
|
-
padding: 16px;
|
|
1095
|
-
background: #000;
|
|
1096
|
-
color: #fff;
|
|
1097
|
-
border: none;
|
|
1098
|
-
font-size: 16px;
|
|
1099
|
-
font-weight: 600;
|
|
1100
|
-
cursor: pointer;
|
|
1101
|
-
-webkit-transition: all 0.2s;
|
|
1102
|
-
transition: all 0.2s;
|
|
1103
|
-
text-transform: uppercase;
|
|
1104
|
-
letter-spacing: 0.5px;
|
|
1105
|
-
}
|
|
1106
|
-
.add-to-cart-button:hover:not(:disabled) {
|
|
1107
|
-
background: #333;
|
|
1108
|
-
-webkit-transform: translateY(-1px);
|
|
1109
|
-
transform: translateY(-1px);
|
|
1110
|
-
-webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1111
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1112
|
-
}
|
|
1113
|
-
.add-to-cart-button:active:not(:disabled) {
|
|
1114
|
-
-webkit-transform: translateY(0);
|
|
1115
|
-
transform: translateY(0);
|
|
1116
|
-
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
1117
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
1118
|
-
}
|
|
1119
|
-
.add-to-cart-button:disabled,
|
|
1120
|
-
.add-to-cart-button.disabled {
|
|
1121
|
-
background: #9ca3af;
|
|
1122
|
-
cursor: not-allowed;
|
|
1123
|
-
opacity: 0.6;
|
|
1124
|
-
}
|
|
1125
|
-
.add-to-cart-button span {
|
|
1126
|
-
display: inline-block;
|
|
1127
|
-
}
|
|
1128
|
-
/* 响应式 */
|
|
1129
|
-
@media (max-width: 375px) {
|
|
1130
|
-
.variant-detail-section {
|
|
1131
|
-
padding: 16px;
|
|
1132
|
-
}
|
|
1133
|
-
.product-title-text {
|
|
1134
|
-
font-size: 18px !important;
|
|
1135
|
-
}
|
|
1136
|
-
.price-value {
|
|
1137
|
-
font-size: 20px !important;
|
|
1138
|
-
}
|
|
1139
|
-
.variant-options-section {
|
|
1140
|
-
padding: 16px;
|
|
1141
|
-
}
|
|
1142
|
-
.option-group-name {
|
|
1143
|
-
font-size: 14px !important;
|
|
1144
|
-
}
|
|
1145
|
-
.add-to-cart-button {
|
|
1146
|
-
padding: 14px;
|
|
1147
|
-
font-size: 14px !important;
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
1215
|
.index-module_tow-line-ellipsis__3bKKx {
|
|
1152
1216
|
display: -webkit-box;
|
|
1153
1217
|
-webkit-box-orient: vertical;
|