@acms-subir/core 0.3.3-next.20260929113209 → 0.3.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/CHANGELOG.md +69 -0
- package/cli/common.mjs +2 -2
- package/cli/legacy.mjs +1 -1
- package/cli/main.mjs +82 -8
- package/cli/mobile-doctor.mjs +430 -0
- package/cli/mobile.mjs +315 -0
- package/cli/native-sections.mjs +168 -0
- package/cli/sections.mjs +186 -0
- package/cli/themes.mjs +52 -8
- package/docs/mobile.md +527 -0
- package/docs/sections.md +203 -0
- package/docs/theme-authoring.md +1 -1
- package/integration.mjs +55 -1
- package/mobile-template/client/AGENTS.md +97 -0
- package/mobile-template/client/README.md +65 -0
- package/mobile-template/client/app/_layout.tsx +56 -0
- package/mobile-template/client/app/index.tsx +21 -0
- package/mobile-template/client/app.json +21 -0
- package/mobile-template/client/components/LanguageSwitch.tsx +31 -0
- package/mobile-template/client/eas.json +21 -0
- package/mobile-template/client/env.example +3 -0
- package/mobile-template/client/gitignore +42 -0
- package/mobile-template/client/package.json +38 -0
- package/mobile-template/client/sections/index.ts +11 -0
- package/mobile-template/client/tsconfig.json +7 -0
- package/mobile-template/editor/AGENTS.md +66 -0
- package/mobile-template/editor/README.md +73 -0
- package/mobile-template/editor/app/_layout.tsx +76 -0
- package/mobile-template/editor/app/auth.tsx +13 -0
- package/mobile-template/editor/app/index.tsx +55 -0
- package/mobile-template/editor/app.json +21 -0
- package/mobile-template/editor/components/Screen.tsx +51 -0
- package/mobile-template/editor/components/SignIn.tsx +36 -0
- package/mobile-template/editor/components/TextTabs.tsx +27 -0
- package/mobile-template/editor/eas.json +21 -0
- package/mobile-template/editor/env.example +5 -0
- package/mobile-template/editor/gitignore +42 -0
- package/mobile-template/editor/lib/appearance.tsx +12 -0
- package/mobile-template/editor/lib/config.ts +17 -0
- package/mobile-template/editor/lib/format.ts +24 -0
- package/mobile-template/editor/lib/tools.ts +16 -0
- package/mobile-template/editor/package.json +40 -0
- package/mobile-template/editor/tools/README.md +2 -0
- package/mobile-template/editor/tsconfig.json +7 -0
- package/mobile-template/recipes/booking/files/app/book/[resource].tsx +57 -0
- package/mobile-template/recipes/booking/files/app/book/details.tsx +105 -0
- package/mobile-template/recipes/booking/files/app/book/index.tsx +38 -0
- package/mobile-template/recipes/booking/recipe.json +17 -0
- package/mobile-template/recipes/editor-bookings/files/app/bookings/index.tsx +113 -0
- package/mobile-template/recipes/editor-bookings/files/tools/bookings.ts +1 -0
- package/mobile-template/recipes/editor-bookings/recipe.json +8 -0
- package/mobile-template/recipes/editor-content/files/app/content/[kind]/[id].tsx +13 -0
- package/mobile-template/recipes/editor-content/files/app/content/index.tsx +76 -0
- package/mobile-template/recipes/editor-content/files/components/DocumentDetail.tsx +55 -0
- package/mobile-template/recipes/editor-content/files/tools/content.ts +1 -0
- package/mobile-template/recipes/editor-content/recipe.json +8 -0
- package/mobile-template/recipes/editor-media/files/app/media/index.tsx +73 -0
- package/mobile-template/recipes/editor-media/files/tools/media.ts +1 -0
- package/mobile-template/recipes/editor-media/recipe.json +8 -0
- package/mobile-template/recipes/editor-sections/files/app/sections/[pageId]/[sectionId].tsx +12 -0
- package/mobile-template/recipes/editor-sections/files/app/sections/index.tsx +48 -0
- package/mobile-template/recipes/editor-sections/files/components/SectionEditorPane.tsx +77 -0
- package/mobile-template/recipes/editor-sections/files/tools/sections.ts +1 -0
- package/mobile-template/recipes/editor-sections/recipe.json +8 -0
- package/mobile-template/recipes/editor-translations/files/app/translations/index.tsx +63 -0
- package/mobile-template/recipes/editor-translations/files/app/translations/review.tsx +14 -0
- package/mobile-template/recipes/editor-translations/files/components/ReviewPane.tsx +72 -0
- package/mobile-template/recipes/editor-translations/files/tools/translations.ts +1 -0
- package/mobile-template/recipes/editor-translations/recipe.json +8 -0
- package/mobile-template/recipes/editor-writer/files/app/write/[kind]/[id].tsx +132 -0
- package/mobile-template/recipes/editor-writer/files/app/write/new.tsx +61 -0
- package/mobile-template/recipes/editor-writer/files/tools/writer.ts +1 -0
- package/mobile-template/recipes/editor-writer/recipe.json +8 -0
- package/mobile-template/recipes/events/files/app/events/[slug].tsx +41 -0
- package/mobile-template/recipes/events/files/app/events/index.tsx +50 -0
- package/mobile-template/recipes/events/files/lib/addToCalendar.ts +27 -0
- package/mobile-template/recipes/events/recipe.json +15 -0
- package/mobile-template/recipes/news/files/app/news/[slug].tsx +25 -0
- package/mobile-template/recipes/news/files/app/news/index.tsx +50 -0
- package/mobile-template/recipes/news/recipe.json +13 -0
- package/mobile-template/recipes/push/files/app/notifications.tsx +64 -0
- package/mobile-template/recipes/push/files/components/PushSetup.tsx +15 -0
- package/mobile-template/recipes/push/files/lib/push.ts +15 -0
- package/mobile-template/recipes/push/recipe.json +20 -0
- package/package.json +4 -2
- package/section-library/README.md +16 -0
- package/section-library/contact/Contact.astro +49 -0
- package/section-library/contact/section.json +106 -0
- package/section-library/cta-band/CtaBand.astro +28 -0
- package/section-library/cta-band/section.json +51 -0
- package/section-library/feature-grid/FeatureGrid.astro +54 -0
- package/section-library/feature-grid/section.json +107 -0
- package/section-library/gallery/Gallery.astro +29 -0
- package/section-library/gallery/section.json +51 -0
- package/section-library/hero-banner/HeroBanner.astro +42 -0
- package/section-library/hero-banner/section.json +81 -0
- package/section-library/latest-posts/LatestPosts.astro +22 -0
- package/section-library/latest-posts/section.json +37 -0
- package/section-library/pricing/Pricing.astro +40 -0
- package/section-library/pricing/section.json +117 -0
- package/section-library/questions/Questions.astro +38 -0
- package/section-library/questions/section.json +69 -0
- package/section-library/service-times/ServiceTimes.astro +42 -0
- package/section-library/service-times/section.json +127 -0
- package/section-library/team/Team.astro +45 -0
- package/section-library/team/section.json +88 -0
- package/section-library/upcoming-events/UpcomingEvents.astro +54 -0
- package/section-library/upcoming-events/section.json +51 -0
- package/src/actions/index.ts +19 -171
- package/src/components/AiSettings.tsx +45 -5
- package/src/components/DesignManager.tsx +112 -16
- package/src/components/MobileApp.tsx +392 -0
- package/src/components/ThemeSections.astro +40 -21
- package/src/components/ThemeSectionsEditor.tsx +757 -229
- package/src/components/editor/PostEditor.tsx +174 -10
- package/src/components/import/ImportExport.tsx +4 -1
- package/src/components/import/runner.ts +1 -0
- package/src/components/sections/SectionFields.tsx +560 -0
- package/src/components/sections/SectionPicker.tsx +120 -0
- package/src/components/sections/TranslationPanel.tsx +143 -0
- package/src/components/sections/checks.ts +64 -0
- package/src/layouts/Admin.astro +6 -1
- package/src/layouts/Site.astro +107 -19
- package/src/lib/agent-discovery.ts +11 -7
- package/src/lib/agent.ts +35 -2
- package/src/lib/ai-schema.ts +5 -0
- package/src/lib/ai.ts +5 -0
- package/src/lib/api.ts +12 -0
- package/src/lib/content-service.ts +198 -0
- package/src/lib/design-service.ts +153 -5
- package/src/lib/drafts.ts +3 -3
- package/src/lib/editor/auth.ts +264 -0
- package/src/lib/editor/bookings.ts +60 -0
- package/src/lib/editor/config.ts +25 -0
- package/src/lib/editor/documents.ts +227 -0
- package/src/lib/editor/http.ts +48 -0
- package/src/lib/editor/me.ts +30 -0
- package/src/lib/editor/migration.ts +57 -0
- package/src/lib/editor/next.ts +11 -0
- package/src/lib/editor/openapi.ts +124 -0
- package/src/lib/editor/schemas.ts +91 -0
- package/src/lib/editor/sections.ts +96 -0
- package/src/lib/editor/store.ts +184 -0
- package/src/lib/editor/token-route.ts +74 -0
- package/src/lib/editor/translations.ts +163 -0
- package/src/lib/email/accounts.ts +2 -1
- package/src/lib/email/types.ts +2 -1
- package/src/lib/home-source.ts +34 -0
- package/src/lib/i18n.ts +34 -0
- package/src/lib/import/apply.ts +31 -2
- package/src/lib/import/bundle.ts +4 -0
- package/src/lib/import/export.ts +1 -0
- package/src/lib/import/ghost.ts +1 -0
- package/src/lib/media/upload.ts +83 -0
- package/src/lib/mobile/associations.ts +25 -0
- package/src/lib/mobile/calendar.ts +19 -11
- package/src/lib/mobile/config.mjs +59 -0
- package/src/lib/mobile/content.ts +18 -13
- package/src/lib/mobile/embed.ts +83 -0
- package/src/lib/mobile/http.ts +8 -6
- package/src/lib/mobile/locale.ts +18 -0
- package/src/lib/mobile/openapi.ts +111 -0
- package/src/lib/mobile/pages.ts +71 -0
- package/src/lib/mobile/route.ts +3 -3
- package/src/lib/mobile/schemas.ts +60 -0
- package/src/lib/mobile/site.ts +41 -0
- package/src/lib/push/api.ts +158 -0
- package/src/lib/push/config.ts +20 -0
- package/src/lib/push/expo.ts +76 -0
- package/src/lib/push/migration.ts +60 -0
- package/src/lib/push/service.ts +302 -0
- package/src/lib/push/store.ts +144 -0
- package/src/lib/push/types.ts +43 -0
- package/src/lib/repo/migrations.ts +11 -0
- package/src/lib/repo/sql.ts +40 -7
- package/src/lib/repo/types.ts +9 -3
- package/src/lib/roles.ts +5 -0
- package/src/lib/scheduler.ts +3 -0
- package/src/lib/schema.ts +27 -1
- package/src/lib/section-ai.ts +55 -0
- package/src/lib/section-targets.ts +62 -0
- package/src/lib/sections-agent.ts +146 -0
- package/src/lib/sections.ts +217 -0
- package/src/lib/theme.ts +16 -1
- package/src/lib/translate.ts +97 -0
- package/src/lib/translations.ts +39 -0
- package/src/middleware.ts +32 -0
- package/src/pages/.well-known/apple-app-site-association.ts +6 -0
- package/src/pages/.well-known/assetlinks.json.ts +6 -0
- package/src/pages/[...slug].astro +8 -3
- package/src/pages/admin/app-auth.astro +159 -0
- package/src/pages/admin/c/[collection]/[id].astro +9 -0
- package/src/pages/admin/calendar/events/[id].astro +9 -0
- package/src/pages/admin/login.astro +6 -2
- package/src/pages/admin/logout.ts +5 -2
- package/src/pages/admin/mobile.astro +18 -0
- package/src/pages/admin/pages/[id].astro +62 -0
- package/src/pages/admin/section-preview.astro +61 -0
- package/src/pages/admin/users.astro +107 -11
- package/src/pages/api/agent/docs.ts +6 -2
- package/src/pages/api/agent/index.ts +1 -1
- package/src/pages/api/ai/settings.ts +7 -4
- package/src/pages/api/design/ai.ts +15 -0
- package/src/pages/api/design/index.ts +12 -42
- package/src/pages/api/design/translate.ts +15 -0
- package/src/pages/api/live/thumb.ts +1 -1
- package/src/pages/api/mcp.ts +2 -2
- package/src/pages/api/media/upload.ts +10 -78
- package/src/pages/api/push/admin.ts +27 -0
- package/src/pages/api/v1/admin/bookings/[id]/[action].ts +14 -0
- package/src/pages/api/v1/admin/bookings/index.ts +6 -0
- package/src/pages/api/v1/admin/documents/[kind]/[id]/[action].ts +17 -0
- package/src/pages/api/v1/admin/documents/[kind]/[id]/index.ts +20 -0
- package/src/pages/api/v1/admin/documents/[kind]/[id]/translations/[locale]/[action].ts +26 -0
- package/src/pages/api/v1/admin/documents/[kind]/[id]/translations/[locale]/index.ts +18 -0
- package/src/pages/api/v1/admin/documents/index.ts +13 -0
- package/src/pages/api/v1/admin/me.ts +6 -0
- package/src/pages/api/v1/admin/media/index.ts +32 -0
- package/src/pages/api/v1/admin/sections/[pageId]/[sectionId]/index.ts +14 -0
- package/src/pages/api/v1/admin/sections/[pageId]/[sectionId]/publish.ts +14 -0
- package/src/pages/api/v1/admin/sections/[pageId]/[sectionId]/translations/[locale]/[action].ts +22 -0
- package/src/pages/api/v1/admin/sections/[pageId]/[sectionId]/translations/[locale]/index.ts +14 -0
- package/src/pages/api/v1/admin/sections/index.ts +6 -0
- package/src/pages/api/v1/auth/revoke.ts +5 -0
- package/src/pages/api/v1/auth/token.ts +5 -0
- package/src/pages/api/v1/devices/[token].ts +20 -0
- package/src/pages/api/v1/devices/index.ts +17 -0
- package/src/pages/api/v1/openapi.json.ts +7 -0
- package/src/pages/api/v1/pages/[...slug].ts +7 -0
- package/src/pages/api/v1/pages/home.ts +7 -0
- package/src/pages/api/v1/push/topics.ts +7 -0
- package/src/pages/api/v1/site.ts +7 -0
- package/src/pages/api/v1/theme.ts +7 -0
- package/src/pages/blog/[slug].astro +8 -2
- package/src/pages/blog/index.astro +11 -4
- package/src/pages/embed/section/[...path].astro +42 -0
- package/src/pages/events/[slug].astro +7 -2
- package/src/pages/index.astro +11 -5
- package/src/pages/sitemap.xml.ts +8 -0
- package/src/styles/admin.css +69 -0
- package/src/styles/editor.css +21 -0
- package/src/styles/mobile-app.css +151 -0
- package/src/styles/sections.css +7 -1
- package/src/styles/theme-editor.css +255 -0
- package/src/theme-sdk/contract.d.mts +2193 -89
- package/src/theme-sdk/contract.mjs +77 -20
- package/src/theme-sdk/fields.d.mts +88 -0
- package/src/theme-sdk/fields.mjs +326 -0
- package/src/theme-sdk/index.ts +10 -2
- package/src/theme-sdk/tokens.d.mts +11 -0
- package/src/virtual.d.ts +1 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* Admin → Mobile app island. Scoped under .ma; admin.css tokens only, except
|
|
2
|
+
the lock-screen preview, which shows a phone (fixed device colors, like the
|
|
3
|
+
site previews). No pills: statuses are colored text, controls 10–12px rects. */
|
|
4
|
+
.ma { display: flex; flex-direction: column; gap: 16px; }
|
|
5
|
+
.ma .card + .card { margin-top: 0; }
|
|
6
|
+
.ma code { font-family: ui-monospace, 'SF Mono', monospace; font-size: 12px; }
|
|
7
|
+
.ma .flash { margin: 4px 0 0; }
|
|
8
|
+
.ma-kpis { margin-bottom: 2px; }
|
|
9
|
+
.ma-notice { margin: 0; }
|
|
10
|
+
.ma-notice b { font-size: 13.5px; }
|
|
11
|
+
.ma-notice p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
|
|
12
|
+
.ma-notice code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
|
|
13
|
+
.ma-head { margin-bottom: 14px; }
|
|
14
|
+
.ma-head h2 { font-size: 14.5px; margin: 0; letter-spacing: -0.01em; }
|
|
15
|
+
.ma-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; max-width: 64ch; }
|
|
16
|
+
.ma-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
|
|
17
|
+
.ma-foot { margin: 0 2px; line-height: 1.5; }
|
|
18
|
+
|
|
19
|
+
/* skeleton */
|
|
20
|
+
.ma-skel { display: grid; gap: 12px; }
|
|
21
|
+
.ma-skel i { display: block; height: 64px; border-radius: var(--r-lg); background: var(--panel-2); animation: ma-pulse 1.2s ease-in-out infinite alternate; }
|
|
22
|
+
.ma-skel i:nth-child(2) { height: 360px; }
|
|
23
|
+
@keyframes ma-pulse { to { opacity: 0.45; } }
|
|
24
|
+
@media (prefers-reduced-motion: reduce) { .ma-skel i { animation: none; } }
|
|
25
|
+
|
|
26
|
+
/* composer */
|
|
27
|
+
.ma-compose { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
|
|
28
|
+
.ma-compose-form { min-width: 0; }
|
|
29
|
+
.ma label.field > span { display: flex; justify-content: space-between; gap: 8px; }
|
|
30
|
+
.ma-count { font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 400; }
|
|
31
|
+
.ma-linkhint { margin: -6px 0 12px; }
|
|
32
|
+
.ma-audience { border: 0; padding: 0; margin: 2px 0 14px; min-width: 0; }
|
|
33
|
+
.ma-audience legend { font-size: 12px; color: var(--muted); font-weight: 500; padding: 0; margin-bottom: 6px; }
|
|
34
|
+
.ma-audience .seg > button { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 7px; cursor: pointer; }
|
|
35
|
+
.ma-audience .seg > button[aria-selected='true'] { color: var(--text); }
|
|
36
|
+
.ma-audience .seg > button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
37
|
+
.ma-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
|
|
38
|
+
.ma-opt { display: flex; align-items: center; gap: 9px; padding: 9px 11px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel); cursor: pointer; font-size: 13px; }
|
|
39
|
+
.ma-opt:hover { background: var(--hover); }
|
|
40
|
+
.ma-opt.on { background: var(--sel); color: var(--text); font-weight: 600; }
|
|
41
|
+
.ma-opt:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
42
|
+
.ma-opt input { accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
|
|
43
|
+
.ma-opt span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
44
|
+
.ma-opt em { font-style: normal; font-weight: 500; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
45
|
+
.ma-send { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 12px; }
|
|
46
|
+
.ma-reach { color: var(--text-2); font-size: 13px; }
|
|
47
|
+
.ma-confirm { background: var(--panel-2); border-radius: var(--r-md); padding: 11px 13px; font-size: 13px; }
|
|
48
|
+
.ma-confirm b { display: block; }
|
|
49
|
+
.ma-confirm p { margin: 3px 0 6px; color: var(--text-2); overflow-wrap: anywhere; }
|
|
50
|
+
.ma-confirm small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
|
|
51
|
+
|
|
52
|
+
/* lock screen preview (device colors) */
|
|
53
|
+
.ma-preview { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: 72px; }
|
|
54
|
+
.ma-preview figcaption { border-top: 1px solid var(--line); padding-top: 10px; align-self: stretch; }
|
|
55
|
+
.ma-preview figcaption { text-align: center; }
|
|
56
|
+
/* the top of a phone: the lock screen is all that matters */
|
|
57
|
+
.ma-phone { width: 100%; max-width: 280px; height: 350px; border-radius: 42px 42px 0 0; padding: 9px 9px 0; background: #1d1c1a; box-shadow: inset 0 0 0 1px #34322e; }
|
|
58
|
+
.ma-phone-screen { height: 100%; border-radius: 34px 34px 0 0; background: #33424b; color: #f7f5f2; display: flex; flex-direction: column; align-items: center; padding: 46px 11px 16px; overflow: hidden; }
|
|
59
|
+
.ma-clock { text-align: center; }
|
|
60
|
+
.ma-clock small { display: block; font-size: 13px; font-weight: 500; opacity: 0.88; }
|
|
61
|
+
.ma-clock b { display: block; font-size: 62px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
|
|
62
|
+
.ma-note { margin-top: 30px; width: 100%; background: rgb(246 245 243 / 86%); color: #1c1b19; border-radius: 18px; padding: 10px 12px 11px; box-shadow: 0 6px 18px rgb(0 0 0 / 18%); }
|
|
63
|
+
.ma-note-top { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #5d5a55; margin-bottom: 5px; }
|
|
64
|
+
.ma-appicon { width: 20px; height: 20px; border-radius: 5px; background: #fdfcfb; color: #3b3935; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); }
|
|
65
|
+
.ma-appicon svg { width: 13px; height: 13px; }
|
|
66
|
+
.ma-appicon img { width: 100%; height: 100%; object-fit: cover; }
|
|
67
|
+
.ma-appname { font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
68
|
+
.ma-now { margin-left: auto; flex: 0 0 auto; }
|
|
69
|
+
.ma-note-title { display: block; font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
70
|
+
.ma-note-body { margin: 1px 0 0; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
|
|
71
|
+
|
|
72
|
+
/* automatic rules */
|
|
73
|
+
.ma-rule { padding: 14px 0; border-top: 1px solid var(--line); }
|
|
74
|
+
.ma-rule:first-child { border-top: 0; padding-top: 0; }
|
|
75
|
+
.ma-rule-head b { display: block; font-size: 13.5px; }
|
|
76
|
+
.ma-rule-head small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
|
|
77
|
+
.ma-choices { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
|
|
78
|
+
.ma-check { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; font-size: 13px; color: var(--text-2); cursor: pointer; }
|
|
79
|
+
.ma-check input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
|
|
80
|
+
.ma-check:has(input:disabled) { cursor: default; opacity: 0.6; }
|
|
81
|
+
.ma-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
|
|
82
|
+
.ma-lead { max-width: 240px; margin: 10px 0 0; }
|
|
83
|
+
.ma .form-actions { margin-top: 6px; }
|
|
84
|
+
.ma-saved { color: var(--green); font-size: 12.5px; font-weight: 500; }
|
|
85
|
+
|
|
86
|
+
/* following */
|
|
87
|
+
.ma-bars { list-style: none; margin: 0; padding: 0; }
|
|
88
|
+
.ma-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 48px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
|
|
89
|
+
.ma-bars li:last-child { border-bottom: 0; }
|
|
90
|
+
.ma-bar-label { min-width: 0; overflow-wrap: anywhere; }
|
|
91
|
+
.ma-bar-label code { display: block; font-size: 11px; color: var(--faint); }
|
|
92
|
+
.ma-bar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
|
|
93
|
+
.ma-bar i { display: block; height: 100%; background: var(--muted); border-radius: 3px; }
|
|
94
|
+
.ma-bars b { text-align: right; font-variant-numeric: tabular-nums; }
|
|
95
|
+
.ma-aud-note { margin: 12px 0 0; }
|
|
96
|
+
|
|
97
|
+
/* delivery log */
|
|
98
|
+
.ma-log-head { padding-bottom: 0; margin-bottom: 4px; }
|
|
99
|
+
.ma-scroll { overflow-x: auto; }
|
|
100
|
+
.ma-table td { vertical-align: top; font-size: 13px; }
|
|
101
|
+
.ma-table th:first-child, .ma-table td:first-child { padding-left: 20px; }
|
|
102
|
+
.ma-when { white-space: nowrap; color: var(--muted); }
|
|
103
|
+
.ma-body { color: var(--text-2); font-size: 12.5px; max-width: 52ch; margin-top: 1px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
104
|
+
.ma-url { font-family: ui-monospace, 'SF Mono', monospace; font-size: 11.5px; overflow-wrap: anywhere; margin-top: 2px; }
|
|
105
|
+
.ma-aud { color: var(--text-2); min-width: 110px; }
|
|
106
|
+
.ma-result { white-space: nowrap; }
|
|
107
|
+
.ma-table th.num { text-align: right; }
|
|
108
|
+
.ma-result small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
|
|
109
|
+
.ma-result .ma-err { color: var(--red); white-space: normal; max-width: 220px; margin-left: auto; overflow-wrap: anywhere; }
|
|
110
|
+
.ma-st { font-weight: 600; font-size: 12.5px; color: var(--muted); }
|
|
111
|
+
.ma-st[data-tone='ok'] { color: var(--green); }
|
|
112
|
+
.ma-st[data-tone='warn'] { color: var(--amber); }
|
|
113
|
+
.ma-st[data-tone='bad'] { color: var(--red); }
|
|
114
|
+
.ma-st[data-tone='info'] { color: var(--blue); }
|
|
115
|
+
.ma-empty { margin: 0; padding: 14px 20px 22px; color: var(--muted); }
|
|
116
|
+
|
|
117
|
+
@media (max-width: 1100px) {
|
|
118
|
+
.ma-grid-2 { grid-template-columns: 1fr; }
|
|
119
|
+
}
|
|
120
|
+
@media (max-width: 900px) {
|
|
121
|
+
.ma-compose { grid-template-columns: 1fr; gap: 20px; }
|
|
122
|
+
.ma-preview { position: static; }
|
|
123
|
+
.ma-phone { max-width: 260px; height: 300px; }
|
|
124
|
+
.ma-clock b { font-size: 52px; }
|
|
125
|
+
}
|
|
126
|
+
@media (max-width: 767px) {
|
|
127
|
+
.ma-send { flex-direction: column; align-items: stretch; }
|
|
128
|
+
.ma-send .btn { justify-content: center; min-height: 44px; }
|
|
129
|
+
.ma-reach { text-align: center; }
|
|
130
|
+
.ma-topics { grid-template-columns: 1fr; }
|
|
131
|
+
.ma-audience .seg { display: flex; }
|
|
132
|
+
.ma-audience .seg > button { flex: 1; min-height: 36px; }
|
|
133
|
+
.ma-lead { max-width: none; }
|
|
134
|
+
}
|
|
135
|
+
@media (max-width: 1000px) {
|
|
136
|
+
/* log rows become stacked cards */
|
|
137
|
+
.ma-log { background: none; border: 0; box-shadow: none; }
|
|
138
|
+
.ma-log-head { padding: 0; }
|
|
139
|
+
.ma-scroll { overflow: visible; }
|
|
140
|
+
.ma-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
|
|
141
|
+
.ma-table, .ma-table tbody, .ma-table tr, .ma-table td { display: block; width: 100%; }
|
|
142
|
+
.ma-table tr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; padding: 6px 0; }
|
|
143
|
+
.ma-table td, .ma-table td:first-child { border: 0; padding: 4px 12px; text-align: left; }
|
|
144
|
+
.ma-table td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
|
|
145
|
+
.ma-table tr:hover td { background: none; }
|
|
146
|
+
.ma-result .ma-err { margin-left: 0; max-width: none; }
|
|
147
|
+
.ma-empty { padding: 4px 0 8px; }
|
|
148
|
+
.ma-result { white-space: normal; }
|
|
149
|
+
.ma-table td.num { text-align: left; }
|
|
150
|
+
.ma-result .ma-err { margin-left: 0; max-width: none; }
|
|
151
|
+
}
|
package/src/styles/sections.css
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/* a section page is a layout, not an article: break out of the reading column
|
|
2
|
+
to the theme's wide width (same frame as the header); sections decide their
|
|
3
|
+
own inner measure. Prose from the page itself keeps the reading width. */
|
|
4
|
+
.acms-sections{display:grid;gap:calc(3rem * var(--density,1));margin-block:2rem;margin-inline:calc((100% - min(var(--wide-width), 100vw - 2 * var(--gutter))) / 2)}
|
|
5
|
+
.section-page-content>.page-body{max-width:var(--content-width);margin-inline:auto}
|
|
2
6
|
.acms-section{padding:clamp(1rem,4vw,3rem);border-radius:var(--r-lg);min-width:0}
|
|
3
7
|
.acms-section h2{font-family:var(--font-heading);font-size:clamp(1.7rem,4vw,3rem);line-height:1.15}
|
|
4
8
|
.section-text{white-space:pre-line;max-width:65ch;color:var(--muted)}
|
|
9
|
+
.acms-section>.section-copy{max-width:48rem}
|
|
5
10
|
.section-hero.variant-split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:2rem}
|
|
6
11
|
.section-hero.variant-centered{text-align:center}.section-hero.variant-centered .section-text{margin-inline:auto}
|
|
7
12
|
.section-image{width:100%;max-height:32rem;object-fit:cover;border-radius:var(--r)}
|
|
@@ -10,3 +15,4 @@
|
|
|
10
15
|
.section-items>article:not(.post-card),.section-items>details{background:var(--panel);padding:1.25rem;border:1px solid var(--line);border-radius:var(--r)}
|
|
11
16
|
.section-items summary{cursor:pointer;font-weight:600}.section-cta.variant-panel{background:var(--soft)}
|
|
12
17
|
@media(max-width:640px){.section-hero.variant-split{grid-template-columns:1fr}.acms-section{padding:1rem}}
|
|
18
|
+
.acms-off-schedule{opacity:.55;outline:2px dashed var(--line-2,#ccc);outline-offset:-2px}
|
|
@@ -118,6 +118,105 @@
|
|
|
118
118
|
.da-scopes-set .check-row code { color: var(--muted); }
|
|
119
119
|
.da-scopes-set .check-row small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
|
|
120
120
|
|
|
121
|
+
|
|
122
|
+
/* ---- sections v2: grip, markers, variants, presets ---- */
|
|
123
|
+
.te-grip {
|
|
124
|
+
flex-shrink: 0; width: 22px; height: 30px; margin-left: 4px; border: 0; background: none; border-radius: 6px;
|
|
125
|
+
color: var(--faint); font-size: 12px; letter-spacing: -2px; cursor: grab; touch-action: none;
|
|
126
|
+
}
|
|
127
|
+
.te-grip:hover { color: var(--muted); background: var(--hover); }
|
|
128
|
+
.te-grip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
129
|
+
.te-sec .te-sec-toggle { padding-left: 4px; }
|
|
130
|
+
.te-sec.is-dragging, .te-row.is-dragging { position: relative; z-index: 2; box-shadow: var(--shadow-md, 0 6px 20px rgb(0 0 0 / 12%)); background: var(--panel); }
|
|
131
|
+
.te-mark { flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 0 4px; }
|
|
132
|
+
.te-mark.is-coded { color: var(--blue); }
|
|
133
|
+
.te-mark.is-linked { color: var(--green); }
|
|
134
|
+
.te-desc { margin-top: 0; }
|
|
135
|
+
.te-help { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
|
|
136
|
+
.te-warn { color: var(--amber); }
|
|
137
|
+
.te-variants { margin-bottom: 14px; }
|
|
138
|
+
.te-variants > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
|
|
139
|
+
.te-variants .seg { flex-wrap: wrap; }
|
|
140
|
+
.te-variants .seg > button { text-transform: capitalize; }
|
|
141
|
+
.te-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 10px 0 12px; }
|
|
142
|
+
.te-preset {
|
|
143
|
+
display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 12px;
|
|
144
|
+
border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; font: inherit;
|
|
145
|
+
}
|
|
146
|
+
.te-preset:hover { background: var(--accent-soft); border-color: transparent; }
|
|
147
|
+
.te-preset:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
148
|
+
.te-preset b { font-size: 13.5px; font-weight: 600; }
|
|
149
|
+
.te-preset span { font-size: 12px; color: var(--muted); line-height: 1.45; }
|
|
150
|
+
.te-preset-more { margin-top: 14px; font-size: 13px; }
|
|
151
|
+
.te-preset-more summary { cursor: pointer; color: var(--muted); }
|
|
152
|
+
.te-orphans, .te-sec-body .notice.warn { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
|
|
153
|
+
.te-orphans .btn, .te-sec-body .notice.warn .btn { flex-shrink: 0; }
|
|
154
|
+
.te-publish-one { order: -1; }
|
|
155
|
+
.te-sec-foot .te-publish-one + * { margin-left: 0; }
|
|
156
|
+
|
|
157
|
+
/* ---- field types ---- */
|
|
158
|
+
.te fieldset.field { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
|
|
159
|
+
.te fieldset.field > legend { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 5px; padding: 0; display: flex; gap: 6px; align-items: baseline; }
|
|
160
|
+
.te-count { font-weight: 400; color: var(--faint); font-variant-numeric: tabular-nums; }
|
|
161
|
+
|
|
162
|
+
.te-toggle-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
|
|
163
|
+
.te-toggle-field > label { font-size: 13px; color: var(--text); cursor: pointer; }
|
|
164
|
+
.te-toggle-field > .te-help { flex-basis: 100%; margin-top: 0; }
|
|
165
|
+
.te-switch { width: 32px; height: 18px; border-radius: 6px; border: 0; padding: 0; background: var(--line-strong); position: relative; cursor: pointer; flex: 0 0 auto; transition: background 0.15s; }
|
|
166
|
+
.te-switch i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 25%); transition: left 0.15s; }
|
|
167
|
+
.te-switch.on { background: var(--accent); }
|
|
168
|
+
.te-switch.on i { left: 16px; }
|
|
169
|
+
.te-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
170
|
+
|
|
171
|
+
.te-link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px; }
|
|
172
|
+
.te-link-url { margin-top: 6px; width: 100%; }
|
|
173
|
+
|
|
174
|
+
.te-source-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
|
|
175
|
+
.te-source-row > select { flex: 1 1 140px; min-width: 0; }
|
|
176
|
+
.te-source-limit { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
|
|
177
|
+
.te-source-limit input { width: 64px; }
|
|
178
|
+
.te-linked { margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: var(--green-soft); font-size: 12.5px; color: var(--text-2); }
|
|
179
|
+
.te-linked b { color: var(--green); font-weight: 600; }
|
|
180
|
+
|
|
181
|
+
.te-rich { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--panel); overflow: hidden; }
|
|
182
|
+
.te-rich:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
183
|
+
.te-rich-bar { display: flex; gap: 2px; padding: 3px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
|
|
184
|
+
.te-rich-btn { min-width: 28px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: 600 12.5px/1 inherit; cursor: pointer; }
|
|
185
|
+
.te-rich-btn:hover { background: var(--hover); }
|
|
186
|
+
.te-rich-btn.on { background: var(--bg); color: var(--accent-deep); box-shadow: var(--shadow-sm); }
|
|
187
|
+
.te-rich-body { min-height: 84px; padding: 8px 10px; font-size: 13.5px; line-height: 1.55; outline: none; }
|
|
188
|
+
.te-rich-body p { margin: 0 0 8px; }
|
|
189
|
+
.te-rich-body ul, .te-rich-body ol { margin: 0 0 8px; padding-left: 20px; }
|
|
190
|
+
.te-rich-body a { color: var(--accent-deep); }
|
|
191
|
+
.te-rich-field > label > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
|
|
192
|
+
|
|
193
|
+
/* ---- list (repeater) ---- */
|
|
194
|
+
.te-rows { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); overflow: hidden; }
|
|
195
|
+
.te-rows-empty { padding: 10px 12px; margin: 0; }
|
|
196
|
+
.te-row + .te-row, .te-rows-empty + .te-row { border-top: 1px solid var(--line); }
|
|
197
|
+
.te-row-head { display: flex; align-items: center; gap: 2px; padding-right: 8px; }
|
|
198
|
+
.te-row-title {
|
|
199
|
+
flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 9px 4px; font: inherit; font-size: 13px;
|
|
200
|
+
color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
201
|
+
}
|
|
202
|
+
.te-row-title:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ring); border-radius: 6px; }
|
|
203
|
+
.te-row-chev { width: 14px; height: 14px; color: var(--faint); transition: transform 150ms ease-out; }
|
|
204
|
+
.te-row.is-open { background: var(--panel); }
|
|
205
|
+
.te-row.is-open .te-row-title { font-weight: 600; }
|
|
206
|
+
.te-row.is-open .te-row-chev { transform: rotate(90deg); }
|
|
207
|
+
.te-row-body { padding: 4px 12px 10px 30px; }
|
|
208
|
+
.te-row-body .field:last-of-type { margin-bottom: 8px; }
|
|
209
|
+
.te-row-foot { display: flex; gap: 6px; align-items: center; }
|
|
210
|
+
.te-row-foot .te-delete { margin-right: auto; }
|
|
211
|
+
.te-row-add {
|
|
212
|
+
display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: var(--panel);
|
|
213
|
+
padding: 9px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-deep); cursor: pointer;
|
|
214
|
+
}
|
|
215
|
+
.te-rows-empty + .te-row-add, .te-rows > .te-row-add:first-child { border-top: 0; }
|
|
216
|
+
.te-row-add:hover:not(:disabled) { background: var(--accent-soft); }
|
|
217
|
+
.te-row-add:disabled { color: var(--faint); cursor: default; }
|
|
218
|
+
.te-sheet-backdrop, .te-sheet-head, .te-sheet-done { display: none; }
|
|
219
|
+
|
|
121
220
|
@media (max-width: 767px) {
|
|
122
221
|
.te-tabs > [role='tab'] { min-height: 36px; font-size: 13px; }
|
|
123
222
|
.te-pagebar { flex-wrap: wrap; }
|
|
@@ -132,4 +231,160 @@
|
|
|
132
231
|
.te-review li .btn { grid-row: 1 / span 2; grid-column: 2; }
|
|
133
232
|
.da-token-row { flex-wrap: wrap; }
|
|
134
233
|
.da-token-row input { flex-basis: 100%; }
|
|
234
|
+
.te-link-row { grid-template-columns: 1fr; }
|
|
235
|
+
.te-grip { width: 30px; height: 36px; }
|
|
236
|
+
.te-row-title { padding: 12px 4px; }
|
|
237
|
+
/* list rows edit in a bottom sheet on phones */
|
|
238
|
+
.te-row.is-open { background: none; }
|
|
239
|
+
.te-sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 1190; background: rgb(20 18 15 / 35%); }
|
|
240
|
+
.te-row-body {
|
|
241
|
+
position: fixed; left: 0; right: 0; bottom: 0; z-index: 1191; max-height: 82vh; overflow-y: auto;
|
|
242
|
+
padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--panel);
|
|
243
|
+
border-radius: 18px 18px 0 0; box-shadow: 0 -8px 28px rgb(0 0 0 / 16%);
|
|
244
|
+
}
|
|
245
|
+
.te-row-body::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 10px; }
|
|
246
|
+
.te-sheet-head { display: block; font-size: 15px; margin-bottom: 12px; }
|
|
247
|
+
.te-sheet-done { display: inline-flex; }
|
|
248
|
+
.te-row-foot { position: sticky; bottom: 0; padding-top: 10px; background: var(--panel); }
|
|
249
|
+
.te-row-foot .btn { min-height: 38px; }
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* ---- inline validation + save bar ---- */
|
|
253
|
+
.te-field.has-issue input, .te-field.has-issue select, .te-field.has-issue textarea, .te-field.has-issue .te-rich, .te-field.has-issue .te-rows { border-color: var(--red); }
|
|
254
|
+
.te-error { display: block; margin: -6px 0 12px; font-size: 12px; color: var(--red); }
|
|
255
|
+
.te-issue-mark { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--red); padding: 0 4px; }
|
|
256
|
+
.te-issue-link { border: 0; background: none; padding: 0; font: inherit; color: var(--red); text-decoration: underline; cursor: pointer; }
|
|
257
|
+
.te-savebar .btn[disabled] { opacity: .45; }
|
|
258
|
+
.te-help-panel { margin: -4px 0 14px; font-size: 13px; color: var(--text-2); }
|
|
259
|
+
.te-help-panel summary { cursor: pointer; color: var(--accent-deep); font-weight: 600; width: fit-content; }
|
|
260
|
+
.te-help-panel ul { margin: 8px 0 0; padding: 10px 14px 10px 30px; background: var(--panel-2); border-radius: 10px; line-height: 1.55; }
|
|
261
|
+
.te-help-panel li + li { margin-top: 4px; }
|
|
262
|
+
|
|
263
|
+
/* ---- quick wins: picker, schedule, more menu, reset, counters ---- */
|
|
264
|
+
.te-add { align-items: center; }
|
|
265
|
+
dialog.modal.te-picker { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: none; flex-direction: column; }
|
|
266
|
+
dialog.modal.te-picker[open] { display: flex; }
|
|
267
|
+
.te-picker .modal-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
|
|
268
|
+
.te-picker-search { flex: 1; max-width: 320px; margin-left: auto; }
|
|
269
|
+
.te-picker-body { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 20px; overflow: hidden; min-height: 0; flex: 1; }
|
|
270
|
+
.te-picker-cats { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
|
|
271
|
+
.te-picker-cats button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; }
|
|
272
|
+
.te-picker-cats button:hover { background: var(--hover); }
|
|
273
|
+
.te-picker-cats button.on { background: var(--sel); color: var(--text); font-weight: 600; }
|
|
274
|
+
.te-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); grid-auto-rows: max-content; gap: 12px; overflow-y: auto; align-content: start; padding: 2px; }
|
|
275
|
+
.te-tile { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); cursor: pointer; font: inherit; color: var(--text); }
|
|
276
|
+
.te-tile:hover { border-color: var(--line-strong); }
|
|
277
|
+
.te-tile.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
278
|
+
.te-tile.is-full { opacity: .5; cursor: not-allowed; }
|
|
279
|
+
.te-tile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
280
|
+
.te-thumb-frame { display: block; flex-shrink: 0; position: relative; width: 100%; aspect-ratio: 1280 / 760; overflow: hidden; background: var(--panel-2); border-bottom: 1px solid var(--line); pointer-events: none; }
|
|
281
|
+
.te-thumb-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
|
|
282
|
+
.te-tile-text { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 11px; font-size: 12.5px; }
|
|
283
|
+
.te-tile-text b { font-size: 13.5px; }
|
|
284
|
+
.te-tile-text span { color: var(--muted); line-height: 1.4; }
|
|
285
|
+
.te-tile-text em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--blue); margin-top: 2px; }
|
|
286
|
+
.te-picker-foot { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
|
|
287
|
+
@media (max-width: 720px) {
|
|
288
|
+
dialog.modal.te-picker { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
|
|
289
|
+
.te-picker .modal-head { flex-wrap: wrap; }
|
|
290
|
+
.te-picker-search { order: 3; flex-basis: 100%; max-width: none; }
|
|
291
|
+
.te-picker-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
|
|
292
|
+
.te-picker-cats { flex-direction: row; overflow-x: auto; }
|
|
293
|
+
.te-picker-cats button { white-space: nowrap; }
|
|
294
|
+
.te-picker-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
|
|
295
|
+
}
|
|
296
|
+
.te-schedule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--blue-soft); font-size: 12.5px; }
|
|
297
|
+
.te-schedule-title { font-weight: 600; color: var(--blue); flex-basis: 100%; }
|
|
298
|
+
.te-schedule label { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
|
|
299
|
+
.te-schedule-state { flex-basis: 100%; margin: 0; }
|
|
300
|
+
.te-more { position: relative; }
|
|
301
|
+
.te-more > summary { list-style: none; }
|
|
302
|
+
.te-more > summary::-webkit-details-marker { display: none; }
|
|
303
|
+
.te-more-menu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20; min-width: 200px; display: flex; flex-direction: column; padding: 4px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-pop, 0 8px 24px rgb(0 0 0 / 10%)); }
|
|
304
|
+
.te-more-menu button, .te-more-menu label { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 7px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
|
|
305
|
+
.te-more-menu label { display: flex; flex-direction: column; gap: 4px; cursor: default; }
|
|
306
|
+
.te-more-menu button:hover { background: var(--hover); }
|
|
307
|
+
.te-field { position: relative; }
|
|
308
|
+
.te-reset { position: absolute; top: 0; right: 0; z-index: 1; border: 0; background: none; padding: 0 2px; font: inherit; font-size: 11.5px; color: var(--faint); cursor: pointer; }
|
|
309
|
+
.te-reset:hover { color: var(--accent-deep); text-decoration: underline; }
|
|
310
|
+
.te-label { display: flex !important; align-items: baseline; gap: 6px; }
|
|
311
|
+
.te-req { font-style: normal; font-size: 11px; color: var(--faint); }
|
|
312
|
+
.te-count-chars { margin-left: auto; margin-right: 44px; font-weight: 500; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
|
|
313
|
+
.te-count-chars.is-over { color: var(--red); font-weight: 700; }
|
|
314
|
+
.dm-checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
|
|
315
|
+
.dm-checklist li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
|
|
316
|
+
.dm-check-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
|
|
317
|
+
.dm-checklist li.is-error .dm-check-dot { background: var(--red); }
|
|
318
|
+
dialog.modal.dm-checks { width: min(560px, calc(100vw - 32px)); }
|
|
319
|
+
|
|
320
|
+
/* ---- locking ---- */
|
|
321
|
+
fieldset.te-field { border: 0; margin: 0; padding: 0; min-width: 0; }
|
|
322
|
+
fieldset.te-field:disabled { opacity: .6; }
|
|
323
|
+
.te-mark.is-locked { color: var(--violet, #6b4fbb); }
|
|
324
|
+
.te-lock-note { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; color: var(--violet, #6b4fbb); }
|
|
325
|
+
.te-grip-space { width: 10px; flex-shrink: 0; }
|
|
326
|
+
|
|
327
|
+
/* ---- AI help ---- */
|
|
328
|
+
.te-ai { position: relative; display: block; margin-top: 6px; }
|
|
329
|
+
.te-ai-btn { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--green); cursor: pointer; }
|
|
330
|
+
.te-ai-btn:hover { text-decoration: underline; }
|
|
331
|
+
.te-ai-menu { position: absolute; top: 100%; left: 0; z-index: 30; display: flex; flex-direction: column; min-width: 230px; margin-top: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-pop, 0 8px 24px rgb(0 0 0 / 10%)); }
|
|
332
|
+
.te-ai-menu button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 7px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
|
|
333
|
+
.te-ai-menu button:hover { background: var(--hover); }
|
|
334
|
+
.te-ai-translate { padding: 4px 6px; }
|
|
335
|
+
.te-ai-translate select { width: 100%; }
|
|
336
|
+
.te-ai-menu small { padding: 6px 10px 4px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
|
|
337
|
+
.te-ai-suggest { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); font-size: 13.5px; }
|
|
338
|
+
.te-ai-text { display: block; white-space: pre-line; color: var(--text); }
|
|
339
|
+
.te-ai-text p { margin: 0 0 6px; }
|
|
340
|
+
.te-ai-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
|
|
341
|
+
|
|
342
|
+
/* ---- focal point ---- */
|
|
343
|
+
.te-focal { margin-top: 6px; }
|
|
344
|
+
.te-focal-toggle, .te-reset-inline { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12px; color: var(--accent-deep); cursor: pointer; }
|
|
345
|
+
.te-focal-toggle:hover, .te-reset-inline:hover { text-decoration: underline; }
|
|
346
|
+
.te-focal-img { position: relative; margin-top: 6px; border-radius: 10px; overflow: hidden; cursor: crosshair; touch-action: none; max-width: 420px; }
|
|
347
|
+
.te-focal-img img { display: block; width: 100%; height: auto; user-select: none; }
|
|
348
|
+
.te-focal-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 2px 8px rgb(0 0 0 / 35%); pointer-events: none; }
|
|
349
|
+
.te-focal-preview { display: flex; gap: 8px; margin-top: 8px; max-width: 420px; }
|
|
350
|
+
.te-focal-preview span { flex: 1; display: flex; flex-direction: column; gap: 2px; align-items: center; }
|
|
351
|
+
.te-focal-preview img { width: 100%; object-fit: cover; border-radius: 6px; background: var(--panel-2); }
|
|
352
|
+
.te-focal-preview small { font-size: 10.5px; color: var(--muted); }
|
|
353
|
+
.te [hidden] { display: none !important; }
|
|
354
|
+
/* "Help me write" appears on the field you're in, not under every field */
|
|
355
|
+
.te-ai:not(.is-active) { display: none; }
|
|
356
|
+
.field:hover > .te-ai, .field:focus-within > .te-ai, .te-rich-field:hover > .te-ai, .te-rich-field:focus-within > .te-ai { display: block; }
|
|
357
|
+
@media (hover: none) { .field:hover > .te-ai { display: none; } .field:focus-within > .te-ai { display: block; } }
|
|
358
|
+
|
|
359
|
+
/* ---- translations ---- */
|
|
360
|
+
.te-langbar { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 10px; }
|
|
361
|
+
.te-langbar .seg { align-self: flex-start; }
|
|
362
|
+
.te-lang-count { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; }
|
|
363
|
+
.te-lang-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); font-size: 12.5px; color: var(--text-2); }
|
|
364
|
+
.te-lang-actions { display: flex; gap: 6px; margin-left: auto; }
|
|
365
|
+
.te-lang-note { flex-basis: 100%; margin: 0; font-size: 12px; }
|
|
366
|
+
.te-merge { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin: 0; }
|
|
367
|
+
.st-ai { color: var(--blue); } .st-old { color: var(--amber); } .st-miss { color: var(--red); }
|
|
368
|
+
.te-mark.st-ai { color: var(--blue); } .te-mark.st-old { color: var(--amber); } .te-mark.st-miss { color: var(--red); }
|
|
369
|
+
.te-tr { display: grid; gap: 2px; }
|
|
370
|
+
.te-tr-head { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding-bottom: 4px; }
|
|
371
|
+
.te-tr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
|
|
372
|
+
.te-tr-src label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
|
|
373
|
+
.te-tr-srctext { font-size: 13.5px; color: var(--text-2); white-space: pre-line; line-height: 1.5; }
|
|
374
|
+
.te-tr-srctext p { margin: 0 0 6px; }
|
|
375
|
+
.te-tr-dst { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
|
|
376
|
+
.te-tr-dst input, .te-tr-dst textarea { width: 100%; }
|
|
377
|
+
.te-tr-row.is-ai .te-tr-dst input, .te-tr-row.is-ai .te-tr-dst textarea { background: var(--blue-soft); }
|
|
378
|
+
.te-tr-row.is-outdated .te-tr-dst input, .te-tr-row.is-outdated .te-tr-dst textarea { background: var(--amber-soft); }
|
|
379
|
+
.te-tr-rich { border: 0; margin: 0; padding: 0; min-width: 0; }
|
|
380
|
+
.te-tr-state { font-size: 11px; font-weight: 600; color: var(--muted); }
|
|
381
|
+
.te-tr-state.is-ai { color: var(--blue); } .te-tr-state.is-outdated { color: var(--amber); } .te-tr-state.is-missing { color: var(--red); } .te-tr-state.is-reviewed { color: var(--green); }
|
|
382
|
+
.te-tr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
|
|
383
|
+
.te-tr-actions button { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent-deep); cursor: pointer; }
|
|
384
|
+
.te-tr-actions button.quiet { color: var(--faint); font-weight: 500; }
|
|
385
|
+
.te-tr-actions button:disabled { opacity: .5; cursor: default; }
|
|
386
|
+
@media (max-width: 767px) {
|
|
387
|
+
.te-tr-head { display: none; }
|
|
388
|
+
.te-tr-row { grid-template-columns: 1fr; gap: 6px; }
|
|
389
|
+
.te-lang-actions { margin-left: 0; }
|
|
135
390
|
}
|