create-abcart-theme 0.0.0-stage → 0.10.1
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/CHANGELOG.md +127 -0
- package/LICENSE +202 -0
- package/NOTICE +2 -0
- package/README.md +64 -2
- package/bin/create-abcart-theme.mjs +4 -0
- package/package.json +47 -4
- package/src/args.mjs +113 -0
- package/src/banner.mjs +21 -0
- package/src/cli.mjs +119 -0
- package/src/create.mjs +82 -0
- package/src/package-manager.mjs +32 -0
- package/src/style.mjs +17 -0
- package/templates/default/.agents/skills/shopify-theme-asset-collector/SKILL.md +125 -0
- package/templates/default/.agents/skills/shopify-theme-asset-collector/scripts/collect_public_assets.py +370 -0
- package/templates/default/.agents/skills/wocart-docs/SKILL.md +146 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/SKILL.md +58 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/inputs-and-rights.md +47 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/layout-rtl-and-phone.md +36 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/measure-the-design.md +60 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/tokens-sections-content.md +103 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/verify-and-report.md +102 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/scripts/compare-design.cjs +230 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/scripts/qa-pages.cjs +219 -0
- package/templates/default/.dev.vars.example +12 -0
- package/templates/default/AGENTS.md +240 -0
- package/templates/default/README.md +184 -0
- package/templates/default/_gitignore +11 -0
- package/templates/default/astro.config.mjs +85 -0
- package/templates/default/package.json +36 -0
- package/templates/default/public/fonts/OFL.txt +96 -0
- package/templates/default/public/fonts/alexandria-arabic.woff2 +0 -0
- package/templates/default/public/fonts/fraunces-latin.woff2 +0 -0
- package/templates/default/src/actions/index.ts +22 -0
- package/templates/default/src/components/cart/AddToCartButton.astro +45 -0
- package/templates/default/src/components/cart/CartDrawer.astro +47 -0
- package/templates/default/src/components/cart/CartSummary.astro +11 -0
- package/templates/default/src/components/cart/FreeShipping.astro +7 -0
- package/templates/default/src/components/checkout/CheckoutMain.astro +29 -0
- package/templates/default/src/components/checkout/OrderForm.astro +280 -0
- package/templates/default/src/components/checkout/ThankYouMain.astro +68 -0
- package/templates/default/src/components/landing/LandingImages.astro +51 -0
- package/templates/default/src/components/landing/LandingOrder.astro +46 -0
- package/templates/default/src/components/landing/LandingProduct.astro +41 -0
- package/templates/default/src/components/listing/ListingMain.astro +93 -0
- package/templates/default/src/components/listing/PageMain.astro +52 -0
- package/templates/default/src/components/listing/Pagination.astro +31 -0
- package/templates/default/src/components/listing/SortControl.astro +35 -0
- package/templates/default/src/components/product/BuyBox.astro +96 -0
- package/templates/default/src/components/product/Description.astro +24 -0
- package/templates/default/src/components/product/Gallery.astro +66 -0
- package/templates/default/src/components/product/MobileBuyBar.astro +29 -0
- package/templates/default/src/components/product/OfferChoice.astro +66 -0
- package/templates/default/src/components/product/ProductMain.astro +40 -0
- package/templates/default/src/components/product/ProductReviews.astro +72 -0
- package/templates/default/src/components/product/RelatedProducts.astro +30 -0
- package/templates/default/src/components/product/blocks/BenefitsBlock.astro +13 -0
- package/templates/default/src/components/product/blocks/CollapsibleBlock.astro +20 -0
- package/templates/default/src/components/product/blocks/DescriptionBlock.astro +19 -0
- package/templates/default/src/components/product/blocks/DetailsBlock.astro +33 -0
- package/templates/default/src/components/product/blocks/GalleryBlock.astro +12 -0
- package/templates/default/src/components/product/blocks/OrderBlock.astro +30 -0
- package/templates/default/src/components/product/blocks/PriceBlock.astro +23 -0
- package/templates/default/src/components/product/blocks/RatingBlock.astro +16 -0
- package/templates/default/src/components/product/blocks/StockBlock.astro +22 -0
- package/templates/default/src/components/product/blocks/TextBlock.astro +11 -0
- package/templates/default/src/components/product/blocks/TitleBlock.astro +20 -0
- package/templates/default/src/components/reviews/ReviewCard.astro +46 -0
- package/templates/default/src/components/reviews/ReviewForm.astro +113 -0
- package/templates/default/src/components/reviews/VoiceNote.astro +60 -0
- package/templates/default/src/components/sections/CollectionCards.astro +65 -0
- package/templates/default/src/components/sections/Countdown.astro +57 -0
- package/templates/default/src/components/sections/Faq.astro +44 -0
- package/templates/default/src/components/sections/FeaturedProduct.astro +71 -0
- package/templates/default/src/components/sections/Hero.astro +99 -0
- package/templates/default/src/components/sections/ImageBanner.astro +46 -0
- package/templates/default/src/components/sections/ProductGrid.astro +47 -0
- package/templates/default/src/components/sections/RichText.astro +35 -0
- package/templates/default/src/components/sections/Steps.astro +46 -0
- package/templates/default/src/components/sections/Testimonials.astro +57 -0
- package/templates/default/src/components/shell/Footer.astro +80 -0
- package/templates/default/src/components/shell/Header.astro +89 -0
- package/templates/default/src/components/shell/LanguageMenu.astro +33 -0
- package/templates/default/src/components/shell/MobileMenu.astro +65 -0
- package/templates/default/src/components/shell/SearchDialog.astro +19 -0
- package/templates/default/src/components/shell/TopBar.astro +54 -0
- package/templates/default/src/components/shell/WhatsAppWidget.astro +111 -0
- package/templates/default/src/components/store/ContactMain.astro +79 -0
- package/templates/default/src/components/store/SearchMain.astro +56 -0
- package/templates/default/src/components/store/TrackOrderMain.astro +161 -0
- package/templates/default/src/components/surface/Area.astro +20 -0
- package/templates/default/src/components/surface/PreviewBridge.astro +24 -0
- package/templates/default/src/components/surface/Sections.astro +35 -0
- package/templates/default/src/components/ui/Breadcrumbs.astro +36 -0
- package/templates/default/src/components/ui/Button.astro +45 -0
- package/templates/default/src/components/ui/EditorPlaceholder.astro +24 -0
- package/templates/default/src/components/ui/Icon.astro +93 -0
- package/templates/default/src/components/ui/Logo.astro +36 -0
- package/templates/default/src/components/ui/Photo.astro +46 -0
- package/templates/default/src/components/ui/Price.astro +24 -0
- package/templates/default/src/components/ui/ProductCard.astro +41 -0
- package/templates/default/src/components/ui/Rating.astro +22 -0
- package/templates/default/src/components/ui/Section.astro +34 -0
- package/templates/default/src/components/ui/SectionHeading.astro +19 -0
- package/templates/default/src/env.d.ts +23 -0
- package/templates/default/src/layouts/StoreLayout.astro +145 -0
- package/templates/default/src/lib/browser-copy.ts +37 -0
- package/templates/default/src/lib/context.ts +89 -0
- package/templates/default/src/lib/coupon-notice.ts +47 -0
- package/templates/default/src/lib/i18n.ts +32 -0
- package/templates/default/src/lib/images.ts +38 -0
- package/templates/default/src/lib/listing-query.ts +41 -0
- package/templates/default/src/lib/money.ts +16 -0
- package/templates/default/src/lib/motion.ts +16 -0
- package/templates/default/src/lib/nav.ts +26 -0
- package/templates/default/src/lib/offer-tiles.ts +105 -0
- package/templates/default/src/lib/order-outcome.ts +66 -0
- package/templates/default/src/lib/otp-message.ts +21 -0
- package/templates/default/src/lib/products.ts +38 -0
- package/templates/default/src/lib/review-refusals.ts +31 -0
- package/templates/default/src/lib/store.ts +31 -0
- package/templates/default/src/lib/whatsapp.ts +29 -0
- package/templates/default/src/middleware.ts +23 -0
- package/templates/default/src/pages/404.astro +22 -0
- package/templates/default/src/pages/api/abandoned/convert.ts +4 -0
- package/templates/default/src/pages/api/abandoned/upsert.ts +4 -0
- package/templates/default/src/pages/api/cart/validate.ts +4 -0
- package/templates/default/src/pages/api/communes/[wilayaId].ts +4 -0
- package/templates/default/src/pages/api/otp/send.ts +4 -0
- package/templates/default/src/pages/api/otp/verify.ts +4 -0
- package/templates/default/src/pages/api/reviews/[productId].ts +3 -0
- package/templates/default/src/pages/api/reviews/eligibility.ts +3 -0
- package/templates/default/src/pages/api/reviews/submit.ts +3 -0
- package/templates/default/src/pages/api/reviews/upload.ts +3 -0
- package/templates/default/src/pages/category/[slug].astro +20 -0
- package/templates/default/src/pages/checkout.astro +25 -0
- package/templates/default/src/pages/collections/[handle].astro +20 -0
- package/templates/default/src/pages/contact.astro +17 -0
- package/templates/default/src/pages/index.astro +9 -0
- package/templates/default/src/pages/lp/[slug].astro +47 -0
- package/templates/default/src/pages/pages/[slug].astro +16 -0
- package/templates/default/src/pages/products/[handle].astro +37 -0
- package/templates/default/src/pages/products/index.astro +15 -0
- package/templates/default/src/pages/robots.txt.ts +9 -0
- package/templates/default/src/pages/search.astro +19 -0
- package/templates/default/src/pages/sitemap.xml.ts +12 -0
- package/templates/default/src/pages/thank-you.astro +33 -0
- package/templates/default/src/pages/track-order.astro +17 -0
- package/templates/default/src/pages/wocart-preview.astro +43 -0
- package/templates/default/src/pages/wocart-revalidate.ts +10 -0
- package/templates/default/src/pages/wocart-styles.css.ts +5 -0
- package/templates/default/src/pages/wocart-theme.json.ts +5 -0
- package/templates/default/src/scripts/cart.ts +371 -0
- package/templates/default/src/scripts/checkout/coupon.ts +96 -0
- package/templates/default/src/scripts/checkout/delivery.ts +86 -0
- package/templates/default/src/scripts/checkout/form.ts +54 -0
- package/templates/default/src/scripts/checkout/otp.ts +106 -0
- package/templates/default/src/scripts/checkout/picker.ts +169 -0
- package/templates/default/src/scripts/checkout/quote.ts +169 -0
- package/templates/default/src/scripts/checkout/submit.ts +113 -0
- package/templates/default/src/scripts/checkout/tracking.ts +74 -0
- package/templates/default/src/scripts/countdown.ts +29 -0
- package/templates/default/src/scripts/events.ts +4 -0
- package/templates/default/src/scripts/hero.ts +49 -0
- package/templates/default/src/scripts/listing.ts +13 -0
- package/templates/default/src/scripts/order-form.ts +100 -0
- package/templates/default/src/scripts/product.ts +306 -0
- package/templates/default/src/scripts/public-config.ts +79 -0
- package/templates/default/src/scripts/reviews.ts +358 -0
- package/templates/default/src/scripts/site.ts +131 -0
- package/templates/default/src/scripts/thank-you.ts +11 -0
- package/templates/default/src/scripts/voice-note.ts +94 -0
- package/templates/default/src/styles/base.css +1030 -0
- package/templates/default/src/styles/checkout.css +1111 -0
- package/templates/default/src/styles/global.css +12 -0
- package/templates/default/src/styles/product.css +871 -0
- package/templates/default/src/styles/reviews.css +533 -0
- package/templates/default/src/styles/sections.css +931 -0
- package/templates/default/src/styles/shell.css +970 -0
- package/templates/default/src/styles/tokens.css +583 -0
- package/templates/default/src/theme/api-routes.ts +10 -0
- package/templates/default/src/theme/content/catalog.ts +117 -0
- package/templates/default/src/theme/content/checkout.ts +168 -0
- package/templates/default/src/theme/content/editor.ts +21 -0
- package/templates/default/src/theme/content/index.ts +45 -0
- package/templates/default/src/theme/content/reviews.ts +76 -0
- package/templates/default/src/theme/content/shell.ts +59 -0
- package/templates/default/src/theme/content/types.ts +12 -0
- package/templates/default/src/theme/documents/catalog.json +11 -0
- package/templates/default/src/theme/documents/category.json +11 -0
- package/templates/default/src/theme/documents/checkout.json +11 -0
- package/templates/default/src/theme/documents/collection.json +11 -0
- package/templates/default/src/theme/documents/contact.json +11 -0
- package/templates/default/src/theme/documents/footer.area.json +11 -0
- package/templates/default/src/theme/documents/header.area.json +16 -0
- package/templates/default/src/theme/documents/home.json +313 -0
- package/templates/default/src/theme/documents/landing.json +8 -0
- package/templates/default/src/theme/documents/page.json +11 -0
- package/templates/default/src/theme/documents/product.json +125 -0
- package/templates/default/src/theme/documents/search.json +11 -0
- package/templates/default/src/theme/documents/thank-you.json +11 -0
- package/templates/default/src/theme/documents/track-order.json +11 -0
- package/templates/default/src/theme/fields.ts +61 -0
- package/templates/default/src/theme/key.ts +11 -0
- package/templates/default/src/theme/labels.ts +231 -0
- package/templates/default/src/theme/locales.ts +11 -0
- package/templates/default/src/theme/palette.ts +14 -0
- package/templates/default/src/theme/sections/collection-cards.ts +65 -0
- package/templates/default/src/theme/sections/faq.ts +74 -0
- package/templates/default/src/theme/sections/featured-product.ts +42 -0
- package/templates/default/src/theme/sections/hero.ts +47 -0
- package/templates/default/src/theme/sections/image-banner.ts +25 -0
- package/templates/default/src/theme/sections/index.ts +40 -0
- package/templates/default/src/theme/sections/landing.ts +150 -0
- package/templates/default/src/theme/sections/listing.ts +84 -0
- package/templates/default/src/theme/sections/product-grid.ts +42 -0
- package/templates/default/src/theme/sections/product.ts +297 -0
- package/templates/default/src/theme/sections/rich-text.ts +39 -0
- package/templates/default/src/theme/sections/shared.ts +54 -0
- package/templates/default/src/theme/sections/shell.ts +85 -0
- package/templates/default/src/theme/sections/store-pages.ts +101 -0
- package/templates/default/src/theme/sections/testimonials.ts +61 -0
- package/templates/default/src/theme/sections/thank-you.ts +35 -0
- package/templates/default/src/theme/settings.ts +124 -0
- package/templates/default/src/theme/theme.ts +65 -0
- package/templates/default/tests/fixtures/canvas-tote.json +62 -0
- package/templates/default/tests/fixtures/linen-shirt.json +128 -0
- package/templates/default/tests/unit/checkout.test.ts +241 -0
- package/templates/default/tests/unit/contract.test.ts +169 -0
- package/templates/default/tests/unit/contrast.test.ts +68 -0
- package/templates/default/tests/unit/copy.test.ts +101 -0
- package/templates/default/tests/unit/design-values.test.ts +95 -0
- package/templates/default/tests/unit/editability.test.ts +180 -0
- package/templates/default/tests/unit/fixtures.ts +91 -0
- package/templates/default/tests/unit/footer.test.ts +54 -0
- package/templates/default/tests/unit/guards.test.ts +340 -0
- package/templates/default/tests/unit/images.test.ts +26 -0
- package/templates/default/tests/unit/landing.test.ts +151 -0
- package/templates/default/tests/unit/languages.test.ts +42 -0
- package/templates/default/tests/unit/middleware.test.ts +53 -0
- package/templates/default/tests/unit/offer-tiles.test.ts +75 -0
- package/templates/default/tests/unit/render.ts +38 -0
- package/templates/default/tests/unit/reviews.test.ts +25 -0
- package/templates/default/tests/unit/rules.test.ts +59 -0
- package/templates/default/tests/unit/source.ts +75 -0
- package/templates/default/tests/unit/store-pages.test.ts +147 -0
- package/templates/default/tests/unit/studio.test.ts +202 -0
- package/templates/default/tests/unit/testimonials.test.ts +52 -0
- package/templates/default/tests/unit/thank-you.test.ts +52 -0
- package/templates/default/tests/unit/tracking.test.ts +29 -0
- package/templates/default/tests/unit/voice-note.test.ts +42 -0
- package/templates/default/tsconfig.json +13 -0
- package/templates/default/vitest.config.ts +15 -0
- package/templates/default/wrangler.jsonc +17 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
/* ---------- reviews ---------- */
|
|
2
|
+
|
|
3
|
+
.reviews-summary {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
align-items: flex-end;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
margin-block-end: clamp(18px, 3vw, 28px);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.reviews-summary h2 {
|
|
13
|
+
font-size: var(--text-reviews-summary);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.reviews-summary__score {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 8px 12px;
|
|
21
|
+
margin-block-start: 8px;
|
|
22
|
+
color: var(--muted);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.reviews-summary__score strong {
|
|
26
|
+
color: var(--heading);
|
|
27
|
+
font-family: var(--font-display);
|
|
28
|
+
font-size: var(--text-reviews-summary-score);
|
|
29
|
+
line-height: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.reviews-grid {
|
|
33
|
+
display: grid;
|
|
34
|
+
gap: 14px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (min-width: 760px) {
|
|
38
|
+
.reviews-grid {
|
|
39
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
|
|
40
|
+
gap: 18px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.review-card {
|
|
45
|
+
display: grid;
|
|
46
|
+
align-content: start;
|
|
47
|
+
gap: 10px;
|
|
48
|
+
padding: 20px;
|
|
49
|
+
border: var(--border-review-card);
|
|
50
|
+
border-radius: var(--r-lg);
|
|
51
|
+
background: var(--card);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.review-card__top {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: 10px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.review-card__avatar {
|
|
61
|
+
display: grid;
|
|
62
|
+
place-items: center;
|
|
63
|
+
flex: none;
|
|
64
|
+
width: 40px;
|
|
65
|
+
height: 40px;
|
|
66
|
+
border-radius: var(--r-round);
|
|
67
|
+
background: var(--soft);
|
|
68
|
+
color: var(--accent);
|
|
69
|
+
font-weight: var(--weight-heavy);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.review-card__who {
|
|
73
|
+
display: grid;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.review-card__name {
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
color: var(--heading);
|
|
80
|
+
font-weight: var(--weight-bold);
|
|
81
|
+
text-overflow: ellipsis;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.review-card__date {
|
|
86
|
+
margin-inline-start: auto;
|
|
87
|
+
color: var(--muted);
|
|
88
|
+
font-size: var(--text-review-card-date);
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.review-card__title {
|
|
93
|
+
color: var(--heading);
|
|
94
|
+
font-weight: var(--weight-bold);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.review-card__body {
|
|
98
|
+
color: var(--ink);
|
|
99
|
+
font-size: var(--text-review-card-body);
|
|
100
|
+
white-space: pre-line;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.review-card__media {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-wrap: wrap;
|
|
106
|
+
gap: 8px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.review-card__photo {
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
width: 76px;
|
|
112
|
+
height: 76px;
|
|
113
|
+
border-radius: var(--r);
|
|
114
|
+
background: var(--soft);
|
|
115
|
+
transition: transform var(--duration) var(--ease);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.review-card__photo:hover {
|
|
119
|
+
transform: var(--motion-review-card-photo-hover);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.review-card__photo img {
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: 100%;
|
|
125
|
+
object-fit: cover;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* A voice note: one round button, a wave that fills as it plays, its length. */
|
|
129
|
+
.voice-note {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: 12px;
|
|
134
|
+
padding-block: 8px;
|
|
135
|
+
padding-inline: 8px 14px;
|
|
136
|
+
border-radius: var(--r-pill);
|
|
137
|
+
background: var(--soft);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.voice-note__play {
|
|
141
|
+
display: grid;
|
|
142
|
+
place-items: center;
|
|
143
|
+
flex: none;
|
|
144
|
+
width: 42px;
|
|
145
|
+
height: 42px;
|
|
146
|
+
border-radius: var(--r-round);
|
|
147
|
+
background: var(--btn);
|
|
148
|
+
color: var(--btn-ink);
|
|
149
|
+
box-shadow: var(--shadow-voice-note-play);
|
|
150
|
+
transition: transform var(--duration) var(--ease);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.voice-note__play:active {
|
|
154
|
+
transform: var(--motion-voice-note-play-active);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.voice-note__icon,
|
|
158
|
+
.voice-note__spinner {
|
|
159
|
+
display: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.voice-note:is([data-state="idle"], [data-state="paused"]) .voice-note__icon--play,
|
|
163
|
+
.voice-note[data-state="playing"] .voice-note__icon--pause,
|
|
164
|
+
.voice-note[data-state="error"] .voice-note__icon--retry,
|
|
165
|
+
.voice-note[data-state="loading"] .voice-note__spinner {
|
|
166
|
+
display: block;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.voice-note[data-state="error"] .voice-note__play {
|
|
170
|
+
background: var(--danger);
|
|
171
|
+
box-shadow: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.voice-note__spinner {
|
|
175
|
+
width: 18px;
|
|
176
|
+
height: 18px;
|
|
177
|
+
border: var(--border-voice-note-spinner);
|
|
178
|
+
border-inline-end-color: transparent;
|
|
179
|
+
border-radius: var(--r-round);
|
|
180
|
+
animation: var(--motion-voice-note-spinner);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@keyframes voice-spin {
|
|
184
|
+
to {
|
|
185
|
+
transform: var(--motion-keyframes-voice-spin-to);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media (prefers-reduced-motion: reduce) {
|
|
190
|
+
.voice-note__spinner {
|
|
191
|
+
animation-duration: var(--motion-voice-note-spinner-reduced);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.voice-note__track {
|
|
196
|
+
position: relative;
|
|
197
|
+
flex: 1;
|
|
198
|
+
min-width: 0;
|
|
199
|
+
height: 32px;
|
|
200
|
+
border-radius: var(--r-sm);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.voice-note__track:has(.voice-note__seek:focus-visible) {
|
|
204
|
+
outline: var(--border-voice-note-track-focus);
|
|
205
|
+
outline-offset: var(--border-voice-note-track-focus-offset);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.voice-note__seek {
|
|
209
|
+
position: absolute;
|
|
210
|
+
inset: 0;
|
|
211
|
+
width: 100%;
|
|
212
|
+
height: 100%;
|
|
213
|
+
margin: 0;
|
|
214
|
+
opacity: 0;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.voice-note__seek:disabled {
|
|
219
|
+
cursor: default;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.voice-note__error {
|
|
223
|
+
flex-basis: 100%;
|
|
224
|
+
padding-inline: 8px;
|
|
225
|
+
color: var(--danger-text);
|
|
226
|
+
font-size: var(--text-voice-note-error);
|
|
227
|
+
font-weight: var(--weight-semibold);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.voice-note__error:empty {
|
|
231
|
+
display: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.voice-note[data-state="error"] {
|
|
235
|
+
border-radius: var(--r-lg);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.voice-note__bars {
|
|
239
|
+
position: absolute;
|
|
240
|
+
inset: 0;
|
|
241
|
+
display: flex;
|
|
242
|
+
align-items: center;
|
|
243
|
+
gap: 3px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.voice-note__bars i {
|
|
247
|
+
flex: 1;
|
|
248
|
+
height: var(--h);
|
|
249
|
+
border-radius: var(--r-xs);
|
|
250
|
+
background: var(--surface-voice-note-bars);
|
|
251
|
+
transition: var(--motion-voice-note-bars);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.voice-note__bars i.is-played {
|
|
255
|
+
background: var(--accent);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.voice-note__time {
|
|
259
|
+
flex: none;
|
|
260
|
+
min-width: 36px;
|
|
261
|
+
color: var(--heading);
|
|
262
|
+
font-size: var(--text-voice-note-time);
|
|
263
|
+
font-weight: var(--weight-bold);
|
|
264
|
+
font-variant-numeric: tabular-nums;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.photo-dialog {
|
|
268
|
+
max-width: min(92vw, 900px);
|
|
269
|
+
max-height: 90vh;
|
|
270
|
+
padding: 0;
|
|
271
|
+
border: 0;
|
|
272
|
+
border-radius: var(--r-lg);
|
|
273
|
+
background: transparent;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.photo-dialog::backdrop {
|
|
277
|
+
background: var(--overlay-strong);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.photo-dialog img {
|
|
281
|
+
max-height: 86vh;
|
|
282
|
+
border-radius: var(--r-lg);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.photo-dialog .icon-btn {
|
|
286
|
+
position: absolute;
|
|
287
|
+
inset-block-start: 10px;
|
|
288
|
+
inset-inline-end: 10px;
|
|
289
|
+
background: var(--on-photo);
|
|
290
|
+
color: var(--on-photo-ink);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.review-dialog {
|
|
294
|
+
width: min(560px, calc(100vw - 20px));
|
|
295
|
+
max-height: calc(100vh - 40px);
|
|
296
|
+
margin: auto;
|
|
297
|
+
padding: 0;
|
|
298
|
+
border: 0;
|
|
299
|
+
border-radius: var(--r-lg);
|
|
300
|
+
background: var(--bg);
|
|
301
|
+
color: var(--ink);
|
|
302
|
+
box-shadow: var(--shadow-lg);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.review-dialog::backdrop {
|
|
306
|
+
background: var(--overlay);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.review-dialog__head {
|
|
310
|
+
position: sticky;
|
|
311
|
+
inset-block-start: 0;
|
|
312
|
+
z-index: 1;
|
|
313
|
+
display: flex;
|
|
314
|
+
align-items: center;
|
|
315
|
+
justify-content: space-between;
|
|
316
|
+
padding: 16px 16px 12px 22px;
|
|
317
|
+
background: var(--bg);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[dir="rtl"] .review-dialog__head {
|
|
321
|
+
padding: 16px 22px 12px 16px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.review-dialog__head h2 {
|
|
325
|
+
font-size: var(--text-review-dialog-head);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.review-form {
|
|
329
|
+
display: grid;
|
|
330
|
+
gap: 14px;
|
|
331
|
+
padding: 4px 22px 24px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.review-form__step {
|
|
335
|
+
display: grid;
|
|
336
|
+
gap: 14px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.review-form__lead {
|
|
340
|
+
color: var(--muted);
|
|
341
|
+
font-size: var(--text-review-form-lead);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.review-form__order {
|
|
345
|
+
display: flex;
|
|
346
|
+
align-items: center;
|
|
347
|
+
gap: 8px;
|
|
348
|
+
color: var(--success-text);
|
|
349
|
+
font-weight: var(--weight-bold);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.review-form__products,
|
|
353
|
+
.review-form__rating {
|
|
354
|
+
display: grid;
|
|
355
|
+
gap: 8px;
|
|
356
|
+
padding: 0;
|
|
357
|
+
border: 0;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.review-product {
|
|
361
|
+
display: flex;
|
|
362
|
+
align-items: center;
|
|
363
|
+
gap: 10px;
|
|
364
|
+
padding: 10px 14px;
|
|
365
|
+
border: var(--border-review-product);
|
|
366
|
+
border-radius: var(--r);
|
|
367
|
+
cursor: pointer;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.review-product:has(input:checked) {
|
|
371
|
+
border-color: var(--accent);
|
|
372
|
+
background: var(--softer);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.review-product:has(input:disabled) {
|
|
376
|
+
opacity: var(--opacity-review-product-disabled);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.review-product small {
|
|
380
|
+
margin-inline-start: auto;
|
|
381
|
+
color: var(--success-text);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.star-input {
|
|
385
|
+
display: flex;
|
|
386
|
+
gap: 4px;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.star-input button {
|
|
390
|
+
color: color-mix(in oklab, var(--ink) 18%, var(--bg));
|
|
391
|
+
transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.star-input button.is-on {
|
|
395
|
+
color: var(--star);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.star-input button:hover {
|
|
399
|
+
transform: var(--motion-star-input-hover);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.review-form__media {
|
|
403
|
+
display: grid;
|
|
404
|
+
gap: 10px;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.upload-list {
|
|
408
|
+
display: flex;
|
|
409
|
+
flex-wrap: wrap;
|
|
410
|
+
gap: 10px;
|
|
411
|
+
padding: 0;
|
|
412
|
+
list-style: none;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.upload-list:empty {
|
|
416
|
+
display: none;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.upload-item {
|
|
420
|
+
position: relative;
|
|
421
|
+
display: grid;
|
|
422
|
+
gap: 4px;
|
|
423
|
+
width: 92px;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
[data-review-voice-list] .upload-item {
|
|
427
|
+
width: 100%;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.upload-item img {
|
|
431
|
+
width: 92px;
|
|
432
|
+
height: 92px;
|
|
433
|
+
border-radius: var(--r);
|
|
434
|
+
object-fit: cover;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.upload-item audio {
|
|
438
|
+
width: 100%;
|
|
439
|
+
height: 40px;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.upload-item__bar {
|
|
443
|
+
height: 4px;
|
|
444
|
+
overflow: hidden;
|
|
445
|
+
border-radius: var(--r-xs);
|
|
446
|
+
background: var(--soft);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.upload-item__bar span {
|
|
450
|
+
display: block;
|
|
451
|
+
height: 100%;
|
|
452
|
+
inline-size: 0;
|
|
453
|
+
background: var(--accent);
|
|
454
|
+
transition: var(--motion-upload-item-bar);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.upload-item[data-state="sent"] .upload-item__bar span {
|
|
458
|
+
background: var(--success);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.upload-item small {
|
|
462
|
+
color: var(--muted);
|
|
463
|
+
font-size: var(--text-upload-item);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.upload-item[data-state="failed"] small {
|
|
467
|
+
color: var(--danger-text);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.upload-item [data-remove] {
|
|
471
|
+
position: absolute;
|
|
472
|
+
inset-block-start: -8px;
|
|
473
|
+
inset-inline-end: -8px;
|
|
474
|
+
background: var(--card);
|
|
475
|
+
box-shadow: var(--shadow);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.upload-button {
|
|
479
|
+
display: inline-flex;
|
|
480
|
+
align-items: center;
|
|
481
|
+
gap: 8px;
|
|
482
|
+
min-height: 44px;
|
|
483
|
+
padding: 0 16px;
|
|
484
|
+
border: var(--border-upload-button);
|
|
485
|
+
border-radius: var(--r-pill);
|
|
486
|
+
color: var(--heading);
|
|
487
|
+
font-size: var(--text-upload-button);
|
|
488
|
+
font-weight: var(--weight-semibold);
|
|
489
|
+
cursor: pointer;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.upload-button:hover {
|
|
493
|
+
border-color: var(--accent);
|
|
494
|
+
color: var(--accent);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.upload-button--live {
|
|
498
|
+
border-style: solid;
|
|
499
|
+
border-color: var(--danger);
|
|
500
|
+
color: var(--danger-text);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.rec-dot {
|
|
504
|
+
width: 10px;
|
|
505
|
+
height: 10px;
|
|
506
|
+
border-radius: var(--r-round);
|
|
507
|
+
background: var(--danger);
|
|
508
|
+
animation: var(--motion-rec-dot);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.review-form__done {
|
|
512
|
+
display: grid;
|
|
513
|
+
justify-items: center;
|
|
514
|
+
gap: 12px;
|
|
515
|
+
padding-block: 20px;
|
|
516
|
+
text-align: center;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.review-form__done-icon {
|
|
520
|
+
display: grid;
|
|
521
|
+
place-items: center;
|
|
522
|
+
width: 68px;
|
|
523
|
+
height: 68px;
|
|
524
|
+
border-radius: var(--r-round);
|
|
525
|
+
background: var(--surface-review-form-done-icon);
|
|
526
|
+
color: var(--success-text);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
@keyframes pulse {
|
|
530
|
+
50% {
|
|
531
|
+
opacity: var(--opacity-keyframes-pulse-50pct);
|
|
532
|
+
}
|
|
533
|
+
}
|