@acms-subir/core 0.3.3-next.20260929113209 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +105 -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/preview.mjs +8 -4
- package/cli/sections.mjs +188 -0
- package/cli/themes.mjs +52 -8
- package/docs/mobile.md +527 -0
- package/docs/sections.md +203 -0
- package/docs/theme-authoring.md +19 -3
- package/integration.mjs +76 -5
- 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 +17 -13
- 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 +205 -174
- 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/booking/BookingFlow.astro +6 -3
- package/src/components/calendar/BookingsHead.astro +51 -0
- package/src/components/calendar/CalendarBoard.tsx +618 -0
- package/src/components/calendar/MiniMonth.tsx +54 -0
- package/src/components/calendar/NewEventDialog.tsx +44 -0
- package/src/components/calendar/QuickAdd.tsx +263 -0
- package/src/components/calendar/RoomHolds.tsx +203 -0
- package/src/components/calendar/WhereItLands.tsx +51 -0
- package/src/components/editor/EventPanel.tsx +23 -2
- package/src/components/editor/PostEditor.tsx +206 -14
- 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 +11 -7
- package/src/layouts/Site.astro +136 -21
- 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/backup/content.ts +6 -1
- package/src/lib/booking/agent.ts +3 -2
- package/src/lib/booking/approval.ts +70 -0
- package/src/lib/booking/holds.ts +120 -0
- package/src/lib/booking/service.ts +37 -3
- package/src/lib/calendar/agent-schema.ts +9 -1
- package/src/lib/calendar/agent.ts +16 -1
- package/src/lib/calendar/board.ts +171 -0
- package/src/lib/calendar/config.ts +3 -0
- package/src/lib/calendar/grid.ts +169 -0
- package/src/lib/calendar/migration.ts +16 -0
- package/src/lib/calendar/render.ts +9 -7
- package/src/lib/calendar/schedule.ts +166 -0
- package/src/lib/content-service.ts +203 -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 +26 -14
- 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 +14 -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 +14 -0
- package/src/lib/repo/sql.ts +65 -20
- package/src/lib/repo/types.ts +10 -4
- package/src/lib/roles.ts +5 -0
- package/src/lib/scheduler.ts +6 -1
- package/src/lib/schema.ts +76 -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 +242 -0
- package/src/lib/site-chrome.ts +34 -0
- package/src/lib/theme-assets.ts +16 -0
- package/src/lib/theme.ts +33 -4
- package/src/lib/translate.ts +97 -0
- package/src/lib/translations.ts +39 -0
- package/src/middleware.ts +38 -2
- 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/bookings.astro +32 -26
- package/src/pages/admin/calendar/calendars.astro +4 -263
- package/src/pages/admin/calendar/events/[id].astro +9 -0
- package/src/pages/admin/calendar/events/index.astro +41 -83
- package/src/pages/admin/calendar/index.astro +43 -0
- package/src/pages/admin/calendar/resources/[id].astro +27 -5
- package/src/pages/admin/calendar/resources/index.astro +16 -17
- package/src/pages/admin/calendar/resources/link.astro +52 -12
- package/src/pages/admin/calendar/settings.astro +458 -0
- package/src/pages/admin/integrations.astro +5 -11
- 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/book/[resource].ics.ts +7 -1
- 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 +117 -0
- package/src/styles/cards.css +5 -1
- package/src/styles/editor.css +57 -0
- package/src/styles/mobile-app.css +151 -0
- package/src/styles/schedule.css +325 -0
- package/src/styles/sections.css +21 -12
- 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 +330 -0
- package/src/theme-sdk/index.ts +14 -2
- package/src/theme-sdk/tokens.d.mts +11 -0
- package/src/virtual.d.ts +4 -0
- package/src/pages/admin/calendar/index.ts +0 -4
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/* Admin Schedule (components/calendar/*) — month/week grid, quick add, day
|
|
2
|
+
panel, peek. Built on admin.css tokens so light and night both work.
|
|
3
|
+
Event colors come in as --c; never as a left edge stripe — a square
|
|
4
|
+
marker, a tinted fill or a dashed outline carries the meaning. */
|
|
5
|
+
|
|
6
|
+
.sch { --sch-line: var(--line); display: flex; flex-direction: column; gap: 12px; position: relative; }
|
|
7
|
+
.sch.is-loading .sch-stage { opacity: .72; transition: opacity .15s; }
|
|
8
|
+
|
|
9
|
+
/* toolbar */
|
|
10
|
+
.sch-bar1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
11
|
+
.sch-title { font-size: 24px; margin: 0 6px 0 0; letter-spacing: -0.02em; font-weight: 650; white-space: nowrap; }
|
|
12
|
+
.sch-title .yr { color: var(--muted); font-weight: 500; }
|
|
13
|
+
.sch-nav { display: flex; gap: 6px; align-items: center; }
|
|
14
|
+
.btn.ico { padding-inline: 9px; min-width: 32px; justify-content: center; }
|
|
15
|
+
.btn.ico svg { width: 15px; height: 15px; display: block; }
|
|
16
|
+
.sch-sp { flex: 1; }
|
|
17
|
+
.sch-views a { text-decoration: none; }
|
|
18
|
+
.sch-new { position: relative; display: inline-flex; }
|
|
19
|
+
.sch-new > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
20
|
+
.sch-caret { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid rgb(0 0 0 / 18%); padding-inline: 8px; }
|
|
21
|
+
.sch-menu {
|
|
22
|
+
position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; padding: 5px;
|
|
23
|
+
background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-pop);
|
|
24
|
+
display: flex; flex-direction: column;
|
|
25
|
+
}
|
|
26
|
+
.sch-menu > * {
|
|
27
|
+
display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px;
|
|
28
|
+
background: none; border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; text-decoration: none;
|
|
29
|
+
}
|
|
30
|
+
.sch-menu > *:hover { background: var(--hover); }
|
|
31
|
+
.sch-menu small { color: var(--muted); font-size: 11.5px; }
|
|
32
|
+
kbd { font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; background: transparent; }
|
|
33
|
+
.btn.primary kbd { color: inherit; border-color: rgb(255 255 255 / 35%); }
|
|
34
|
+
|
|
35
|
+
/* legend: click to show/hide a calendar */
|
|
36
|
+
.sch-legend { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; font-size: 12.5px; }
|
|
37
|
+
.sch-legend button {
|
|
38
|
+
display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 7px; border: 0; background: none;
|
|
39
|
+
color: var(--text-2); font: inherit; cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
.sch-legend button:hover { background: var(--hover); color: var(--text); }
|
|
42
|
+
.sch-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
|
|
43
|
+
.sch-legend .bk i { background: none; border: 1.5px solid var(--muted); }
|
|
44
|
+
.sch-legend button.off { color: var(--faint); text-decoration: line-through; }
|
|
45
|
+
.sch-legend button.off i { opacity: .35; }
|
|
46
|
+
.sch-legend small { color: var(--faint); font-size: 11px; }
|
|
47
|
+
.sch-legend-edit { margin-left: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; flex: none; }
|
|
48
|
+
.sch-legend-edit:hover { color: var(--text); }
|
|
49
|
+
.sch-error { margin: 0; }
|
|
50
|
+
|
|
51
|
+
.sch-stage { display: flex; gap: 0; align-items: stretch; position: relative; }
|
|
52
|
+
.sch-stage > .sch-grid, .sch-stage > .sch-wk { flex: 1; min-width: 0; }
|
|
53
|
+
|
|
54
|
+
/* ---- month grid ---- */
|
|
55
|
+
.sch-grid { border: 1px solid var(--line); border-radius: var(--r-lg, 12px); overflow: hidden; background: var(--panel); user-select: none; }
|
|
56
|
+
.sch-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
|
|
57
|
+
.sch-dows div { padding: 7px 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
|
|
58
|
+
.sch-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: clamp(104px, 13.5vh, 150px); border-bottom: 1px solid var(--line); position: relative; }
|
|
59
|
+
.sch-week:last-child { border-bottom: 0; }
|
|
60
|
+
.sch-cell { grid-row: 1 / -1; border-right: 1px solid var(--line); cursor: cell; transition: background .08s; }
|
|
61
|
+
.sch-cell:nth-child(7n) { border-right: 0; }
|
|
62
|
+
.sch-cell:hover { background: var(--hover); }
|
|
63
|
+
.sch-cell.out { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
|
|
64
|
+
.sch-cell.sel, .sch-cell.selecting { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent-ring); }
|
|
65
|
+
.sch-cell.drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
|
|
66
|
+
.sch-num {
|
|
67
|
+
grid-row: 1; align-self: start; justify-self: start; display: flex; align-items: center;
|
|
68
|
+
padding: 6px 8px 3px; margin: 0; background: none; border: 0; font: inherit; font-size: 12px; color: var(--text-2);
|
|
69
|
+
cursor: pointer; position: relative; z-index: 1; text-align: left;
|
|
70
|
+
}
|
|
71
|
+
.sch-num b { font-weight: 500; padding: 1px 5px; border-radius: 6px; margin-left: -5px; }
|
|
72
|
+
.sch-num:hover b { background: var(--sel); color: var(--text); }
|
|
73
|
+
.sch-num.out { color: var(--faint); }
|
|
74
|
+
.sch-num.today b { background: var(--accent); color: var(--on-accent, #fff); font-weight: 650; }
|
|
75
|
+
.sch-cell { position: relative; }
|
|
76
|
+
.sch-cell:hover::after { content: '+'; position: absolute; top: 4px; right: 9px; color: var(--accent); font-size: 16px; font-weight: 600; line-height: 1.2; pointer-events: none; }
|
|
77
|
+
|
|
78
|
+
/* chips + bars share the item look */
|
|
79
|
+
.sch-chip, .sch-bar {
|
|
80
|
+
display: flex; align-items: center; gap: 6px; min-width: 0; margin: 1px 4px; padding: 2px 6px; border-radius: 6px;
|
|
81
|
+
font: inherit; font-size: 12px; line-height: 17px; text-align: left; border: 1px solid transparent; background: none; color: var(--text);
|
|
82
|
+
cursor: pointer; white-space: nowrap; overflow: hidden; position: relative; z-index: 1;
|
|
83
|
+
}
|
|
84
|
+
.sch-chip:hover { background: var(--sel); }
|
|
85
|
+
.sch-chip i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); flex: none; }
|
|
86
|
+
.sch-chip .t { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
|
|
87
|
+
.sch-chip .n { overflow: hidden; text-overflow: ellipsis; }
|
|
88
|
+
.sch-bar { background: color-mix(in srgb, var(--c) 20%, transparent); font-weight: 550; display: block; text-overflow: ellipsis; }
|
|
89
|
+
.sch-bar:hover { background: color-mix(in srgb, var(--c) 30%, transparent); }
|
|
90
|
+
.sch-bar em { font-style: normal; font-weight: 450; color: var(--text-2); }
|
|
91
|
+
.sch-bar.cl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
|
|
92
|
+
.sch-bar.cr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
93
|
+
/* drafts / scheduled: dashed, hollow marker, italic */
|
|
94
|
+
.is-draft { border: 1px dashed var(--line-strong); }
|
|
95
|
+
.sch-chip.is-draft i { background: none; border: 1.5px solid var(--c); }
|
|
96
|
+
.sch-chip.is-draft .n, .sch-bar.is-draft { font-style: italic; color: var(--text-2); }
|
|
97
|
+
.sch-bar.is-draft { background: color-mix(in srgb, var(--c) 9%, transparent); }
|
|
98
|
+
/* subscribed (read-only) */
|
|
99
|
+
.sch-bar.is-feed { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-2); font-weight: 450; }
|
|
100
|
+
.sch-chip.is-feed .n { color: var(--text-2); }
|
|
101
|
+
/* bookings + blocks: neutral outline marker */
|
|
102
|
+
.is-booking i { background: none !important; border: 1.5px solid var(--muted); }
|
|
103
|
+
.sch-chip.is-booking .n { color: var(--text-2); }
|
|
104
|
+
.sch-bar.is-booking { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--text-2); }
|
|
105
|
+
.is-pending .n::after { content: ' · needs approval'; color: var(--amber); }
|
|
106
|
+
.is-cancelled .n, .sch-bar.is-cancelled { text-decoration: line-through; color: var(--muted); }
|
|
107
|
+
.is-preview { outline: 1.5px solid var(--accent); outline-offset: -1px; }
|
|
108
|
+
.is-dragging { opacity: .35; }
|
|
109
|
+
.can-drag { cursor: grab; }
|
|
110
|
+
.sch-more {
|
|
111
|
+
justify-self: start; align-self: center; margin: 0 4px; padding: 1px 6px; border: 0; background: none; border-radius: 6px;
|
|
112
|
+
font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer; position: relative; z-index: 1;
|
|
113
|
+
}
|
|
114
|
+
.sch-more:hover { background: var(--sel); color: var(--text); }
|
|
115
|
+
|
|
116
|
+
/* ---- week ---- */
|
|
117
|
+
.sch-wk { border: 1px solid var(--line); border-radius: var(--r-lg, 12px); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
|
|
118
|
+
.sch-wk-head, .sch-wk-allday { display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--line); }
|
|
119
|
+
.sch-wk-head { grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
|
|
120
|
+
.sch-wk-gutter { font-size: 10.5px; color: var(--faint); padding: 6px 8px; text-align: right; }
|
|
121
|
+
.sch-wk-day { display: flex; gap: 6px; align-items: baseline; justify-content: center; padding: 8px 4px; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; border-left: 1px solid var(--line); }
|
|
122
|
+
.sch-wk-day span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
|
|
123
|
+
.sch-wk-day b { font-size: 17px; color: var(--text); font-weight: 600; }
|
|
124
|
+
.sch-wk-day.today b { color: var(--accent); }
|
|
125
|
+
.sch-wk-allday { grid-template-rows: auto !important; }
|
|
126
|
+
.sch-wk-allday-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 24px; min-height: 28px; padding: 2px 0; }
|
|
127
|
+
.sch-wk-adcell { grid-row: 1 / -1; border-left: 1px solid var(--line); cursor: cell; }
|
|
128
|
+
.sch-wk-adcell:hover { background: var(--hover); }
|
|
129
|
+
.sch-wk-adcell.drop { background: var(--accent-soft); }
|
|
130
|
+
.sch-wk-body { position: relative; overflow-y: auto; max-height: min(70vh, 760px); display: grid; grid-template-columns: 56px 1fr; }
|
|
131
|
+
.sch-wk-hours { position: relative; }
|
|
132
|
+
.sch-wk-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
|
|
133
|
+
.sch-wk-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative;
|
|
134
|
+
background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 44px); }
|
|
135
|
+
.sch-wk-col { position: relative; border-left: 1px solid var(--line); cursor: cell; }
|
|
136
|
+
.sch-wk-col.today { background: color-mix(in srgb, var(--accent) 4%, transparent); }
|
|
137
|
+
.sch-wk-col.drop { background: var(--accent-soft); }
|
|
138
|
+
.sch-ev {
|
|
139
|
+
position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 3px 6px; overflow: hidden;
|
|
140
|
+
border-radius: 7px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 18%, var(--panel));
|
|
141
|
+
font: inherit; font-size: 11.5px; line-height: 15px; text-align: left; color: var(--text); cursor: pointer; z-index: 1;
|
|
142
|
+
}
|
|
143
|
+
.sch-ev b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
|
144
|
+
.sch-ev span { color: var(--text-2); white-space: nowrap; }
|
|
145
|
+
.sch-ev.is-draft { background: var(--panel); border-style: dashed; }
|
|
146
|
+
.sch-ev.is-draft b { font-style: italic; }
|
|
147
|
+
.sch-ev.is-booking { background: color-mix(in srgb, var(--muted) 12%, var(--panel)); border-color: var(--line-strong); }
|
|
148
|
+
.sch-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 2; pointer-events: none; }
|
|
149
|
+
.sch-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
|
|
150
|
+
|
|
151
|
+
/* ---- day panel ---- */
|
|
152
|
+
.sch-panel {
|
|
153
|
+
width: 320px; flex: none; margin-left: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg, 12px);
|
|
154
|
+
display: flex; flex-direction: column; max-height: calc(100vh - 170px); position: sticky; top: 64px; align-self: flex-start;
|
|
155
|
+
}
|
|
156
|
+
.sch-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
|
|
157
|
+
.sch-panel-head b { display: block; font-size: 14.5px; }
|
|
158
|
+
.sch-panel-head small { color: var(--muted); font-size: 12px; }
|
|
159
|
+
.sch-panel-head > span { display: flex; gap: 2px; }
|
|
160
|
+
.sch-panel-list { padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
|
|
161
|
+
.sch-panel-add { margin: 0 10px 12px; padding: 9px 10px; border: 1px dashed var(--line-strong); border-radius: 9px; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
|
|
162
|
+
.sch-panel-add:hover { color: var(--text); border-color: var(--faint); }
|
|
163
|
+
.sch-row {
|
|
164
|
+
display: grid; grid-template-columns: 9px 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 11px; border-radius: 9px;
|
|
165
|
+
background: var(--bg); border: 1px solid var(--line); font: inherit; text-align: left; color: var(--text); cursor: pointer; width: 100%;
|
|
166
|
+
}
|
|
167
|
+
.sch-row:hover { border-color: var(--line-strong); }
|
|
168
|
+
.sch-row i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
|
|
169
|
+
.sch-row.hollow i { background: none; border: 1.5px solid var(--c); }
|
|
170
|
+
.sch-row.hollow { border-style: dashed; }
|
|
171
|
+
.sch-row-main { min-width: 0; display: flex; flex-direction: column; }
|
|
172
|
+
.sch-row-main b { font-weight: 550; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
173
|
+
.sch-row-main small { color: var(--muted); font-size: 11.5px; }
|
|
174
|
+
.sch-row-st { font-size: 11px; color: var(--muted); white-space: nowrap; }
|
|
175
|
+
.sch-row.is-cancelled b { text-decoration: line-through; color: var(--muted); }
|
|
176
|
+
|
|
177
|
+
/* ---- peek / ask ---- */
|
|
178
|
+
.sch-peek-layer { position: fixed; inset: 0; z-index: 70; }
|
|
179
|
+
.sch-peek-layer.center { display: grid; place-items: center; background: var(--dim); }
|
|
180
|
+
.sch-peek, .sch-ask {
|
|
181
|
+
position: fixed; width: 330px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px;
|
|
182
|
+
box-shadow: var(--shadow-pop); padding: 14px; font-size: 13px;
|
|
183
|
+
}
|
|
184
|
+
.sch-ask { position: static; width: min(420px, calc(100vw - 32px)); padding: 18px; }
|
|
185
|
+
.sch-ask b { font-size: 15px; }
|
|
186
|
+
.sch-ask p { color: var(--text-2); margin: 6px 0 14px; }
|
|
187
|
+
.sch-ask-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
188
|
+
.sch-peek-head { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start; }
|
|
189
|
+
.sch-peek-head i { width: 10px; height: 10px; border-radius: 3px; margin-top: 4px; }
|
|
190
|
+
.sch-peek-head i.hollow { background: none !important; border: 2px solid var(--muted); }
|
|
191
|
+
.sch-peek-head b { font-size: 14.5px; line-height: 1.35; }
|
|
192
|
+
.sch-x { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0 2px; }
|
|
193
|
+
.sch-peek-when { margin: 6px 0 6px 20px; color: var(--text-2); }
|
|
194
|
+
.sch-peek-meta { list-style: none; margin: 0 0 12px 20px; padding: 0; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
|
|
195
|
+
.sch-peek-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 20px; align-items: center; }
|
|
196
|
+
.sch-peek-actions .danger { margin-left: auto; }
|
|
197
|
+
.btn.danger.ghost { color: var(--red); }
|
|
198
|
+
|
|
199
|
+
/* ---- toast ---- */
|
|
200
|
+
.sch-toast {
|
|
201
|
+
position: fixed; left: 50%; bottom: calc(22px + var(--tabbar-h, 0px)); transform: translateX(-50%); z-index: 80;
|
|
202
|
+
display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: 13px;
|
|
203
|
+
background: var(--text); color: var(--bg); box-shadow: var(--shadow-pop); max-width: calc(100vw - 32px);
|
|
204
|
+
}
|
|
205
|
+
.sch-toast button { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 650; cursor: pointer; padding: 0; }
|
|
206
|
+
:root[data-theme='dark'] .sch-toast { background: #2e2b27; color: var(--text); border: 1px solid var(--line-strong); }
|
|
207
|
+
.sch-toast.err { background: var(--red); color: #fff; }
|
|
208
|
+
|
|
209
|
+
/* ---- quick add ---- */
|
|
210
|
+
.qa-layer { position: fixed; inset: 0; z-index: 75; }
|
|
211
|
+
.qa-layer-dialog { background: var(--dim); display: grid; place-items: center; padding: 16px; }
|
|
212
|
+
.qa {
|
|
213
|
+
background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-pop);
|
|
214
|
+
font-size: 13px; color: var(--text);
|
|
215
|
+
}
|
|
216
|
+
.qa-popover { position: fixed; width: 400px; padding: 16px; }
|
|
217
|
+
.qa-dialog { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 22px; padding: 20px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
|
|
218
|
+
.qa-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
219
|
+
.qa-title { font: inherit; font-size: 16px; font-weight: 600; border: 0; border-bottom: 1px solid var(--line-strong); background: none; color: var(--text); padding: 2px 0 8px; margin-bottom: 4px; outline: none; }
|
|
220
|
+
.qa-title:focus { border-bottom-color: var(--accent); }
|
|
221
|
+
.qa-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: center; }
|
|
222
|
+
.qa-lab { color: var(--muted); font-size: 12px; }
|
|
223
|
+
.qa input[type='date'], .qa input[type='time'], .qa select, .qa .qa-grow {
|
|
224
|
+
font: inherit; font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--text); padding: 5px 8px; min-width: 0;
|
|
225
|
+
}
|
|
226
|
+
.qa input:focus-visible, .qa select:focus-visible { outline: 2px solid var(--accent-ring); border-color: var(--accent); }
|
|
227
|
+
.qa-row.top { align-items: start; }
|
|
228
|
+
.qa-row.top .qa-lab { padding-top: 6px; }
|
|
229
|
+
.qa-when { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
|
|
230
|
+
.qa-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
231
|
+
.qa input[type='date'] { width: 142px; }
|
|
232
|
+
.qa input[type='time'] { width: 112px; }
|
|
233
|
+
.qa input.qa-title:focus, .qa input.qa-title:focus-visible { outline: none; box-shadow: none; border-color: transparent; border-bottom-color: var(--accent); }
|
|
234
|
+
.qa-dash { color: var(--muted); }
|
|
235
|
+
.qa-check { display: inline-flex; gap: 5px; align-items: center; color: var(--text-2); font-size: 12.5px; cursor: pointer; }
|
|
236
|
+
.qa-cal { display: flex; align-items: center; gap: 8px; }
|
|
237
|
+
.qa-cal i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
|
|
238
|
+
.qa-cal i.none { border: 1.5px solid var(--line-strong); }
|
|
239
|
+
.qa-cal select { flex: 1; }
|
|
240
|
+
.qa-grow { width: 100%; }
|
|
241
|
+
.qa-error { color: var(--red); margin: 2px 0 0; font-size: 12.5px; }
|
|
242
|
+
.qa-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; margin-top: 8px; flex-wrap: wrap; }
|
|
243
|
+
.qa-more { margin-right: auto; }
|
|
244
|
+
.qa-side { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); padding-left: 20px; }
|
|
245
|
+
.qa-also b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
|
|
246
|
+
.qa-also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
|
|
247
|
+
.qa-also li { display: flex; gap: 7px; align-items: baseline; }
|
|
248
|
+
.qa-also li i { width: 7px; height: 7px; border-radius: 2px; flex: none; transform: translateY(-1px); }
|
|
249
|
+
.qa-free { color: var(--faint); font-size: 12px; }
|
|
250
|
+
|
|
251
|
+
/* mini month (also used inside the event editor) */
|
|
252
|
+
.mini-month { font-size: 11.5px; color: var(--text-2); user-select: none; }
|
|
253
|
+
.mini-month-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
|
|
254
|
+
.mini-month-head b { font-size: 12.5px; color: var(--text); }
|
|
255
|
+
.mini-nav { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; padding: 0 6px; border-radius: 6px; }
|
|
256
|
+
.mini-nav:hover { background: var(--hover); color: var(--text); }
|
|
257
|
+
.mini-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
|
|
258
|
+
.mini-dow { font-size: 10px; color: var(--faint); padding: 2px 0; }
|
|
259
|
+
.mini-day { position: relative; border: 0; background: none; font: inherit; color: var(--text-2); padding: 4px 0 7px; border-radius: 7px; cursor: pointer; font-variant-numeric: tabular-nums; }
|
|
260
|
+
.mini-day:hover { background: var(--hover); color: var(--text); }
|
|
261
|
+
.mini-day.out { color: var(--faint); }
|
|
262
|
+
.mini-day.today { color: var(--accent); font-weight: 700; }
|
|
263
|
+
.mini-day.sel { background: var(--accent); color: var(--on-accent, #fff); font-weight: 650; }
|
|
264
|
+
.mini-dots { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 2px; }
|
|
265
|
+
.mini-dots i { width: 4px; height: 4px; border-radius: 1px; }
|
|
266
|
+
.mini-day.sel .mini-dots i { background: currentColor !important; opacity: .8; }
|
|
267
|
+
|
|
268
|
+
/* ---- tablet: titles only ---- */
|
|
269
|
+
@media (max-width: 1024px) {
|
|
270
|
+
.sch-chip .t { display: none; }
|
|
271
|
+
.sch-panel { position: fixed; right: 12px; top: 64px; bottom: 12px; max-height: none; z-index: 50; box-shadow: var(--shadow-pop); margin: 0; }
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* ---- phone: compact month + day list, sheets ---- */
|
|
275
|
+
.sch-phone { display: flex; flex-direction: column; gap: 6px; width: 100%; position: relative; }
|
|
276
|
+
.sch-pgrid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; }
|
|
277
|
+
.sch-pdow { font-size: 10.5px; color: var(--muted); padding: 4px 0; }
|
|
278
|
+
.sch-pday { position: relative; border: 0; background: none; font: inherit; font-size: 14px; color: var(--text); padding: 8px 0 12px; border-radius: 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
|
|
279
|
+
.sch-pday.out { color: var(--faint); }
|
|
280
|
+
.sch-pday.today { color: var(--accent); font-weight: 700; }
|
|
281
|
+
.sch-pday.sel { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--accent); }
|
|
282
|
+
.sch-pdots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 2px; }
|
|
283
|
+
.sch-pdots i { width: 4px; height: 4px; border-radius: 1px; }
|
|
284
|
+
.sch-plist { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
|
|
285
|
+
.sch-plist-head { font-size: 12.5px; color: var(--muted); font-weight: 600; }
|
|
286
|
+
.sch-empty-day { color: var(--faint); margin: 4px 0; font-size: 13px; }
|
|
287
|
+
.sch-fab {
|
|
288
|
+
position: fixed; right: 18px; bottom: calc(18px + var(--tabbar-h, 0px)); width: 50px; height: 50px; border-radius: 14px; border: 0;
|
|
289
|
+
background: var(--accent); color: var(--on-accent, #fff); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 8px 22px var(--accent-ring); z-index: 30;
|
|
290
|
+
}
|
|
291
|
+
.sch-sheet-layer { position: fixed; inset: 0; z-index: 60; background: var(--dim); display: flex; align-items: flex-end; }
|
|
292
|
+
|
|
293
|
+
@media (max-width: 640px) {
|
|
294
|
+
.sch-title { font-size: 20px; }
|
|
295
|
+
.sch-bar1 { gap: 8px; }
|
|
296
|
+
.sch-sp { display: none; }
|
|
297
|
+
.sch-views { order: 5; }
|
|
298
|
+
.sch-legend { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
|
|
299
|
+
.sch-legend button { flex: none; }
|
|
300
|
+
.sch-sheet-layer .sch-panel { position: static; width: 100%; max-height: 80vh; border-radius: 16px 16px 0 0; margin: 0; padding-bottom: env(safe-area-inset-bottom); }
|
|
301
|
+
.qa-layer-popover, .qa-layer-dialog { background: var(--dim); display: flex; align-items: flex-end; padding: 0; }
|
|
302
|
+
.qa-popover, .qa-dialog { position: static; width: 100%; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; }
|
|
303
|
+
.qa-dialog { grid-template-columns: 1fr; }
|
|
304
|
+
.qa-side { display: none; }
|
|
305
|
+
.qa-actions .btn { flex: 1; justify-content: center; }
|
|
306
|
+
.qa-more { flex-basis: 100% !important; order: 3; }
|
|
307
|
+
.sch-peek { left: 12px !important; right: 12px; bottom: calc(12px + var(--tabbar-h, 0px)); top: auto !important; width: auto; }
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* compact board (container < 620px): the + button replaces "New event" */
|
|
311
|
+
.sch.is-compact .sch-new { display: none; }
|
|
312
|
+
.sch.is-compact .sch-sp { display: none; }
|
|
313
|
+
.sch.is-compact .sch-title { font-size: 20px; }
|
|
314
|
+
.sch.is-compact .sch-legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
|
|
315
|
+
.sch.is-compact .sch-legend button { flex: none; }
|
|
316
|
+
|
|
317
|
+
/* event editor → When → where it lands */
|
|
318
|
+
.lands { margin: 10px 0 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
|
|
319
|
+
.lands-also { margin: 8px 2px 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
|
|
320
|
+
|
|
321
|
+
/* quick add → Rooms */
|
|
322
|
+
.qa-rooms { display: flex; flex-direction: column; gap: 4px; }
|
|
323
|
+
.qa-rooms em { font-style: normal; font-size: 11.5px; margin-left: 4px; }
|
|
324
|
+
.qa-rooms em.free { color: var(--green); }
|
|
325
|
+
.qa-rooms em.busy { color: var(--amber); }
|
package/src/styles/sections.css
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.section-
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
.section-
|
|
12
|
-
|
|
1
|
+
/* Core section defaults. Every selector is wrapped in :where() so it has zero
|
|
2
|
+
specificity: any theme rule — even a single class — wins without !important
|
|
3
|
+
or doubled class names.
|
|
4
|
+
A section page is a layout, not an article: break out of the reading column
|
|
5
|
+
to the theme's wide width (same frame as the header); sections decide their
|
|
6
|
+
own inner measure. Prose from the page itself keeps the reading width. */
|
|
7
|
+
:where(.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)}
|
|
8
|
+
:where(.section-page-content>.page-body){max-width:var(--content-width);margin-inline:auto}
|
|
9
|
+
:where(.acms-section){padding:clamp(1rem,4vw,3rem);border-radius:var(--r-lg);min-width:0}
|
|
10
|
+
:where(.acms-section h2){font-family:var(--font-heading);font-size:clamp(1.7rem,4vw,3rem);line-height:1.15}
|
|
11
|
+
:where(.section-text){white-space:pre-line;max-width:65ch;color:var(--muted)}
|
|
12
|
+
:where(.acms-section>.section-copy){max-width:48rem}
|
|
13
|
+
:where(.section-hero.variant-split){display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:2rem}
|
|
14
|
+
:where(.section-hero.variant-centered){text-align:center}:where(.section-hero.variant-centered .section-text){margin-inline:auto}
|
|
15
|
+
:where(.section-image){width:100%;max-height:32rem;object-fit:cover;border-radius:var(--r)}
|
|
16
|
+
:where(.section-items){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1.25rem;margin-top:1.5rem}
|
|
17
|
+
:where(.variant-list .section-items,.section-faq .section-items){grid-template-columns:1fr}
|
|
18
|
+
:where(.section-items>article:not(.post-card),.section-items>details){background:var(--panel);padding:1.25rem;border:1px solid var(--line);border-radius:var(--r)}
|
|
19
|
+
:where(.section-items summary){cursor:pointer;font-weight:600}:where(.section-cta.variant-panel){background:var(--soft)}
|
|
20
|
+
@media(max-width:640px){:where(.section-hero.variant-split){grid-template-columns:1fr}:where(.acms-section){padding:1rem}}
|
|
21
|
+
:where(.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
|
}
|