@acms-subir/core 0.1.0 → 0.3.0
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 +106 -0
- package/cli/common.mjs +35 -0
- package/cli/legacy.mjs +317 -0
- package/cli/main.mjs +66 -0
- package/cli/palette.mjs +4 -0
- package/cli/preview.mjs +50 -0
- package/cli/remote.mjs +55 -0
- package/cli/themes.mjs +127 -0
- package/cli.mjs +2 -315
- package/deploy/Caddyfile +8 -0
- package/deploy/Dockerfile +34 -0
- package/deploy/compose.https.yml +21 -0
- package/deploy/compose.yml +46 -0
- package/docs/theme-authoring.md +103 -0
- package/email-runner.mjs +32 -0
- package/integration.mjs +193 -2
- package/ops-check.mjs +27 -0
- package/package.json +35 -12
- package/src/actions/index.ts +744 -38
- package/src/components/AiCleaner.tsx +291 -0
- package/src/components/AiSettings.tsx +575 -0
- package/src/components/CommandPalette.tsx +200 -0
- package/src/components/ContentList.astro +246 -0
- package/src/components/DesignAccess.tsx +182 -0
- package/src/components/DesignManager.tsx +455 -47
- package/src/components/EmailSettings.tsx +521 -0
- package/src/components/EventPage.astro +178 -0
- package/src/components/LegalPage.astro +27 -0
- package/src/components/LinksManager.tsx +216 -97
- package/src/components/NavManager.tsx +83 -38
- package/src/components/ThemeScript.astro +50 -0
- package/src/components/ThemeSections.astro +57 -0
- package/src/components/ThemeSectionsEditor.tsx +513 -0
- package/src/components/booking/BookingFlow.astro +150 -0
- package/src/components/booking/HoursEditor.astro +63 -0
- package/src/components/builder/PageBuilder.tsx +10 -2
- package/src/components/editor/EventPanel.tsx +401 -0
- package/src/components/editor/FormatDock.tsx +81 -0
- package/src/components/editor/LivePane.tsx +122 -0
- package/src/components/editor/MobileToolbar.tsx +93 -0
- package/src/components/editor/PostEditor.tsx +826 -271
- package/src/components/editor/PreviewOverlay.tsx +242 -43
- package/src/components/editor/extensions/calendar.tsx +51 -7
- package/src/components/editor/extensions/cards.tsx +17 -1
- package/src/components/editor/extensions/codeBlock.tsx +1 -1
- package/src/components/editor/extensions/events.tsx +153 -0
- package/src/components/editor/extensions/infoCards.tsx +16 -1
- package/src/components/editor/extensions/mediaCards.tsx +36 -2
- package/src/components/editor/extensions/slash.tsx +77 -9
- package/src/components/editor/extensions/toc.tsx +89 -0
- package/src/components/editor/extensions/toggle.tsx +70 -0
- package/src/components/site/Pager.astro +24 -0
- package/src/components/site/PostCard.astro +64 -0
- package/src/components/site/TagLabel.astro +11 -0
- package/src/layouts/Admin.astro +289 -49
- package/src/layouts/Site.astro +331 -57
- package/src/lib/agent-api.ts +13 -0
- package/src/lib/agent-discovery.ts +40 -0
- package/src/lib/agent.ts +114 -0
- package/src/lib/ai-config.ts +58 -0
- package/src/lib/ai-schema.ts +22 -0
- package/src/lib/ai.ts +90 -0
- package/src/lib/analytics.ts +121 -0
- package/src/lib/api-keys.ts +65 -0
- package/src/lib/api.ts +52 -0
- package/src/lib/auth.ts +25 -5
- package/src/lib/backup/content.ts +36 -0
- package/src/lib/backup/unzip.ts +12 -1
- package/src/lib/backup/zip.ts +1 -1
- package/src/lib/booking/agent.ts +108 -0
- package/src/lib/booking/availability.ts +221 -0
- package/src/lib/booking/emails.ts +115 -0
- package/src/lib/booking/forms.ts +77 -0
- package/src/lib/booking/service.ts +277 -0
- package/src/lib/booking/view.ts +54 -0
- package/src/lib/calendar/agent-schema.ts +48 -0
- package/src/lib/calendar/agent.ts +136 -0
- package/src/lib/calendar/api.ts +81 -0
- package/src/lib/calendar/cards.ts +102 -0
- package/src/lib/calendar/config.ts +52 -0
- package/src/lib/calendar/data.ts +130 -0
- package/src/lib/calendar/events.ts +261 -0
- package/src/lib/calendar/feeds.ts +43 -0
- package/src/lib/calendar/hooks.ts +38 -0
- package/src/lib/calendar/http.ts +30 -0
- package/src/lib/calendar/ics-write.ts +120 -0
- package/src/lib/calendar/ics.ts +15 -5
- package/src/lib/calendar/import.ts +203 -0
- package/src/lib/calendar/render.ts +120 -37
- package/src/lib/calendar/rrule.ts +149 -0
- package/src/lib/calendar/seo.ts +48 -0
- package/src/lib/design-service.ts +58 -0
- package/src/lib/designDiff.ts +145 -0
- package/src/lib/designPreview.ts +112 -0
- package/src/lib/documents/cleanup.ts +31 -0
- package/src/lib/documents/extract.ts +154 -0
- package/src/lib/documents/vendor.d.ts +4 -0
- package/src/lib/drafts.ts +131 -0
- package/src/lib/dynamicBlocks.ts +79 -7
- package/src/lib/email/accounts.ts +55 -0
- package/src/lib/email/config.ts +86 -0
- package/src/lib/email/migration.ts +24 -0
- package/src/lib/email/providers.ts +89 -0
- package/src/lib/email/service.ts +78 -0
- package/src/lib/email/store.ts +167 -0
- package/src/lib/email/templates.ts +18 -0
- package/src/lib/email/types.ts +32 -0
- package/src/lib/email/webhooks.ts +87 -0
- package/src/lib/email.ts +15 -0
- package/src/lib/env.ts +1 -1
- package/src/lib/legal/index.ts +25 -0
- package/src/lib/mobile/bookings.ts +73 -0
- package/src/lib/mobile/calendar.ts +85 -0
- package/src/lib/mobile/content.ts +85 -0
- package/src/lib/mobile/http.ts +63 -0
- package/src/lib/mobile/route.ts +20 -0
- package/src/lib/ops.ts +8 -0
- package/src/lib/preview.ts +21 -1
- package/src/lib/repo/migrations.ts +254 -0
- package/src/lib/repo/sql.ts +956 -46
- package/src/lib/repo/types.ts +140 -3
- package/src/lib/scheduler.ts +25 -0
- package/src/lib/schema.ts +362 -0
- package/src/lib/search-i18n.ts +3 -0
- package/src/lib/socialIcons.ts +32 -0
- package/src/lib/tagColor.ts +11 -0
- package/src/lib/theme.ts +59 -40
- package/src/lib/themeTokens.ts +174 -0
- package/src/lib/umami.ts +108 -0
- package/src/lib/webhooks.ts +139 -0
- package/src/middleware.ts +36 -3
- package/src/pages/404.astro +23 -0
- package/src/pages/[...slug].astro +10 -5
- package/src/pages/account/[action].astro +53 -0
- package/src/pages/admin/ai.astro +12 -0
- package/src/pages/admin/c/[collection]/[id].astro +14 -4
- package/src/pages/admin/c/[collection]/index.astro +127 -91
- package/src/pages/admin/calendar/bookings.astro +400 -0
- package/src/pages/admin/calendar/calendars.astro +265 -0
- package/src/pages/admin/calendar/events/[id].astro +56 -0
- package/src/pages/admin/calendar/events/index.astro +408 -0
- package/src/pages/admin/calendar/index.ts +4 -0
- package/src/pages/admin/calendar/integrations.astro +221 -0
- package/src/pages/admin/calendar/resources/[id].astro +180 -0
- package/src/pages/admin/calendar/resources/index.astro +106 -0
- package/src/pages/admin/calendar/resources/link.astro +196 -0
- package/src/pages/admin/design.astro +16 -4
- package/src/pages/admin/email.astro +13 -0
- package/src/pages/admin/index.astro +237 -87
- package/src/pages/admin/links.astro +3 -3
- package/src/pages/admin/login.astro +14 -10
- package/src/pages/admin/navigation.astro +8 -2
- package/src/pages/admin/pages/[id].astro +14 -3
- package/src/pages/admin/pages/index.astro +41 -47
- package/src/pages/admin/settings.astro +475 -276
- package/src/pages/admin/tags.astro +4 -4
- package/src/pages/admin/users.astro +38 -28
- package/src/pages/api/agent/docs.ts +33 -0
- package/src/pages/api/agent/index.ts +21 -0
- package/src/pages/api/ai/clean.ts +13 -0
- package/src/pages/api/ai/draft.ts +14 -0
- package/src/pages/api/ai/settings.ts +53 -0
- package/src/pages/api/ai/test.ts +12 -0
- package/src/pages/api/backup.ts +8 -21
- package/src/pages/api/calendar/availability.ts +35 -0
- package/src/pages/api/calendar/bookings/[id].ts +49 -0
- package/src/pages/api/calendar/bookings/index.ts +73 -0
- package/src/pages/api/calendar/calendars.ts +35 -0
- package/src/pages/api/calendar/docs.ts +64 -0
- package/src/pages/api/calendar/events/[id].ts +63 -0
- package/src/pages/api/calendar/events/index.ts +112 -0
- package/src/pages/api/calendar/resources.ts +34 -0
- package/src/pages/api/design/capabilities.ts +10 -0
- package/src/pages/api/design/index.ts +58 -0
- package/src/pages/api/design/keys.ts +24 -0
- package/src/pages/api/design/media.ts +32 -0
- package/src/pages/api/email/run.ts +11 -0
- package/src/pages/api/email/settings.ts +61 -0
- package/src/pages/api/email/webhooks/[provider].ts +4 -0
- package/src/pages/api/mcp.ts +59 -0
- package/src/pages/api/media/upload.ts +2 -2
- package/src/pages/api/ops/status.ts +39 -0
- package/src/pages/api/restore.ts +27 -37
- package/src/pages/api/search.ts +18 -4
- package/src/pages/api/v1/availability.ts +7 -0
- package/src/pages/api/v1/bookings.ts +17 -0
- package/src/pages/api/v1/calendars.ts +7 -0
- package/src/pages/api/v1/content/[id].ts +7 -0
- package/src/pages/api/v1/content/index.ts +7 -0
- package/src/pages/api/v1/events.ts +7 -0
- package/src/pages/api/v1/resources.ts +7 -0
- package/src/pages/author/[slug].astro +43 -35
- package/src/pages/blog/[slug].astro +140 -66
- package/src/pages/blog/index.astro +95 -30
- package/src/pages/blog/tag/[slug].astro +45 -40
- package/src/pages/book/[resource]/[link].astro +70 -0
- package/src/pages/book/[resource]/index.astro +63 -0
- package/src/pages/book/[resource].ics.ts +38 -0
- package/src/pages/book/index.astro +47 -0
- package/src/pages/book/manage/[token].astro +108 -0
- package/src/pages/calendar/[slug].ics.ts +27 -0
- package/src/pages/calendar/feed.ics.ts +15 -0
- package/src/pages/calendar/index.astro +191 -0
- package/src/pages/embed/book/[resource]/[link].astro +33 -0
- package/src/pages/embed/calendar/[slug].astro +43 -0
- package/src/pages/events/[slug].astro +74 -0
- package/src/pages/events/[slug].ics.ts +25 -0
- package/src/pages/index.astro +9 -3
- package/src/pages/legal/privacy.astro +4 -0
- package/src/pages/legal/terms.astro +4 -0
- package/src/pages/links.astro +33 -7
- package/src/pages/llms.txt.ts +4 -0
- package/src/pages/preview/[type]/[id].astro +34 -8
- package/src/pages/search.astro +40 -20
- package/src/pages/sitemap.xml.ts +16 -1
- package/src/styles/admin.css +928 -105
- package/src/styles/cards.css +101 -60
- package/src/styles/editor.css +532 -102
- package/src/styles/email-settings.css +117 -0
- package/src/styles/sections.css +12 -0
- package/src/styles/site.css +938 -278
- package/src/styles/theme-editor.css +135 -0
- package/src/theme-sdk/contract.d.mts +619 -0
- package/src/theme-sdk/contract.mjs +80 -0
- package/src/theme-sdk/index.ts +15 -0
- package/src/theme-sdk/tokens.d.mts +148 -0
- package/src/theme-sdk/tokens.mjs +52 -0
- package/src/themes/editorial/templates/home.astro +4 -4
- package/src/themes/editorial/templates/post-minimal.astro +2 -2
- package/src/themes/editorial/theme.css +22 -37
- package/src/themes/editorial/theme.json +23 -3
- package/src/themes/field/theme.json +26 -9
- package/src/themes/ink/theme.json +30 -12
- package/src/themes/night/theme.css +4 -7
- package/src/themes/night/theme.json +27 -10
- package/src/virtual.d.ts +14 -0
- package/src/worker.ts +5 -1
package/src/styles/site.css
CHANGED
|
@@ -1,296 +1,577 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
1
|
+
/* Public site styles ("Ink v2" component kit).
|
|
2
|
+
Wrapped in @layer base so theme CSS (inlined unlayered by Site.astro)
|
|
3
|
+
always wins ties, regardless of bundle order in the built head.
|
|
4
|
+
|
|
5
|
+
Every color, radius and shadow reads a token emitted by lib/themeTokens.ts
|
|
6
|
+
(light + dark palettes, --r-*, --sh-*, --space). Design rules:
|
|
7
|
+
- labels are a 7px rounded-square marker + text, never a filled pill
|
|
8
|
+
- controls are rounded rects (--r-sm/10–12px), never 999px capsules
|
|
9
|
+
- selection = tinted fill + stronger text, never a colored edge stripe */
|
|
3
10
|
@layer base {
|
|
4
11
|
*, *::before, *::after { box-sizing: border-box; }
|
|
5
|
-
/*
|
|
6
|
-
|
|
12
|
+
/* Fallbacks only — the active theme's inlined :root block overrides these. */
|
|
13
|
+
:root {
|
|
14
|
+
--bg: #f6f5f2; --ink: #17181c; --muted: #62646c; --line: #e5e2db; --accent: #3355ff;
|
|
15
|
+
--panel: #fdfcfa; --soft: #efede8; --accent-ink: #fff; --accent-text: #2344e0;
|
|
16
|
+
--btn: var(--ink); --btn-ink: var(--bg); --code-bg: #1b1c21;
|
|
17
|
+
--success: #127442; --danger: #b42f2f; --warning: #8a5f0a;
|
|
18
|
+
--sh-1: 0 1px 2px rgb(23 24 28 / 5%);
|
|
19
|
+
--sh-2: 0 1px 2px rgb(23 24 28 / 4%), 0 8px 24px -12px rgb(23 24 28 / 14%);
|
|
20
|
+
--sh-3: 0 2px 6px rgb(23 24 28 / 6%), 0 24px 48px -20px rgb(23 24 28 / 28%);
|
|
21
|
+
--font-heading: 'Geist', ui-sans-serif, system-ui, sans-serif;
|
|
22
|
+
--font-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
|
|
23
|
+
--font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
|
|
24
|
+
--display-weight: 650; --display-tracking: -0.04em; --base-size: 17px;
|
|
25
|
+
--r-sm: 10px; --r: 16px; --r-lg: 24px; --space: 1;
|
|
26
|
+
--content-width: 720px; --wide-width: 1080px;
|
|
27
|
+
}
|
|
28
|
+
/* derived — color-mix() so a theme.css override of a base token cascades */
|
|
7
29
|
:root {
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--soft: #eceae5;
|
|
15
|
-
--font-heading: 'Inter', system-ui, -apple-system, sans-serif;
|
|
16
|
-
--font-body: 'Inter', system-ui, -apple-system, sans-serif;
|
|
17
|
-
--content-width: 760px;
|
|
30
|
+
--ink-2: color-mix(in srgb, var(--ink) 82%, var(--bg));
|
|
31
|
+
--line-2: color-mix(in srgb, var(--line), var(--ink) 10%);
|
|
32
|
+
--hover: color-mix(in srgb, var(--ink) 5%, transparent);
|
|
33
|
+
--accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
|
|
34
|
+
--glass: color-mix(in srgb, var(--bg) 76%, transparent);
|
|
35
|
+
--gutter: 20px;
|
|
18
36
|
}
|
|
37
|
+
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
|
|
19
38
|
body {
|
|
20
39
|
margin: 0;
|
|
21
40
|
background: var(--bg);
|
|
22
41
|
color: var(--ink);
|
|
23
42
|
font-family: var(--font-body);
|
|
24
|
-
font-size:
|
|
43
|
+
font-size: var(--base-size);
|
|
25
44
|
line-height: 1.65;
|
|
26
45
|
-webkit-font-smoothing: antialiased;
|
|
46
|
+
text-rendering: optimizeLegibility;
|
|
47
|
+
overflow-x: clip;
|
|
48
|
+
}
|
|
49
|
+
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
|
|
50
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
|
|
51
|
+
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
|
|
52
|
+
img { max-width: 100%; height: auto; }
|
|
53
|
+
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
|
|
54
|
+
h1 { font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.08; }
|
|
55
|
+
p { text-wrap: pretty; }
|
|
56
|
+
hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
|
|
57
|
+
.skip-link {
|
|
58
|
+
position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-sm);
|
|
59
|
+
background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; transition: top 0.15s;
|
|
27
60
|
}
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
.site-header
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.site-
|
|
61
|
+
.skip-link:focus { top: 12px; }
|
|
62
|
+
|
|
63
|
+
/* ---- header -------------------------------------------------------------- */
|
|
64
|
+
.site-header { position: sticky; top: 0; z-index: 40; padding: 12px var(--gutter); }
|
|
65
|
+
.site-header-in { max-width: var(--wide-width); margin: 0 auto; display: flex; align-items: center; gap: 16px; min-height: 52px; }
|
|
66
|
+
.site-header[data-style='floating'] .site-header-in {
|
|
67
|
+
padding: 7px 8px 7px 18px; border-radius: calc(var(--r) + 2px);
|
|
68
|
+
background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
|
|
69
|
+
border: 1px solid var(--line); box-shadow: var(--sh-1);
|
|
70
|
+
}
|
|
71
|
+
.site-header[data-style='bar'] {
|
|
72
|
+
padding: 0 var(--gutter); background: var(--glass); border-bottom: 1px solid var(--line);
|
|
73
|
+
-webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
|
|
74
|
+
}
|
|
75
|
+
.site-header[data-style='bar'] .site-header-in { min-height: 64px; }
|
|
76
|
+
.site-header[data-style='minimal'] { position: relative; padding-top: 22px; }
|
|
77
|
+
.site-header[data-style='centered'] { position: relative; padding-top: 26px; }
|
|
78
|
+
.site-header[data-style='centered'] .site-header-in { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
|
|
79
|
+
.site-header[data-style='centered'] .brand { flex-basis: 100%; justify-content: center; font-size: 22px; }
|
|
80
|
+
.site-header[data-style='centered'] .site-nav { margin: 0; }
|
|
81
|
+
|
|
82
|
+
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
|
|
83
|
+
.brand img.brand-logo { height: 28px; width: auto; display: block; }
|
|
84
|
+
.site-nav { display: flex; gap: 2px; margin: 0 auto; min-width: 0; }
|
|
85
|
+
.site-nav a {
|
|
86
|
+
padding: 6px 12px; border-radius: 9px; font-size: 14.5px; color: var(--muted); text-decoration: none; white-space: nowrap;
|
|
87
|
+
transition: background-color 0.15s, color 0.15s;
|
|
88
|
+
}
|
|
89
|
+
.site-nav a:hover { color: var(--ink); background: var(--hover); }
|
|
90
|
+
.site-nav a[aria-current='page'] { color: var(--ink); background: var(--panel); box-shadow: var(--sh-1); font-weight: 550; }
|
|
91
|
+
.site-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
|
|
92
|
+
.site-nav + .site-tools { margin-left: 0; }
|
|
93
|
+
.icon-btn {
|
|
94
|
+
width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; padding: 0;
|
|
95
|
+
border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer;
|
|
96
|
+
transition: background-color 0.15s, color 0.15s;
|
|
97
|
+
}
|
|
98
|
+
.icon-btn:hover { background: var(--soft); color: var(--ink); }
|
|
99
|
+
.icon-btn svg { display: block; }
|
|
100
|
+
.scheme-toggle .i-sun { display: none; }
|
|
101
|
+
:root[data-scheme='dark'] .scheme-toggle .i-sun { display: block; }
|
|
102
|
+
:root[data-scheme='dark'] .scheme-toggle .i-moon { display: none; }
|
|
103
|
+
@media (prefers-color-scheme: dark) {
|
|
104
|
+
:root:not([data-scheme='light']) .scheme-toggle .i-sun { display: block; }
|
|
105
|
+
:root:not([data-scheme='light']) .scheme-toggle .i-moon { display: none; }
|
|
106
|
+
}
|
|
107
|
+
.menu-btn { display: none; }
|
|
43
108
|
|
|
44
109
|
/* language switcher — rendered when acms({ i18n }) lists >1 locale */
|
|
45
|
-
.lang-switch { display: inline-flex;
|
|
46
|
-
.lang-switch a { padding:
|
|
47
|
-
.lang-switch a:hover { color: var(--ink);
|
|
48
|
-
.lang-switch a.on
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.site-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
110
|
+
.lang-switch { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
|
|
111
|
+
.lang-switch a { padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 1.5; }
|
|
112
|
+
.lang-switch a:hover { color: var(--ink); }
|
|
113
|
+
.lang-switch a.on { background: var(--panel); color: var(--ink); box-shadow: var(--sh-1); }
|
|
114
|
+
|
|
115
|
+
/* phone menu: bottom sheet */
|
|
116
|
+
dialog.site-menu {
|
|
117
|
+
margin: auto 0 0; width: 100%; max-width: 100%; max-height: 86vh; border: 0;
|
|
118
|
+
padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
|
|
119
|
+
border-radius: 22px 22px 0 0; background: var(--panel); color: var(--ink);
|
|
120
|
+
box-shadow: 0 -20px 40px -12px rgb(0 0 0 / 28%);
|
|
121
|
+
}
|
|
122
|
+
dialog.site-menu[open] { animation: sheet-up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
|
|
123
|
+
dialog.site-menu::backdrop { background: rgb(10 10 12 / 42%); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
|
|
124
|
+
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
|
|
125
|
+
.site-menu-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 12px; }
|
|
126
|
+
.site-menu nav { display: flex; flex-direction: column; gap: 2px; }
|
|
127
|
+
.site-menu nav a {
|
|
128
|
+
display: flex; justify-content: space-between; align-items: center; padding: 13px 12px; border-radius: 12px;
|
|
129
|
+
font-size: 17px; font-weight: 550; color: var(--ink); text-decoration: none;
|
|
130
|
+
}
|
|
131
|
+
.site-menu nav a svg { color: var(--muted); }
|
|
132
|
+
.site-menu nav a[aria-current='page'] { background: var(--soft); }
|
|
133
|
+
.site-menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
|
|
134
|
+
.site-menu-actions { display: flex; gap: 6px; }
|
|
135
|
+
|
|
136
|
+
/* ---- page frame ------------------------------------------------------------ */
|
|
137
|
+
main.site-main { max-width: calc(var(--content-width) + 2 * var(--gutter)); margin: 0 auto; padding: calc(28px * var(--space)) var(--gutter) calc(96px * var(--space)); }
|
|
138
|
+
/* break out of the reading column to the wide layout width */
|
|
139
|
+
.wide { margin-inline: calc((100% - min(var(--wide-width), 100vw - 2 * var(--gutter))) / 2); }
|
|
140
|
+
|
|
141
|
+
/* ---- footer ---------------------------------------------------------------- */
|
|
142
|
+
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
|
|
143
|
+
.site-footer-in { max-width: calc(var(--wide-width) + 2 * var(--gutter)); margin: 0 auto; padding: 44px var(--gutter) 36px; }
|
|
144
|
+
.site-footer[data-style='simple'] .site-footer-in { max-width: calc(var(--content-width) + 2 * var(--gutter)); padding-top: 28px; }
|
|
145
|
+
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-bottom: 30px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
|
|
146
|
+
.footer-blurb { margin: 10px 0 16px; max-width: 36ch; color: var(--muted); }
|
|
147
|
+
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
|
|
148
|
+
.footer-col h2 { font: 550 13px/1.4 var(--font-body); letter-spacing: 0; color: var(--muted); margin: 0 0 4px; }
|
|
149
|
+
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
|
|
150
|
+
.footer-col a:hover { color: var(--ink); }
|
|
151
|
+
.footer-nav, .social-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 14px; }
|
|
152
|
+
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
|
|
153
|
+
.footer-nav a:hover { color: var(--ink); }
|
|
154
|
+
.social-nav { gap: 6px 14px; }
|
|
155
|
+
.social-nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
|
|
156
|
+
.social-nav a:hover { color: var(--ink); }
|
|
157
|
+
.social-nav a.has-icon {
|
|
158
|
+
width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
|
|
159
|
+
background: var(--soft); color: var(--ink-2); transition: background-color 0.15s, color 0.15s;
|
|
160
|
+
}
|
|
161
|
+
.social-nav a.has-icon:hover { background: var(--line); color: var(--ink); }
|
|
162
|
+
.social-nav:has(.has-icon) { gap: 6px; }
|
|
163
|
+
.footer-text { font-size: 13px; }
|
|
164
|
+
.footer-text p { margin: 0 0 4px; }
|
|
165
|
+
.footer-text a { color: var(--muted); }
|
|
166
|
+
.footer-text a:hover { color: var(--ink); }
|
|
167
|
+
|
|
168
|
+
/* ---- responsive chrome ------------------------------------------------------ */
|
|
169
|
+
@media (max-width: 800px) {
|
|
170
|
+
:root { --gutter: 16px; }
|
|
171
|
+
.site-header { padding: 10px 12px; }
|
|
172
|
+
.site-header[data-style='floating'] .site-header-in { padding: 6px 6px 6px 14px; }
|
|
173
|
+
.site-header[data-style='centered'] .brand { flex-basis: auto; font-size: 17px; }
|
|
174
|
+
.site-header[data-style='centered'] .site-header-in { justify-content: space-between; }
|
|
175
|
+
.site-nav, .site-tools .lang-switch, .site-tools .scheme-toggle { display: none; }
|
|
176
|
+
.menu-btn { display: grid; }
|
|
177
|
+
.site-nav + .site-tools { margin-left: auto; }
|
|
178
|
+
.site-tools .pc-search-trigger { width: 36px; min-width: 0; padding: 0; justify-content: center; border-radius: 50%; }
|
|
179
|
+
.pc-search-label, .pc-search-hint { display: none; }
|
|
180
|
+
.footer-cols { grid-template-columns: 1fr 1fr; }
|
|
181
|
+
.footer-brand { grid-column: 1 / -1; }
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* ---- buttons ---------------------------------------------------------------- */
|
|
185
|
+
.btn, .w-btn {
|
|
186
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
187
|
+
height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
|
|
188
|
+
font: 550 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
|
|
189
|
+
transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, border-color 0.15s, color 0.15s;
|
|
190
|
+
}
|
|
191
|
+
.btn.primary, .w-btn.primary { background: var(--btn); color: var(--btn-ink); box-shadow: var(--sh-2); }
|
|
192
|
+
.btn.primary:hover, .w-btn.primary:hover { transform: translateY(-1px); box-shadow: var(--sh-3); }
|
|
193
|
+
.btn.accent { background: var(--accent); color: var(--accent-ink); }
|
|
194
|
+
.btn.secondary, .w-btn.outline { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
|
|
195
|
+
.btn.secondary:hover, .w-btn.outline:hover { background: var(--soft); }
|
|
196
|
+
.btn.ghost { background: none; color: var(--ink-2); }
|
|
197
|
+
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
|
|
198
|
+
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
|
|
199
|
+
.btn svg, .w-btn svg { width: 16px; height: 16px; flex: none; }
|
|
200
|
+
|
|
201
|
+
/* ---- labels (tags, flags) — marker + text, never a pill ---------------------- */
|
|
202
|
+
.tag {
|
|
203
|
+
display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; line-height: 1.4;
|
|
204
|
+
color: var(--ink-2); text-decoration: none; white-space: nowrap;
|
|
205
|
+
}
|
|
206
|
+
.tag::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 2px; background: var(--tc, var(--muted)); }
|
|
207
|
+
a.tag:hover { color: var(--ink); }
|
|
208
|
+
.tag.is-accent { color: var(--accent-text); --tc: var(--accent); }
|
|
209
|
+
|
|
210
|
+
/* ---- notices ------------------------------------------------------------------ */
|
|
211
|
+
.notice { border-radius: var(--r-sm); padding: 10px 14px; font-size: 14.5px; margin: 0 0 18px; background: var(--soft); color: var(--ink); }
|
|
212
|
+
.notice.is-warning { background: color-mix(in srgb, var(--warning) 14%, var(--panel)); }
|
|
213
|
+
.notice.is-danger { background: color-mix(in srgb, var(--danger) 12%, var(--panel)); }
|
|
214
|
+
|
|
215
|
+
/* ---- prose ------------------------------------------------------------------ */
|
|
216
|
+
pre {
|
|
217
|
+
background: var(--code-bg); color: #e6e7ec; border-radius: var(--r); padding: 16px 18px; margin: 24px 0;
|
|
218
|
+
overflow-x: auto; font: 13.5px/1.65 var(--font-mono); position: relative; box-shadow: var(--sh-2);
|
|
219
|
+
}
|
|
220
|
+
/* language strip, emitted by src/lib/highlightCode.ts */
|
|
221
|
+
pre[data-language] { padding-top: 50px; }
|
|
60
222
|
pre[data-language]::before {
|
|
61
|
-
content: attr(data-language); position: absolute; top:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
223
|
+
content: attr(data-language); position: absolute; top: 0; left: 0; right: 0;
|
|
224
|
+
padding: 9px 18px; font: 500 12px/1.5 var(--font-mono); color: #8e919c; text-transform: lowercase;
|
|
225
|
+
border-bottom: 1px solid rgb(255 255 255 / 7%);
|
|
226
|
+
}
|
|
227
|
+
.code-copy {
|
|
228
|
+
position: absolute; top: 7px; right: 10px; border: 0; border-radius: 7px; cursor: pointer;
|
|
229
|
+
background: rgb(255 255 255 / 8%); color: #c8cad2; font: 500 12px/1 var(--font-mono); padding: 5px 9px;
|
|
230
|
+
opacity: 0; transition: opacity 0.15s, background-color 0.15s;
|
|
231
|
+
}
|
|
232
|
+
pre:hover .code-copy, .code-copy:focus-visible, .code-copy.is-done { opacity: 1; }
|
|
233
|
+
.code-copy:hover { background: rgb(255 255 255 / 14%); }
|
|
234
|
+
pre .hljs-comment, pre .hljs-quote { color: #7d818c; font-style: italic; }
|
|
235
|
+
pre .hljs-keyword, pre .hljs-selector-tag, pre .hljs-doctag, pre .hljs-template-tag, pre .hljs-operator { color: #ff8f7a; }
|
|
236
|
+
pre .hljs-string, pre .hljs-regexp, pre .hljs-addition { color: #a8d4ff; }
|
|
237
|
+
pre .hljs-title, pre .hljs-section { color: #d4b5ff; }
|
|
69
238
|
pre .hljs-number, pre .hljs-literal, pre .hljs-attr, pre .hljs-variable, pre .hljs-template-variable,
|
|
70
239
|
pre .hljs-type, pre .hljs-selector-class, pre .hljs-selector-id, pre .hljs-meta,
|
|
71
|
-
pre .hljs-attribute, pre .hljs-property { color: #
|
|
72
|
-
pre .hljs-name, pre .hljs-tag, pre .hljs-bullet { color: #
|
|
73
|
-
pre .hljs-built_in, pre .hljs-symbol { color: #
|
|
240
|
+
pre .hljs-attribute, pre .hljs-property { color: #7fc4ff; }
|
|
241
|
+
pre .hljs-name, pre .hljs-tag, pre .hljs-bullet { color: #85e89d; }
|
|
242
|
+
pre .hljs-built_in, pre .hljs-symbol { color: #ffab70; }
|
|
74
243
|
pre .hljs-deletion { color: #ffa198; }
|
|
75
244
|
pre .hljs-emphasis { font-style: italic; }
|
|
76
245
|
pre .hljs-strong { font-weight: 700; }
|
|
77
|
-
code { font-family:
|
|
78
|
-
|
|
79
|
-
blockquote {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
246
|
+
code { font-family: var(--font-mono); font-size: 0.88em; }
|
|
247
|
+
:not(pre) > code { background: var(--soft); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
|
|
248
|
+
blockquote {
|
|
249
|
+
margin: 30px 0; padding: 22px 26px 22px 58px; border-radius: var(--r); background: var(--soft);
|
|
250
|
+
color: var(--ink); font-size: 1.12em; line-height: 1.5; letter-spacing: -0.01em; position: relative;
|
|
251
|
+
}
|
|
252
|
+
blockquote::before {
|
|
253
|
+
content: '\201C'; position: absolute; left: 20px; top: 10px; font: 600 54px/1 var(--font-heading); color: var(--accent);
|
|
254
|
+
}
|
|
255
|
+
blockquote > :first-child { margin-top: 0; }
|
|
256
|
+
blockquote > :last-child { margin-bottom: 0; }
|
|
257
|
+
mark { background: color-mix(in srgb, #f5c542 48%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
|
|
258
|
+
table {
|
|
259
|
+
width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 15px; line-height: 1.5;
|
|
260
|
+
border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
|
|
261
|
+
}
|
|
262
|
+
th, td { border: 0; border-top: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
|
|
263
|
+
tr:first-child > th, tr:first-child > td { border-top: 0; }
|
|
264
|
+
th { background: var(--soft); font-weight: 600; font-size: 14px; color: var(--ink); }
|
|
83
265
|
th p, td p { margin: 0; }
|
|
84
266
|
/* saved empty cells serialize as <p></p> — keep them one line tall */
|
|
85
267
|
th p:empty::before, td p:empty::before { content: '\00a0'; }
|
|
268
|
+
ul, ol { padding-left: 1.3em; }
|
|
269
|
+
li::marker { color: var(--muted); }
|
|
86
270
|
|
|
87
|
-
/* widgets */
|
|
88
|
-
.w-hero { padding:
|
|
271
|
+
/* ---- widgets ------------------------------------------------------------------ */
|
|
272
|
+
.w-hero { padding: calc(64px * var(--space)) 0 calc(44px * var(--space)); }
|
|
89
273
|
.w-hero.center { text-align: center; }
|
|
90
|
-
.w-hero h1 { font-size:
|
|
91
|
-
.w-hero .sub { font-size:
|
|
92
|
-
.w-hero.center .sub { margin-left: auto; margin-right: auto; }
|
|
93
|
-
.w-
|
|
94
|
-
.w-
|
|
95
|
-
.w-
|
|
96
|
-
.w-
|
|
97
|
-
.w-
|
|
98
|
-
.w-embed iframe, .w-custom iframe { width: 100%; border: 0; border-radius: 10px; display: block; }
|
|
99
|
-
|
|
100
|
-
/* blog */
|
|
101
|
-
.post-list { list-style: none; padding: 0; margin: 0; }
|
|
102
|
-
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
|
|
103
|
-
.post-list a { font-size: 20px; font-weight: 650; text-decoration: none; color: var(--ink); }
|
|
104
|
-
.post-list a:hover { color: var(--accent); }
|
|
105
|
-
.post-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
|
|
106
|
-
.tag { display: inline-block; background: var(--soft); color: var(--muted); font-size: 12.5px; padding: 2px 9px; border-radius: 99px; margin-right: 6px; text-decoration: none; }
|
|
107
|
-
a.tag:hover { background: var(--accent); color: #fff; }
|
|
108
|
-
.byline { color: var(--muted); }
|
|
109
|
-
.tag-kicker { text-transform: uppercase; letter-spacing: 0.09em; font-size: 12px; color: var(--accent); margin: 24px 0 0; font-weight: 600; }
|
|
110
|
-
.tag-kicker + h1 { margin-top: 4px; }
|
|
111
|
-
.tag-desc { color: var(--muted); font-size: 17px; margin-top: -8px; }
|
|
112
|
-
.post-cover {
|
|
113
|
-
display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
|
|
114
|
-
border-radius: 12px; margin: 12px 0 28px; background: var(--soft);
|
|
115
|
-
}
|
|
274
|
+
.w-hero h1 { font-size: clamp(38px, 6.2vw, 64px); line-height: 1.03; margin: 0 0 16px; }
|
|
275
|
+
.w-hero .sub { font-size: 18.5px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; max-width: 54ch; }
|
|
276
|
+
.w-hero.center .sub, .w-hero.center h1 { margin-left: auto; margin-right: auto; }
|
|
277
|
+
.w-hero .w-btn + .w-btn { margin-left: 8px; }
|
|
278
|
+
.w-image figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
|
|
279
|
+
.w-image img { border-radius: var(--r); display: block; }
|
|
280
|
+
.w-spacer.s { height: calc(16px * var(--space)); } .w-spacer.m { height: calc(40px * var(--space)); } .w-spacer.l { height: calc(80px * var(--space)); }
|
|
281
|
+
.w-embed iframe, .w-custom iframe { width: 100%; border: 0; border-radius: var(--r); display: block; }
|
|
116
282
|
|
|
117
|
-
/*
|
|
118
|
-
.
|
|
119
|
-
.
|
|
120
|
-
.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
.
|
|
125
|
-
.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
|
|
129
|
-
color: var(--ink); font-weight: 600; text-decoration: none; font-size: 16px;
|
|
130
|
-
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
|
131
|
-
}
|
|
132
|
-
.link-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(30 31 36 / 8%); }
|
|
133
|
-
.link-btn .link-label { grid-column: 2; }
|
|
134
|
-
.link-ico { grid-column: 1; display: grid; place-items: center; width: 28px; height: 28px; }
|
|
135
|
-
.link-ico svg { width: 22px; height: 22px; fill: currentColor; }
|
|
136
|
-
.link-ico img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; display: block; }
|
|
137
|
-
.link-ico-emoji { font-size: 20px; line-height: 1; }
|
|
138
|
-
.link-heading { font-size: 20px; margin: 26px 0 2px; letter-spacing: -0.01em; }
|
|
139
|
-
.link-text { color: var(--muted); font-size: 15px; margin: 10px 0; white-space: pre-wrap; }
|
|
140
|
-
.link-spacer { width: 100%; }
|
|
141
|
-
.link-html { margin: 14px 0; text-align: initial; }
|
|
142
|
-
.link-html > :first-child { margin-top: 0; }
|
|
143
|
-
.link-html > :last-child { margin-bottom: 0; }
|
|
283
|
+
/* ---- page heads + empty states --------------------------------------------------- */
|
|
284
|
+
.page-head { padding: calc(20px * var(--space)) 0 calc(22px * var(--space)); }
|
|
285
|
+
.page-head h1 { font-size: clamp(36px, 5vw, 48px); margin: 0 0 8px; }
|
|
286
|
+
.page-lede { color: var(--muted); font-size: 17px; margin: 0; max-width: 62ch; }
|
|
287
|
+
.page-kicker { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
|
|
288
|
+
.muted-note { color: var(--muted); }
|
|
289
|
+
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 44px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
|
|
290
|
+
.empty-state b { font-size: 16px; color: var(--ink); margin-top: 8px; }
|
|
291
|
+
.empty-state > span:not(.empty-icon) { color: var(--muted); font-size: 14.5px; }
|
|
292
|
+
.empty-state .btn { margin-top: 14px; }
|
|
293
|
+
.empty-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--soft); color: var(--muted); display: grid; place-items: center; }
|
|
144
294
|
|
|
145
|
-
|
|
295
|
+
/* ---- filter tabs -------------------------------------------------------------- */
|
|
296
|
+
.filter-tabs { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
|
|
297
|
+
.filter-tabs a { flex: none; padding: 0 0 12px; font-size: 14.5px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
|
|
298
|
+
.filter-tabs a small { font-size: 12px; opacity: 0.85; font-variant-numeric: tabular-nums; }
|
|
299
|
+
.filter-tabs a:hover { color: var(--ink); }
|
|
300
|
+
.filter-tabs a[aria-current='page'] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
|
|
146
301
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
302
|
+
/* ---- post cards ---------------------------------------------------------------- */
|
|
303
|
+
.post-grid { display: grid; gap: 40px 24px; margin: 0 0 8px; }
|
|
304
|
+
.post-grid.is-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
305
|
+
.post-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
|
|
306
|
+
.post-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
307
|
+
.post-card-media { display: block; text-decoration: none; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--soft); border: 1px solid var(--line); box-shadow: var(--sh-1); }
|
|
308
|
+
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
|
|
309
|
+
.post-card:hover .post-card-media img { transform: scale(1.025); }
|
|
310
|
+
.post-card-tile { width: 100%; height: 100%; display: grid; place-items: end start; padding: 18px 20px; background: var(--soft); position: relative; }
|
|
311
|
+
.post-card-tile::before { content: ''; position: absolute; top: 18px; left: 20px; width: 12px; height: 12px; border-radius: 3px; background: var(--tc, var(--muted)); }
|
|
312
|
+
.post-card-tile span { font: var(--display-weight) 26px/1.1 var(--font-heading); letter-spacing: -0.03em; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
313
|
+
.post-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
314
|
+
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); }
|
|
315
|
+
.post-card-title { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
|
|
316
|
+
.post-card-title a { color: var(--ink); text-decoration: none; }
|
|
317
|
+
.post-card-title a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
|
|
318
|
+
.post-card .tag { position: relative; z-index: 1; }
|
|
319
|
+
.post-card-title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
|
|
320
|
+
.post-card-excerpt { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
321
|
+
.post-card-author { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 550; color: var(--ink); text-decoration: none; margin-top: 6px; }
|
|
154
322
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
.tag-hero { margin-bottom: 8px; }
|
|
161
|
-
.post-item { display: flex; gap: 18px; align-items: flex-start; }
|
|
162
|
-
.post-thumb { flex: 0 0 150px; }
|
|
163
|
-
.post-thumb img { width: 150px; aspect-ratio: 1.6 / 1; object-fit: cover; border-radius: 8px; background: var(--soft); display: block; }
|
|
164
|
-
@media (max-width: 560px) { .post-item { flex-direction: column; } .post-thumb, .post-thumb img { width: 100%; flex-basis: auto; } }
|
|
323
|
+
/* feature: split card */
|
|
324
|
+
.post-card.is-feature {
|
|
325
|
+
display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; margin: 0 0 48px;
|
|
326
|
+
background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2);
|
|
327
|
+
transition: transform 0.2s, box-shadow 0.2s;
|
|
165
328
|
}
|
|
329
|
+
.post-card.is-feature:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
|
|
330
|
+
.post-card.is-feature .post-card-media { aspect-ratio: auto; min-height: 340px; border: 0; border-radius: 0; box-shadow: none; }
|
|
331
|
+
.post-card.is-feature .post-card-body { padding: 34px 36px; justify-content: center; gap: 12px; }
|
|
332
|
+
.post-card.is-feature .post-card-title { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; letter-spacing: -0.035em; font-weight: var(--display-weight); }
|
|
333
|
+
.post-card.is-feature .post-card-excerpt { font-size: 16px; -webkit-line-clamp: 3; }
|
|
166
334
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
.dyn-postlist .dp-title a:hover { color: var(--accent); }
|
|
175
|
-
.dyn-postlist .dp-excerpt { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
|
|
176
|
-
.dyn-postlist .dp-thumb img { width: 100%; border-radius: 8px; object-fit: cover; background: var(--soft); display: block; }
|
|
335
|
+
/* row: list layout */
|
|
336
|
+
.post-card.is-row { flex-direction: row; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
|
|
337
|
+
.post-card.is-row:first-child { padding-top: 4px; }
|
|
338
|
+
.post-card.is-row .post-card-body { flex: 1; }
|
|
339
|
+
.post-card.is-row .post-card-title { font-size: 21px; }
|
|
340
|
+
.post-card-thumb { flex: 0 0 132px; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--soft); position: relative; z-index: 1; }
|
|
341
|
+
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
177
342
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
.dyn-postlist[data-layout='list'] .dp-thumb img { aspect-ratio: 1.6 / 1; }
|
|
343
|
+
/* avatars (icon placeholder — never a letter in a colored disc) */
|
|
344
|
+
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); display: block; }
|
|
345
|
+
.avatar-empty { display: grid; place-items: center; color: var(--muted); }
|
|
182
346
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
347
|
+
/* ---- pagination ---------------------------------------------------------------- */
|
|
348
|
+
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 44px 0 0; font-size: 14px; }
|
|
349
|
+
.pager-nums { display: flex; gap: 4px; }
|
|
350
|
+
.pager-nums a, .pager-gap { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; }
|
|
351
|
+
.pager-nums a:hover { background: var(--hover); }
|
|
352
|
+
.pager-nums a[aria-current='page'] { background: var(--btn); color: var(--btn-ink); font-weight: 600; }
|
|
353
|
+
.pager-step { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--panel); }
|
|
354
|
+
.pager-step:hover { background: var(--soft); }
|
|
355
|
+
.pager-step.is-off { color: var(--muted); opacity: 0.5; }
|
|
356
|
+
.pager-gap { color: var(--muted); }
|
|
186
357
|
|
|
187
|
-
|
|
188
|
-
|
|
358
|
+
/* ---- archives ------------------------------------------------------------------ */
|
|
359
|
+
.archive-group { font-size: 22px; margin: 36px 0 18px; }
|
|
360
|
+
.archive-back { margin-top: 36px; font-size: 14.5px; }
|
|
361
|
+
.profile-head { display: flex; align-items: center; gap: 24px; padding: calc(20px * var(--space)) 0 calc(34px * var(--space)); }
|
|
362
|
+
.profile-head h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 0 0 8px; }
|
|
363
|
+
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); box-shadow: 0 0 0 4px var(--panel), var(--sh-2); }
|
|
364
|
+
.profile-count { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
|
|
189
365
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
366
|
+
@media (max-width: 900px) {
|
|
367
|
+
.post-grid.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
368
|
+
.post-card.is-feature { grid-template-columns: 1fr; }
|
|
369
|
+
.post-card.is-feature .post-card-media { min-height: 0; aspect-ratio: 16 / 9; }
|
|
370
|
+
.post-card.is-feature .post-card-body { padding: 24px; }
|
|
371
|
+
}
|
|
372
|
+
@media (max-width: 600px) {
|
|
373
|
+
.post-grid.is-cards { grid-template-columns: 1fr; gap: 32px; }
|
|
374
|
+
.post-card.is-row { gap: 16px; align-items: flex-start; }
|
|
375
|
+
.post-card-thumb { flex-basis: 92px; }
|
|
376
|
+
.post-card.is-row .post-card-title { font-size: 18px; }
|
|
377
|
+
.profile-head { flex-direction: column; align-items: flex-start; gap: 16px; }
|
|
194
378
|
}
|
|
195
379
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
380
|
+
/* ---- legacy list (older theme templates still emit these) ----------------------- */
|
|
381
|
+
.post-list { list-style: none; padding: 0; margin: 0; }
|
|
382
|
+
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
|
|
383
|
+
.post-list li > a:not(.tag), .post-list .post-item > div > a:not(.tag) { font-size: 20px; font-weight: 650; text-decoration: none; color: var(--ink); }
|
|
384
|
+
.post-meta { color: var(--muted); font-size: 14px; }
|
|
385
|
+
.byline { color: var(--muted); }
|
|
386
|
+
.byline a { color: var(--ink); text-decoration: none; font-weight: 550; }
|
|
387
|
+
.byline a:hover { text-decoration: underline; }
|
|
388
|
+
.tag-kicker { font-size: 13px; color: var(--muted); margin: 24px 0 0; font-weight: 550; }
|
|
389
|
+
.tag-kicker + h1 { margin-top: 4px; }
|
|
390
|
+
.tag-desc { color: var(--muted); font-size: 17px; margin-top: -8px; }
|
|
391
|
+
.post-item { display: flex; gap: 18px; align-items: flex-start; }
|
|
392
|
+
.post-thumb { flex: 0 0 150px; }
|
|
393
|
+
.post-thumb img { width: 150px; aspect-ratio: 1.6 / 1; object-fit: cover; border-radius: var(--r-sm); background: var(--soft); display: block; }
|
|
202
394
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
395
|
+
/* ---- post page ------------------------------------------------------------------ */
|
|
396
|
+
.post-header { padding: calc(32px * var(--space)) 0 calc(28px * var(--space)); }
|
|
397
|
+
.post-kicker { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; }
|
|
398
|
+
.post-kicker:empty { display: none; }
|
|
399
|
+
.post-header h1 { font-size: clamp(34px, 4.8vw, 50px); line-height: 1.06; margin: 0 0 16px; }
|
|
400
|
+
.post-dek { font-size: 19.5px; line-height: 1.5; color: var(--muted); margin: 0 0 24px; }
|
|
401
|
+
.post-byline-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
|
|
402
|
+
.post-byline { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
|
403
|
+
.post-byline > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
|
|
404
|
+
.post-byline .byline { font-size: 14.5px; }
|
|
405
|
+
.post-byline .post-meta { font-size: 13.5px; }
|
|
406
|
+
.avatar-stack { display: flex; }
|
|
407
|
+
.avatar-stack .avatar { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--bg); }
|
|
408
|
+
.avatar-stack .avatar + .avatar { margin-left: -10px; }
|
|
409
|
+
.post-share { display: flex; align-items: center; gap: 6px; }
|
|
410
|
+
.post-share a, .post-share-copy {
|
|
411
|
+
display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
|
|
412
|
+
border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); background: var(--panel); cursor: pointer;
|
|
413
|
+
transition: background-color 0.15s, color 0.15s;
|
|
414
|
+
}
|
|
415
|
+
.post-share a:hover, .post-share-copy:hover { color: var(--ink); background: var(--soft); }
|
|
416
|
+
.post-share-copy.is-copied { color: var(--success); }
|
|
417
|
+
|
|
418
|
+
.post-cover-wrap { margin: 0 0 calc(40px * var(--space)); }
|
|
419
|
+
.post-cover-wrap:not(.is-full) { margin-inline: calc((100% - min(1000px, 100vw - 2 * var(--gutter))) / 2); }
|
|
420
|
+
.post-cover { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-lg); background: var(--soft); box-shadow: var(--sh-2); }
|
|
421
|
+
.post-cover.is-full { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); border-radius: 0; box-shadow: none; aspect-ratio: auto; max-height: 64vh; }
|
|
211
422
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
423
|
+
.post-layout { position: relative; }
|
|
424
|
+
.post-content { font-size: calc(var(--base-size) + 0px); line-height: 1.75; }
|
|
425
|
+
.post-content > :first-child { margin-top: 0; }
|
|
426
|
+
.post-content h1 { font-size: 30px; margin: 1.4em 0 0.4em; letter-spacing: -0.03em; }
|
|
427
|
+
.post-content h2 { font-size: 26px; margin: 1.7em 0 0.45em; letter-spacing: -0.025em; }
|
|
428
|
+
.post-content h3 { font-size: 20px; margin: 1.5em 0 0.4em; }
|
|
429
|
+
.post-content p, .post-content ul, .post-content ol { margin: 0 0 1.15em; }
|
|
430
|
+
.post-content li { margin: 0.3em 0; }
|
|
431
|
+
.post-content li > p, .post-content :is(th, td) p { margin: 0; }
|
|
432
|
+
.post-content a { text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
|
|
433
|
+
.post-content a:hover { text-decoration-color: currentColor; }
|
|
434
|
+
.post-content img { border-radius: var(--r); }
|
|
435
|
+
|
|
436
|
+
.post-toc { display: none; }
|
|
437
|
+
@media (min-width: 1240px) {
|
|
438
|
+
.post-layout.has-toc .post-toc {
|
|
439
|
+
display: block; position: absolute; top: 0; bottom: 0; right: calc(100% + 48px); width: 200px;
|
|
215
440
|
}
|
|
216
|
-
.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
441
|
+
.post-toc nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
|
|
442
|
+
}
|
|
443
|
+
.post-toc-title { font-size: 12.5px; font-weight: 550; color: var(--muted); padding: 0 10px 8px; }
|
|
444
|
+
.post-toc a { padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.4; transition: background-color 0.15s, color 0.15s; }
|
|
445
|
+
.post-toc a[data-depth='1'] { padding-left: 22px; }
|
|
446
|
+
.post-toc a:hover { color: var(--ink); }
|
|
447
|
+
.post-toc a[aria-current] { background: var(--soft); color: var(--ink); font-weight: 550; }
|
|
448
|
+
|
|
449
|
+
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
|
|
450
|
+
.read-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
|
|
222
451
|
|
|
223
|
-
|
|
224
|
-
|
|
452
|
+
.author-card {
|
|
453
|
+
display: flex; gap: 16px; align-items: center; margin: 48px 0 0; padding: 20px 22px;
|
|
454
|
+
background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
|
|
455
|
+
}
|
|
456
|
+
.author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); }
|
|
457
|
+
.author-card-text { flex: 1; min-width: 0; }
|
|
458
|
+
.author-card-name { font-size: 17px; letter-spacing: -0.015em; margin: 0 0 2px; }
|
|
459
|
+
.author-card-name a { color: var(--ink); text-decoration: none; }
|
|
460
|
+
.author-card-name a:hover { text-decoration: underline; }
|
|
461
|
+
.author-card-bio { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.5; }
|
|
462
|
+
.author-card-more { flex: none; }
|
|
463
|
+
@media (max-width: 600px) {
|
|
464
|
+
.author-card { flex-wrap: wrap; }
|
|
465
|
+
.author-card-more { margin-left: 72px; }
|
|
466
|
+
.post-byline-row { flex-wrap: wrap; }
|
|
467
|
+
.post-cover { border-radius: var(--r); aspect-ratio: 16 / 10; }
|
|
225
468
|
}
|
|
226
469
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
.post-content > :first-child { margin-top: 0; }
|
|
236
|
-
|
|
237
|
-
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
|
|
238
|
-
.related-card h3 { font-size: 18px; line-height: 1.3; margin: 4px 0 4px; }
|
|
239
|
-
.related-card h3 a { color: var(--ink); text-decoration: none; }
|
|
240
|
-
.related-card h3 a:hover { color: var(--accent); }
|
|
241
|
-
.related-thumb img { width: 100%; aspect-ratio: 1.7 / 1; object-fit: cover; border-radius: 8px; background: var(--soft); display: block; margin-bottom: 8px; }
|
|
242
|
-
.related-excerpt { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }
|
|
470
|
+
.related { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
|
|
471
|
+
.related-title { font-size: 24px; margin: 0 0 22px; }
|
|
472
|
+
|
|
473
|
+
/* ---- overlay feature image (post.cover = 'overlay') --------------------------------- */
|
|
474
|
+
.post-hero {
|
|
475
|
+
position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: calc(-28px * var(--space));
|
|
476
|
+
min-height: clamp(360px, 66vh, 680px);
|
|
477
|
+
display: flex; align-items: flex-end; justify-content: center; margin-bottom: 44px;
|
|
243
478
|
}
|
|
479
|
+
.site-header:is([data-style='floating'], [data-style='bar']) ~ main .post-hero { margin-top: calc(-1 * (76px + 28px * var(--space))); }
|
|
480
|
+
.post-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
481
|
+
.post-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 74%) 0%, rgb(0 0 0 / 34%) 32%, transparent 60%); }
|
|
482
|
+
.post-hero-content { position: relative; width: 100%; max-width: calc(var(--content-width) + 2 * var(--gutter)); padding: 0 var(--gutter) 46px; color: #fff; }
|
|
483
|
+
.post-hero-content h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); margin: 10px 0 12px; text-shadow: 0 1px 16px rgb(0 0 0 / 40%); }
|
|
484
|
+
.post-hero-content .post-meta, .post-hero-content .byline, .post-hero-content .byline a { color: rgb(255 255 255 / 88%); }
|
|
485
|
+
.post-hero-content .tag { color: #fff; }
|
|
486
|
+
@media (max-width: 640px) { .post-hero { min-height: 320px; } .post-hero-content { padding-bottom: 30px; } }
|
|
244
487
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
488
|
+
/* ---- links page (/links) ------------------------------------------------------------ */
|
|
489
|
+
.links-page { max-width: 480px; margin: 0 auto; text-align: center; padding: 48px 0 24px; }
|
|
490
|
+
.links-page h1 { font-size: 26px; letter-spacing: -0.03em; margin: 0 0 6px; }
|
|
491
|
+
.links-avatar {
|
|
492
|
+
width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px;
|
|
493
|
+
box-shadow: 0 0 0 4px var(--panel), var(--sh-2);
|
|
251
494
|
}
|
|
495
|
+
.links-page .tagline { color: var(--muted); margin: 0 0 18px; white-space: pre-wrap; font-size: 15.5px; }
|
|
496
|
+
.links-page .social-nav { justify-content: center; margin: 0 0 26px; }
|
|
497
|
+
.link-btn {
|
|
498
|
+
display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px;
|
|
499
|
+
margin: 0 0 10px; padding: 10px 12px; min-height: 58px;
|
|
500
|
+
background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px);
|
|
501
|
+
color: var(--ink); font-weight: 550; text-decoration: none; font-size: 15.5px; box-shadow: var(--sh-1);
|
|
502
|
+
transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
|
|
503
|
+
}
|
|
504
|
+
.link-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
|
|
505
|
+
.link-btn .link-label { grid-column: 2; }
|
|
506
|
+
.link-btn::after { content: '\2192'; grid-column: 3; color: var(--muted); font-size: 16px; }
|
|
507
|
+
.link-ico { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--soft); }
|
|
508
|
+
.link-ico svg { width: 18px; height: 18px; fill: currentColor; }
|
|
509
|
+
.link-ico img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; display: block; }
|
|
510
|
+
.link-ico-emoji { font-size: 18px; line-height: 1; }
|
|
511
|
+
.links-page .link-btn:first-of-type:not([style]) { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
|
|
512
|
+
.links-page .link-btn:first-of-type:not([style]) .link-ico { background: color-mix(in srgb, var(--btn-ink) 14%, transparent); }
|
|
513
|
+
.links-page .link-btn:first-of-type:not([style])::after { color: inherit; opacity: 0.6; }
|
|
514
|
+
.link-heading { font-size: 13px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin: 26px 0 10px; font-family: var(--font-body); }
|
|
515
|
+
.link-text { color: var(--muted); font-size: 15px; margin: 10px 0; white-space: pre-wrap; }
|
|
516
|
+
.link-spacer { width: 100%; }
|
|
517
|
+
.link-html { margin: 14px 0; text-align: initial; }
|
|
518
|
+
.link-html > :first-child { margin-top: 0; }
|
|
519
|
+
.link-html > :last-child { margin-bottom: 0; }
|
|
520
|
+
.links-foot { margin-top: 30px; font-size: 12.5px; color: var(--muted); }
|
|
521
|
+
.links-foot a { color: var(--muted); }
|
|
252
522
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
margin-bottom: 40px;
|
|
262
|
-
}
|
|
263
|
-
.post-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
264
|
-
.post-hero-scrim {
|
|
265
|
-
position: absolute; inset: 0;
|
|
266
|
-
background: linear-gradient(to top, rgb(0 0 0 / 74%) 0%, rgb(0 0 0 / 34%) 32%, transparent 60%);
|
|
267
|
-
}
|
|
268
|
-
.post-hero-content {
|
|
269
|
-
position: relative; width: 100%; max-width: var(--content-width);
|
|
270
|
-
padding: 0 20px 44px; text-align: center; color: #fff;
|
|
271
|
-
}
|
|
272
|
-
.post-hero-content h1 { color: #fff; margin: 6px 0 10px; text-shadow: 0 1px 16px rgb(0 0 0 / 40%); }
|
|
273
|
-
.post-hero-content .post-meta { color: rgb(255 255 255 / 85%); }
|
|
274
|
-
.post-hero-content .byline a { color: rgb(255 255 255 / 85%); }
|
|
275
|
-
.post-hero-content .byline a:hover { color: #fff; }
|
|
276
|
-
.post-hero-content .tag { background: rgb(255 255 255 / 16%); color: rgb(255 255 255 / 90%); }
|
|
277
|
-
.post-hero-content a.tag:hover { background: rgb(255 255 255 / 30%); color: #fff; }
|
|
278
|
-
@media (max-width: 640px) { .post-hero { min-height: 300px; } .post-hero-content { padding-bottom: 30px; } }
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/* announcement bar */
|
|
523
|
+
/* ---- 404 ------------------------------------------------------------------------------ */
|
|
524
|
+
.not-found { max-width: 520px; margin: 8vh auto 0; }
|
|
525
|
+
.not-found .empty-state { padding: 48px 24px; }
|
|
526
|
+
.not-found h1 { font-size: 28px; letter-spacing: -0.03em; margin: 10px 0 4px; }
|
|
527
|
+
.not-found form { display: flex; gap: 6px; width: 100%; max-width: 380px; margin: 18px auto 0; background: var(--soft); border-radius: 12px; padding: 4px; }
|
|
528
|
+
.not-found input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; padding: 0 12px; color: var(--ink); outline: none; }
|
|
529
|
+
|
|
530
|
+
/* ---- announcement bar ------------------------------------------------------------------ */
|
|
282
531
|
.announcement-bar {
|
|
283
532
|
display: flex; align-items: center; justify-content: center; gap: 10px;
|
|
284
|
-
background: var(--
|
|
285
|
-
font-size: 14px; padding: 9px
|
|
533
|
+
background: var(--btn); color: var(--btn-ink);
|
|
534
|
+
font-size: 14px; padding: 9px 44px; text-align: center; position: relative;
|
|
286
535
|
}
|
|
287
536
|
.announcement-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
|
|
288
537
|
.announcement-x {
|
|
289
538
|
position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
|
|
290
|
-
background: none; border: 0; color: inherit; opacity: 0.7; cursor: pointer;
|
|
291
|
-
|
|
539
|
+
background: none; border: 0; color: inherit; opacity: 0.7; cursor: pointer; font-size: 12px; padding: 6px; border-radius: 6px;
|
|
540
|
+
}
|
|
541
|
+
.announcement-x:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
542
|
+
|
|
543
|
+
/* dynamic post-list blocks (expanded at request time) */
|
|
544
|
+
.dyn-postlist { display: grid; gap: 24px; margin: 32px 0; }
|
|
545
|
+
.dyn-postlist.is-empty p { color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 22px; text-align: center; font-size: 14px; margin: 0; }
|
|
546
|
+
.dyn-postlist .dp-meta { color: var(--muted); font-size: 13px; }
|
|
547
|
+
.dyn-postlist .dp-title { margin: 4px 0 4px; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
|
|
548
|
+
.dyn-postlist .dp-title a { color: var(--ink); text-decoration: none; }
|
|
549
|
+
.dyn-postlist .dp-title a:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
|
|
550
|
+
.dyn-postlist .dp-excerpt { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
|
|
551
|
+
.dyn-postlist .dp-thumb { display: block; border-radius: var(--r); overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
|
|
552
|
+
.dyn-postlist .dp-thumb img { width: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
|
|
553
|
+
.dyn-postlist .dp-item:hover .dp-thumb img { transform: scale(1.025); }
|
|
554
|
+
.dyn-postlist[data-layout='list'] .dp-item { display: flex; gap: 20px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
|
|
555
|
+
.dyn-postlist[data-layout='list'] .dp-item:last-child { border-bottom: none; padding-bottom: 0; }
|
|
556
|
+
.dyn-postlist[data-layout='list'] .dp-thumb { flex: 0 0 150px; border-radius: var(--r-sm); }
|
|
557
|
+
.dyn-postlist[data-layout='list'] .dp-thumb img { aspect-ratio: 4 / 3; }
|
|
558
|
+
.dyn-postlist[data-layout='grid'] { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
|
|
559
|
+
.dyn-postlist[data-layout='grid'] .dp-thumb { margin-bottom: 12px; }
|
|
560
|
+
.dyn-postlist[data-layout='grid'] .dp-thumb img { aspect-ratio: 16 / 10; }
|
|
561
|
+
.dyn-postlist[data-layout='grid'] .dp-title { font-size: 18px; }
|
|
562
|
+
.dyn-postlist[data-layout='feature'] .dp-thumb { margin-bottom: 14px; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
|
|
563
|
+
.dyn-postlist[data-layout='feature'] .dp-thumb img { aspect-ratio: 2 / 1; }
|
|
564
|
+
.dyn-postlist[data-layout='feature'] .dp-title { font-size: 30px; letter-spacing: -0.035em; }
|
|
565
|
+
@media (max-width: 560px) {
|
|
566
|
+
.dyn-postlist[data-layout='list'] .dp-item { flex-direction: column; align-items: stretch; }
|
|
567
|
+
.dyn-postlist[data-layout='list'] .dp-thumb { flex-basis: auto; width: 100%; }
|
|
568
|
+
.post-item { flex-direction: column; } .post-thumb, .post-thumb img { width: 100%; flex-basis: auto; }
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
@media (prefers-reduced-motion: reduce) {
|
|
572
|
+
*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
|
|
573
|
+
}
|
|
292
574
|
}
|
|
293
|
-
.announcement-x:hover { opacity: 1; }
|
|
294
575
|
|
|
295
576
|
/* Calendar card (dynamic block): month / week / upcoming views rendered by
|
|
296
577
|
src/lib/calendar/render.ts. Everything is driven by the scoped --cal-*
|
|
@@ -306,51 +587,52 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
306
587
|
--cal-line: var(--line);
|
|
307
588
|
--cal-accent: var(--accent);
|
|
308
589
|
--cal-soft: var(--soft);
|
|
309
|
-
--cal-radius:
|
|
590
|
+
--cal-radius: var(--r-lg);
|
|
310
591
|
--cal-dot-2: #2f9e6e; --cal-dot-3: #b3541e; --cal-dot-4: #8250df; --cal-dot-5: #c2255c; --cal-dot-6: #0c8599;
|
|
311
592
|
margin: 28px 0;
|
|
312
593
|
}
|
|
313
|
-
.pc-cal-heading { font-family: var(--font-heading); font-size: 24px; font-weight:
|
|
594
|
+
.pc-cal-heading { font-family: var(--font-heading); font-size: 24px; font-weight: 650; letter-spacing: -0.025em; color: var(--cal-ink); margin: 0 0 3px; }
|
|
314
595
|
.pc-cal-sub { color: var(--cal-muted); font-size: 14px; margin: 0 0 16px; }
|
|
315
|
-
.pc-cal-frame { position: relative; background: var(--cal-bg); border: 1px solid var(--cal-line); border-radius: var(--cal-radius); }
|
|
596
|
+
.pc-cal-frame { position: relative; background: var(--cal-bg); border: 1px solid var(--cal-line); border-radius: var(--cal-radius); box-shadow: var(--sh-1); }
|
|
316
597
|
|
|
317
|
-
.pc-cal-toolbar { display: flex; align-items: center; gap:
|
|
318
|
-
.pc-cal-title { font-weight:
|
|
598
|
+
.pc-cal-toolbar { display: flex; align-items: center; gap: 6px; padding: 14px 16px 14px 20px; }
|
|
599
|
+
.pc-cal-title { font-weight: 650; font-size: 18px; letter-spacing: -0.02em; color: var(--cal-ink); margin-right: auto; }
|
|
319
600
|
.pc-cal-btn {
|
|
320
|
-
font:
|
|
321
|
-
border: 1px solid var(--cal-line); border-radius:
|
|
601
|
+
font: 550 13px/1 var(--font-body); color: var(--cal-ink); background: var(--cal-bg);
|
|
602
|
+
border: 1px solid var(--cal-line); border-radius: 10px; min-width: 34px; height: 34px; padding: 0 11px; cursor: pointer;
|
|
322
603
|
}
|
|
323
|
-
.pc-cal-btn:hover {
|
|
604
|
+
.pc-cal-btn:hover { background: var(--cal-soft); }
|
|
324
605
|
|
|
325
606
|
/* month view — minmax(0, 1fr) so long event names can never stretch a
|
|
326
607
|
column: all seven stay exactly equal and chips truncate instead */
|
|
327
608
|
.pc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
|
|
328
609
|
.pc-cal-dow {
|
|
329
|
-
font-size:
|
|
330
|
-
color: var(--cal-muted); text-align:
|
|
610
|
+
font-size: 12px; font-weight: 550;
|
|
611
|
+
color: var(--cal-muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--cal-line);
|
|
331
612
|
}
|
|
332
|
-
.pc-cal-day { min-width: 0; min-height:
|
|
613
|
+
.pc-cal-day { min-width: 0; min-height: 88px; border-bottom: 1px solid var(--cal-line); border-right: 1px solid var(--cal-line); padding: 6px 6px; font-size: 12px; }
|
|
333
614
|
.pc-cal-day:nth-child(7n + 7) { border-right: none; }
|
|
334
615
|
.pc-cal-grid .pc-cal-day:nth-last-child(-n + 7) { border-bottom: none; }
|
|
335
616
|
.pc-cal-date {
|
|
336
|
-
display: flex; width: fit-content;
|
|
337
|
-
min-width:
|
|
617
|
+
display: flex; width: fit-content; align-items: center; justify-content: center;
|
|
618
|
+
min-width: 26px; height: 26px; border-radius: 50%; font-weight: 550; color: var(--cal-ink); padding: 0 5px; font-variant-numeric: tabular-nums;
|
|
338
619
|
}
|
|
339
620
|
.pc-cal-day.is-out .pc-cal-date { color: var(--cal-muted); opacity: 0.55; }
|
|
340
|
-
.pc-cal-day.is-today .pc-cal-date, .pc-cal-wday.is-today .pc-cal-date { background: var(--cal-accent); color: var(--
|
|
621
|
+
.pc-cal-day.is-today .pc-cal-date, .pc-cal-wday.is-today .pc-cal-date { background: var(--cal-accent); color: var(--accent-ink); }
|
|
341
622
|
|
|
342
623
|
/* event chips (buttons: they open the details popover). One line, title
|
|
343
624
|
truncates with an ellipsis — chips never wrap or widen their column. The
|
|
344
625
|
color dot only appears on multi-calendar cards (.is-multi), where it
|
|
345
626
|
carries meaning; on a single calendar it's just noise. */
|
|
346
627
|
.pc-cal-event {
|
|
347
|
-
display: flex; width: 100%; min-width: 0; align-items: center; gap:
|
|
628
|
+
display: flex; width: 100%; min-width: 0; align-items: center; gap: 6px; margin-top: 3px; padding: 2px 4px;
|
|
348
629
|
border: 0; border-radius: 6px; background: none; color: var(--cal-ink);
|
|
349
|
-
font-family: var(--font-body); font-size:
|
|
630
|
+
font-family: var(--font-body); font-size: 12px; line-height: 1.5; text-align: left; cursor: pointer;
|
|
350
631
|
}
|
|
351
632
|
.pc-cal-event:hover { background: var(--cal-soft); }
|
|
352
|
-
|
|
353
|
-
|
|
633
|
+
/* marker + text: the event's calendar color on multi-calendar cards, the
|
|
634
|
+
accent otherwise */
|
|
635
|
+
.pc-cal-event::before { content: ''; display: block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 2px; background: var(--cal-dot, var(--cal-accent)); }
|
|
354
636
|
[data-cal='1'] { --cal-dot: var(--cal-dot-2); }
|
|
355
637
|
[data-cal='2'] { --cal-dot: var(--cal-dot-3); }
|
|
356
638
|
[data-cal='3'] { --cal-dot: var(--cal-dot-4); }
|
|
@@ -372,16 +654,15 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
372
654
|
.pc-cal-agenda { list-style: none; margin: 0; padding: 6px 0; }
|
|
373
655
|
.pc-cal-agenda li + li { border-top: 1px solid var(--cal-line); }
|
|
374
656
|
.pc-cal-row {
|
|
375
|
-
display: flex; width: 100%; gap: 14px; align-items: baseline; padding:
|
|
657
|
+
display: flex; width: 100%; gap: 14px; align-items: baseline; padding: 12px 20px;
|
|
376
658
|
border: 0; background: none; color: var(--cal-ink); font-family: var(--font-body);
|
|
377
659
|
font-size: 13.5px; text-align: left; cursor: pointer;
|
|
378
660
|
}
|
|
379
661
|
.pc-cal-row:hover { background: var(--cal-soft); }
|
|
380
662
|
.pc-cal-row .d {
|
|
381
|
-
flex: 0 0 96px; font-weight:
|
|
382
|
-
text-transform: uppercase; letter-spacing: 0.05em;
|
|
663
|
+
flex: 0 0 96px; font-weight: 550; font-size: 13px; color: var(--cal-muted);
|
|
383
664
|
}
|
|
384
|
-
.pc-calendar.is-multi .pc-cal-row .d::before { content: ''; display: inline-block; width:
|
|
665
|
+
.pc-calendar.is-multi .pc-cal-row .d::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--cal-dot, var(--cal-accent)); margin-right: 7px; vertical-align: 1px; }
|
|
385
666
|
.pc-cal-row .t { color: var(--cal-muted); font-variant-numeric: tabular-nums; margin-left: auto; font-size: 12.5px; }
|
|
386
667
|
|
|
387
668
|
/* footer: the Google Calendar link lives alone on a quiet line */
|
|
@@ -392,8 +673,8 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
392
673
|
/* event details popover */
|
|
393
674
|
.pc-cal-pop {
|
|
394
675
|
position: absolute; z-index: 5; max-width: 300px; padding: 12px 14px 12px;
|
|
395
|
-
background: var(--cal-bg); border: 1px solid var(--cal-line); border-radius:
|
|
396
|
-
box-shadow:
|
|
676
|
+
background: var(--cal-bg); border: 1px solid var(--cal-line); border-radius: var(--r-sm);
|
|
677
|
+
box-shadow: var(--sh-3); font-size: 12.5px; color: var(--cal-ink);
|
|
397
678
|
}
|
|
398
679
|
.pc-cal-pop-title { display: block; font-size: 13.5px; padding-right: 20px; }
|
|
399
680
|
.pc-cal-pop-when { color: var(--cal-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
|
|
@@ -412,7 +693,7 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
412
693
|
under the date, like the Google mobile grid */
|
|
413
694
|
.pc-cal-day { min-height: 52px; padding: 4px 2px; }
|
|
414
695
|
.pc-cal-grid .pc-cal-event {
|
|
415
|
-
width: 7px; height: 7px; padding: 0; margin: 4px auto 0; border-radius:
|
|
696
|
+
width: 7px; height: 7px; padding: 0; margin: 4px auto 0; border-radius: 2px;
|
|
416
697
|
background: var(--cal-dot, var(--cal-accent)); overflow: hidden;
|
|
417
698
|
}
|
|
418
699
|
.pc-cal-grid .pc-cal-event .t, .pc-cal-grid .pc-cal-event b, .pc-cal-grid .pc-cal-event::before { display: none; }
|
|
@@ -433,12 +714,14 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
433
714
|
tokens — theme CSS and Settings → Code injection are unlayered, so either
|
|
434
715
|
overrides any of this without !important. */
|
|
435
716
|
@layer base {
|
|
436
|
-
.
|
|
437
|
-
display: inline-flex; align-items: center;
|
|
438
|
-
|
|
717
|
+
.pc-search-trigger {
|
|
718
|
+
display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 164px; padding: 0 7px 0 11px;
|
|
719
|
+
border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
|
|
720
|
+
color: var(--muted); font-size: 13.5px; text-decoration: none; transition: border-color 0.15s, color 0.15s;
|
|
439
721
|
}
|
|
440
|
-
.
|
|
441
|
-
.pc-search-trigger svg { display: block; }
|
|
722
|
+
.pc-search-trigger:hover { color: var(--ink); border-color: var(--line-2); }
|
|
723
|
+
.pc-search-trigger svg { display: block; flex: none; }
|
|
724
|
+
.pc-search-hint { margin-left: auto; font: 500 11px/1.6 var(--font-mono); background: var(--soft); border-radius: 6px; padding: 0 6px; color: var(--muted); }
|
|
442
725
|
|
|
443
726
|
dialog.pc-search {
|
|
444
727
|
--search-bg: var(--panel);
|
|
@@ -446,8 +729,8 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
446
729
|
--search-muted: var(--muted);
|
|
447
730
|
--search-line: var(--line);
|
|
448
731
|
--search-accent: var(--accent);
|
|
449
|
-
--search-radius:
|
|
450
|
-
--search-veil: rgb(
|
|
732
|
+
--search-radius: var(--r);
|
|
733
|
+
--search-veil: rgb(10 10 12 / 0.4);
|
|
451
734
|
--search-width: 640px;
|
|
452
735
|
--search-top: 9vh;
|
|
453
736
|
width: min(var(--search-width), 92vw);
|
|
@@ -460,7 +743,7 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
460
743
|
display: flex; align-items: center; gap: 12px;
|
|
461
744
|
background: var(--search-bg); color: var(--search-ink);
|
|
462
745
|
border-radius: var(--search-radius);
|
|
463
|
-
|
|
746
|
+
border: 1px solid var(--search-line); box-shadow: var(--sh-3);
|
|
464
747
|
padding: 15px 18px;
|
|
465
748
|
}
|
|
466
749
|
.pc-search-box svg { flex: none; color: var(--search-muted); }
|
|
@@ -480,16 +763,13 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
480
763
|
.pc-search-results {
|
|
481
764
|
margin-top: 10px; padding: 2px 0 8px;
|
|
482
765
|
background: var(--search-bg); border-radius: var(--search-radius);
|
|
483
|
-
box-shadow:
|
|
766
|
+
border: 1px solid var(--search-line); box-shadow: var(--sh-3); padding: 2px 6px 8px;
|
|
484
767
|
max-height: min(56vh, 460px); overflow-y: auto;
|
|
485
768
|
}
|
|
486
|
-
.pc-search-group {
|
|
487
|
-
font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
|
|
488
|
-
color: var(--search-muted); padding: 14px 18px 4px;
|
|
489
|
-
}
|
|
769
|
+
.pc-search-group { font-size: 12.5px; font-weight: 550; color: var(--search-muted); padding: 14px 12px 4px; }
|
|
490
770
|
a.pc-search-hit {
|
|
491
771
|
display: flex; align-items: baseline; gap: 10px;
|
|
492
|
-
padding:
|
|
772
|
+
padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--search-ink); font-size: 15px;
|
|
493
773
|
}
|
|
494
774
|
a.pc-search-hit:hover, a.pc-search-hit.sel {
|
|
495
775
|
background: color-mix(in srgb, var(--search-ink) 6%, transparent);
|
|
@@ -510,3 +790,383 @@ a.tag:hover { background: var(--accent); color: #fff; }
|
|
|
510
790
|
dialog.pc-search { --search-top: 4vh; width: 94vw; }
|
|
511
791
|
}
|
|
512
792
|
}
|
|
793
|
+
|
|
794
|
+
/* ---- Calendar module: event cards, event page, calendar page -------------
|
|
795
|
+
Stable .pc-ev-* / .pc-calpage-* hooks; colors come from the theme tokens so
|
|
796
|
+
every theme (and Settings → Code injection) restyles them. */
|
|
797
|
+
@layer base {
|
|
798
|
+
.pc-cal-event.is-cancelled b, .pc-cal-row.is-cancelled .ti { text-decoration: line-through; color: var(--cal-muted); }
|
|
799
|
+
.pc-cal-pop-flag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--danger); margin-bottom: 3px; }
|
|
800
|
+
.pc-cal-pop-link { display: inline-block; margin-top: 9px; font-weight: 600; font-size: 12.5px; color: var(--cal-accent); text-decoration: none; }
|
|
801
|
+
.pc-cal-pop-link:hover { text-decoration: underline; }
|
|
802
|
+
|
|
803
|
+
/* date tile: month band + day number (cards, event page) */
|
|
804
|
+
.pc-ev-tile {
|
|
805
|
+
display: inline-flex; flex-direction: column; align-items: stretch; width: 52px; flex: 0 0 auto;
|
|
806
|
+
border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); text-align: center;
|
|
807
|
+
}
|
|
808
|
+
.pc-ev-tile b { display: block; background: var(--soft); color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 0 2px; }
|
|
809
|
+
.pc-ev-tile span { display: block; font-family: var(--font-heading); font-size: 20px; font-weight: 650; line-height: 1.4; color: var(--ink); padding: 1px 0 3px; font-variant-numeric: tabular-nums; }
|
|
810
|
+
|
|
811
|
+
/* cards */
|
|
812
|
+
.pc-ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 1.4em 0; }
|
|
813
|
+
.pc-ev-cards[data-layout='list'] { grid-template-columns: 1fr; gap: 0; }
|
|
814
|
+
.pc-ev-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); transition: box-shadow 0.2s, transform 0.2s; }
|
|
815
|
+
.pc-ev-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
|
|
816
|
+
.pc-ev-cards[data-layout='list'] .pc-ev-card:hover { transform: none; }
|
|
817
|
+
.pc-ev-cards[data-layout='list'] .pc-ev-card { flex-direction: row; border-radius: 0; border-width: 0 0 1px; background: none; padding: 14px 0; gap: 16px; box-shadow: none; }
|
|
818
|
+
.pc-ev-card-media { display: block; text-decoration: none; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
|
|
819
|
+
.pc-ev-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease-out; }
|
|
820
|
+
.pc-ev-card:hover .pc-ev-card-media img { transform: scale(1.02); }
|
|
821
|
+
.pc-ev-card-media.is-tile { display: grid; place-items: center; }
|
|
822
|
+
.pc-ev-cards[data-layout='list'] .pc-ev-card-media { flex: 0 0 132px; aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
|
|
823
|
+
.pc-ev-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
|
824
|
+
.pc-ev-cards[data-layout='list'] .pc-ev-card-body { padding: 0; }
|
|
825
|
+
.pc-ev-card-when { font-size: 13px; font-weight: 600; color: var(--accent-text); }
|
|
826
|
+
.pc-ev-flag { color: var(--danger); }
|
|
827
|
+
.pc-ev-card-title { font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; margin: 2px 0 0; }
|
|
828
|
+
.pc-ev-card-title a { color: var(--ink); text-decoration: none; }
|
|
829
|
+
.pc-ev-card-title a:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
|
|
830
|
+
.pc-ev-card.is-cancelled .pc-ev-card-title a { text-decoration: line-through; color: var(--muted); }
|
|
831
|
+
.pc-ev-card-excerpt { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
832
|
+
.pc-ev-card-loc { font-size: 13px; color: var(--muted); margin-top: 4px; }
|
|
833
|
+
.pc-ev-card-loc::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--line-2); margin-right: 7px; vertical-align: 2px; }
|
|
834
|
+
.pc-ev-cards.is-single { grid-template-columns: minmax(0, 520px); }
|
|
835
|
+
.pc-ev-empty { color: var(--muted); font-size: 14.5px; margin: 0; }
|
|
836
|
+
.pc-ev-cta {
|
|
837
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; height: 44px; padding: 0 18px;
|
|
838
|
+
background: var(--btn); color: var(--btn-ink); border: 1px solid transparent; border-radius: 12px; box-shadow: var(--sh-2);
|
|
839
|
+
font: 550 15px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
|
|
840
|
+
}
|
|
841
|
+
.pc-ev-cta:hover { transform: translateY(-1px); box-shadow: var(--sh-3); }
|
|
842
|
+
.pc-ev-cta.is-outline { background: var(--panel); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
|
|
843
|
+
.pc-ev-cta.is-outline:hover { background: var(--soft); transform: none; }
|
|
844
|
+
|
|
845
|
+
/* event page — breaks out of the reading column to a wider layout */
|
|
846
|
+
.pc-ev-page, .pc-calpage { margin-inline: calc((100% - min(var(--wide-width), 100vw - 2 * var(--gutter))) / 2); }
|
|
847
|
+
.pc-ev-preview { background: var(--accent-soft); border-radius: var(--r-sm); padding: 8px 14px; font-size: 14px; margin: 0 0 16px; }
|
|
848
|
+
.pc-ev-hero { margin: 8px 0 34px; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); aspect-ratio: 21 / 9; box-shadow: var(--sh-2); }
|
|
849
|
+
.pc-ev-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
850
|
+
.pc-ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
|
|
851
|
+
/* calendar + tag labels: marker + text, never pills */
|
|
852
|
+
.pc-ev-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
|
|
853
|
+
.pc-ev-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; color: var(--ink-2); text-decoration: none; }
|
|
854
|
+
a.pc-ev-chip:hover { color: var(--ink); }
|
|
855
|
+
.pc-ev-chip i { width: 7px; height: 7px; border-radius: 2px; }
|
|
856
|
+
.pc-ev-chip.is-tag::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--muted); }
|
|
857
|
+
.pc-ev-title { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; letter-spacing: var(--display-tracking); font-weight: var(--display-weight); margin: 0 0 14px; }
|
|
858
|
+
.pc-ev-page.is-cancelled .pc-ev-title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
|
|
859
|
+
.pc-ev-cancelled { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14.5px; margin: 0 0 16px; }
|
|
860
|
+
.pc-ev-cancelled b { color: var(--danger); }
|
|
861
|
+
.pc-ev-lede { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; }
|
|
862
|
+
.pc-ev-side {
|
|
863
|
+
position: sticky; top: 96px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
|
|
864
|
+
padding: 20px; display: flex; flex-direction: column; gap: 0; font-size: 14.5px; box-shadow: var(--sh-2);
|
|
865
|
+
}
|
|
866
|
+
.pc-ev-date { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; }
|
|
867
|
+
.pc-ev-date > div b { display: block; font-size: 15px; line-height: 1.3; }
|
|
868
|
+
.pc-ev-date > div span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
|
|
869
|
+
.pc-ev-fact { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
|
|
870
|
+
.pc-ev-fact svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; margin-top: 1px; }
|
|
871
|
+
.pc-ev-fact b { display: block; font-weight: 600; line-height: 1.35; }
|
|
872
|
+
.pc-ev-fact span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
|
|
873
|
+
.pc-ev-fact a { color: var(--accent-text); }
|
|
874
|
+
.pc-ev-side .pc-ev-cta { width: 100%; margin-top: 14px; }
|
|
875
|
+
.pc-ev-add { position: relative; margin-top: 8px; }
|
|
876
|
+
.pc-ev-add > summary, .pc-ev-share {
|
|
877
|
+
display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
|
|
878
|
+
height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel);
|
|
879
|
+
font: 550 14.5px/1.2 var(--font-body); color: var(--ink); cursor: pointer; list-style: none;
|
|
880
|
+
}
|
|
881
|
+
.pc-ev-add > summary::-webkit-details-marker { display: none; }
|
|
882
|
+
.pc-ev-add > summary:hover, .pc-ev-share:hover, .pc-ev-add[open] > summary { background: var(--soft); }
|
|
883
|
+
.pc-ev-add svg, .pc-ev-share svg { width: 16px; height: 16px; }
|
|
884
|
+
.pc-ev-add-menu {
|
|
885
|
+
position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--panel);
|
|
886
|
+
border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-3); padding: 5px;
|
|
887
|
+
display: flex; flex-direction: column;
|
|
888
|
+
}
|
|
889
|
+
.pc-ev-add-menu a { padding: 8px 10px; border-radius: 7px; font-size: 14px; color: var(--ink); text-decoration: none; }
|
|
890
|
+
.pc-ev-add-menu a:hover { background: var(--soft); }
|
|
891
|
+
.pc-ev-share { margin-top: 6px; border-color: transparent; background: none; color: var(--muted); }
|
|
892
|
+
.pc-ev-share:hover { color: var(--ink); background: var(--hover); }
|
|
893
|
+
.pc-ev-more { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
|
|
894
|
+
.pc-ev-more h2 { font-size: 24px; margin: 0; }
|
|
895
|
+
.pc-ev-all { font-weight: 550; font-size: 14.5px; color: var(--muted); text-decoration: none; }
|
|
896
|
+
.pc-ev-all:hover { color: var(--ink); }
|
|
897
|
+
|
|
898
|
+
/* calendar page */
|
|
899
|
+
.pc-calpage-head { padding-top: calc(20px * var(--space)); }
|
|
900
|
+
.pc-calpage-head h1 { font-size: clamp(36px, 5vw, 48px); margin: 0 0 8px; }
|
|
901
|
+
.pc-calpage-head p { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 640px; }
|
|
902
|
+
.pc-calpage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
|
|
903
|
+
/* calendar filter: text tabs with the calendar's color marker */
|
|
904
|
+
.pc-calpage-chips { display: flex; gap: 20px; flex-wrap: wrap; align-self: stretch; }
|
|
905
|
+
.pc-calpage-chips a {
|
|
906
|
+
display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; font-size: 14px; color: var(--muted); text-decoration: none;
|
|
907
|
+
}
|
|
908
|
+
.pc-calpage-chips a:hover { color: var(--ink); }
|
|
909
|
+
.pc-calpage-chips a.is-on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
|
|
910
|
+
.pc-calpage-chips i { width: 7px; height: 7px; border-radius: 2px; }
|
|
911
|
+
.pc-calpage-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
|
|
912
|
+
.pc-calpage-views { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
|
|
913
|
+
.pc-calpage-views a { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--muted); text-decoration: none; }
|
|
914
|
+
.pc-calpage-views a:hover { color: var(--ink); }
|
|
915
|
+
.pc-calpage-views a.is-on { background: var(--panel); color: var(--ink); box-shadow: var(--sh-1); }
|
|
916
|
+
.pc-calpage-sub { position: relative; }
|
|
917
|
+
.pc-calpage-sub > summary {
|
|
918
|
+
display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px;
|
|
919
|
+
background: var(--panel); font-size: 13.5px; font-weight: 550; color: var(--ink); cursor: pointer; list-style: none;
|
|
920
|
+
}
|
|
921
|
+
.pc-calpage-sub > summary::-webkit-details-marker { display: none; }
|
|
922
|
+
.pc-calpage-sub > summary svg { width: 15px; height: 15px; }
|
|
923
|
+
.pc-calpage-sub-menu {
|
|
924
|
+
position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 260px; background: var(--panel);
|
|
925
|
+
border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 8px;
|
|
926
|
+
display: flex; flex-direction: column;
|
|
927
|
+
}
|
|
928
|
+
.pc-calpage-sub-menu p { font-size: 13px; color: var(--muted); margin: 4px 8px 8px; line-height: 1.45; }
|
|
929
|
+
.pc-calpage-sub-menu a, .pc-calpage-sub-menu button {
|
|
930
|
+
text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none;
|
|
931
|
+
font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; cursor: pointer;
|
|
932
|
+
}
|
|
933
|
+
.pc-calpage-sub-menu a:hover, .pc-calpage-sub-menu button:hover { background: var(--soft); }
|
|
934
|
+
.pc-calpage .pc-calendar { margin: 0; }
|
|
935
|
+
.pc-calpage-up { margin-top: 38px; }
|
|
936
|
+
.pc-calpage-up h2 { font-size: 24px; margin: 0; }
|
|
937
|
+
.pc-calpage-foot { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
|
|
938
|
+
|
|
939
|
+
/* agenda: list view everywhere, and the default on phones */
|
|
940
|
+
.pc-calpage-agenda, .pc-calpage-strip { display: none; }
|
|
941
|
+
.pc-calpage.view-list .pc-calpage-view { display: none; }
|
|
942
|
+
.pc-calpage.view-list .pc-calpage-agenda { display: block; }
|
|
943
|
+
.pc-agenda-day { padding: 4px 0 10px; scroll-margin-top: 16px; }
|
|
944
|
+
.pc-agenda-day h3 { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 18px 0 4px; }
|
|
945
|
+
.pc-agenda-row {
|
|
946
|
+
display: flex; gap: 14px; align-items: baseline; padding: 10px 12px; margin: 0 -12px; border-radius: 10px;
|
|
947
|
+
color: var(--ink); text-decoration: none;
|
|
948
|
+
}
|
|
949
|
+
a.pc-agenda-row[href]:hover { background: var(--soft); }
|
|
950
|
+
.pc-agenda-row .t { flex: 0 0 76px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
951
|
+
.pc-agenda-row .ti { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
|
|
952
|
+
.pc-agenda-row .ti i { width: 7px; height: 7px; border-radius: 2px; align-self: center; }
|
|
953
|
+
.pc-agenda-row b { font-weight: 600; }
|
|
954
|
+
.pc-agenda-row small { color: var(--muted); font-size: 13px; }
|
|
955
|
+
.pc-agenda-row.is-cancelled b { text-decoration: line-through; color: var(--muted); }
|
|
956
|
+
.pc-calpage-strip { gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 12px; padding: 0 4px 2px; }
|
|
957
|
+
.pc-calpage-strip a {
|
|
958
|
+
flex: 0 0 40px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 7px;
|
|
959
|
+
border-radius: 12px; color: var(--muted); text-decoration: none;
|
|
960
|
+
}
|
|
961
|
+
.pc-calpage-strip a small { font-size: 11px; }
|
|
962
|
+
.pc-calpage-strip a b { font-size: 15px; color: var(--ink); }
|
|
963
|
+
.pc-calpage-strip a i { width: 5px; height: 5px; border-radius: 2px; background: transparent; }
|
|
964
|
+
.pc-calpage-strip a.has i { background: var(--accent); }
|
|
965
|
+
.pc-calpage-strip a.today { background: var(--btn); }
|
|
966
|
+
.pc-calpage-strip a.today small, .pc-calpage-strip a.today b { color: var(--btn-ink); }
|
|
967
|
+
.pc-calpage-strip a.today.has i { background: var(--btn-ink); }
|
|
968
|
+
.pc-embed { padding: 2px; }
|
|
969
|
+
|
|
970
|
+
@media (max-width: 860px) {
|
|
971
|
+
.pc-ev-layout { grid-template-columns: 1fr; gap: 24px; }
|
|
972
|
+
.pc-ev-side { position: static; order: -1; }
|
|
973
|
+
.pc-ev-hero { aspect-ratio: 16 / 9; margin-bottom: 20px; }
|
|
974
|
+
}
|
|
975
|
+
@media (max-width: 640px) {
|
|
976
|
+
.pc-calpage:not(.is-explicit) .pc-calpage-view { display: none; }
|
|
977
|
+
.pc-calpage:not(.is-explicit) .pc-calpage-agenda, .pc-calpage.view-list .pc-calpage-agenda { display: block; }
|
|
978
|
+
.pc-calpage:not(.is-explicit) .pc-calpage-strip, .pc-calpage.view-list .pc-calpage-strip { display: flex; }
|
|
979
|
+
.pc-calpage-tools { margin-left: 0; width: 100%; justify-content: space-between; }
|
|
980
|
+
.pc-calpage-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; }
|
|
981
|
+
.pc-calpage-chips a { flex: 0 0 auto; }
|
|
982
|
+
.pc-ev-cards[data-layout='list'] .pc-ev-card-media { flex-basis: 96px; }
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/* ---- Bookings: directory, resource page, booking flow, manage page -------
|
|
987
|
+
.pc-bk-* / .pc-res-* / .pc-dir-* / .pc-manage-* hooks on theme tokens. */
|
|
988
|
+
@layer base {
|
|
989
|
+
.pc-bkpage, .pc-res, .pc-dir, .pc-manage { margin-inline: calc((100% - min(var(--wide-width), 100vw - 2 * var(--gutter))) / 2); }
|
|
990
|
+
.pc-bk-foot { font-size: 14px; margin: 18px 0 0; }
|
|
991
|
+
.pc-bk-foot a { color: var(--muted); }
|
|
992
|
+
.pc-bk-empty, .pc-bk-hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
|
|
993
|
+
.pc-bk-hint a { color: var(--accent-text); font-weight: 600; }
|
|
994
|
+
.pc-bk-error { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); color: var(--danger); border-radius: var(--r-sm); padding: 9px 12px; font-size: 14px; margin: 0 0 14px; }
|
|
995
|
+
|
|
996
|
+
/* the three-column flow (info · month · times), stacking on phones */
|
|
997
|
+
.pc-bk { display: grid; grid-template-columns: 270px minmax(0, 1fr) 220px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 440px; box-shadow: var(--sh-2); }
|
|
998
|
+
.pc-bk > * { padding: 24px; min-width: 0; }
|
|
999
|
+
.pc-bk-info { border-right: 1px solid var(--line); }
|
|
1000
|
+
.pc-bk-back, .pc-bk-kicker { font-size: 13px; color: var(--muted); text-decoration: none; }
|
|
1001
|
+
.pc-bk-back:hover { color: var(--ink); }
|
|
1002
|
+
.pc-bk-title { font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; margin: 10px 0 8px; }
|
|
1003
|
+
.pc-bk-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
|
|
1004
|
+
.pc-bk-rules { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
|
|
1005
|
+
.pc-bk-rules li { padding: 5px 0; border-top: 1px solid var(--line); }
|
|
1006
|
+
.pc-bk-rules li:first-child { border-top: 0; }
|
|
1007
|
+
.pc-bk-label { display: block; font-size: 13px; font-weight: 550; color: var(--muted); margin: 18px 0 8px; }
|
|
1008
|
+
.pc-bk-lens div { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
1009
|
+
.pc-bk-lens a { border: 1px solid var(--line-2); border-radius: 10px; padding: 5px 11px; font-size: 13.5px; color: var(--ink); text-decoration: none; background: var(--panel); }
|
|
1010
|
+
.pc-bk-lens a:hover { background: var(--soft); }
|
|
1011
|
+
.pc-bk-lens a.is-on { background: var(--btn); border-color: transparent; color: var(--btn-ink); font-weight: 600; }
|
|
1012
|
+
.pc-bk-tz { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
|
|
1013
|
+
.pc-bk-note { font-size: 13px; background: var(--soft); border-radius: var(--r-sm); padding: 8px 10px; margin: 12px 0 0; }
|
|
1014
|
+
.pc-bk-calhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
|
|
1015
|
+
.pc-bk-calhead b { font-size: 16px; font-weight: 600; }
|
|
1016
|
+
.pc-bk-calhead span { display: flex; gap: 4px; }
|
|
1017
|
+
.pc-bk-calhead a, .pc-bk-calhead span > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--panel); }
|
|
1018
|
+
.pc-bk-calhead a:hover { background: var(--soft); }
|
|
1019
|
+
.pc-bk-calhead span > span { color: var(--line-2); }
|
|
1020
|
+
.pc-bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
|
|
1021
|
+
.pc-bk-grid .dow { font-size: 12px; font-weight: 550; color: var(--muted); padding: 4px 0; }
|
|
1022
|
+
.pc-bk-grid .day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 14px; color: color-mix(in srgb, var(--muted) 60%, transparent); text-decoration: none; max-width: 44px; margin: 0 auto; width: 100%; }
|
|
1023
|
+
.pc-bk-grid .day.open { color: var(--accent-text); font-weight: 650; background: var(--accent-soft); }
|
|
1024
|
+
.pc-bk-grid .day.open:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
|
|
1025
|
+
.pc-bk-grid .day.is-on { background: var(--btn); color: var(--btn-ink); }
|
|
1026
|
+
.pc-bk-grid .day.today { box-shadow: inset 0 0 0 1.5px var(--line); }
|
|
1027
|
+
.pc-bk-slots { border-left: 1px solid var(--line); }
|
|
1028
|
+
.pc-bk-slotday { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
|
|
1029
|
+
.pc-bk-slotlist { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
|
|
1030
|
+
.pc-bk-slotlist a { display: grid; place-items: center; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 550; font-size: 14.5px; color: var(--ink); text-decoration: none; background: var(--panel); font-variant-numeric: tabular-nums; transition: background-color 0.15s, color 0.15s; }
|
|
1031
|
+
.pc-bk-slotlist a:hover { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
|
|
1032
|
+
.pc-bk-form { grid-column: span 2; max-width: 520px; }
|
|
1033
|
+
.pc-bk-summary { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; background: var(--soft); border-radius: var(--r-sm); padding: 11px 14px; margin-bottom: 16px; }
|
|
1034
|
+
.pc-bk-summary b { width: 100%; font-size: 15px; }
|
|
1035
|
+
.pc-bk-summary span { color: var(--muted); font-size: 14px; }
|
|
1036
|
+
.pc-bk-summary a { font-size: 13px; font-weight: 600; color: var(--accent-text); margin-left: auto; }
|
|
1037
|
+
.pc-bk-field { display: block; margin-bottom: 12px; }
|
|
1038
|
+
.pc-bk-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
|
|
1039
|
+
.pc-bk-field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
|
|
1040
|
+
.pc-bk-field input, .pc-bk-field select, .pc-bk-field textarea {
|
|
1041
|
+
width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--ink);
|
|
1042
|
+
}
|
|
1043
|
+
.pc-bk-field input:focus, .pc-bk-field select:focus, .pc-bk-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
|
|
1044
|
+
.pc-bk-field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
|
|
1045
|
+
.pc-bk-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 4px 0 14px; }
|
|
1046
|
+
.pc-bk-submit { width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font: 550 15px/1.2 var(--font-body); cursor: pointer; box-shadow: var(--sh-2); transition: transform 0.15s, box-shadow 0.15s; }
|
|
1047
|
+
.pc-bk-submit:hover { transform: translateY(-1px); box-shadow: var(--sh-3); }
|
|
1048
|
+
.pc-bk-fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
|
|
1049
|
+
.pc-bk.is-embed { border: 0; border-radius: 0; }
|
|
1050
|
+
|
|
1051
|
+
/* resource page */
|
|
1052
|
+
.pc-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
|
|
1053
|
+
.pc-res-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); background: var(--soft); display: block; margin-bottom: 16px; }
|
|
1054
|
+
.pc-res-kind { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; color: var(--muted); }
|
|
1055
|
+
.pc-res-kind::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
|
|
1056
|
+
.pc-res-title { font-size: clamp(30px, 4.4vw, 44px); margin: 8px 0 10px; }
|
|
1057
|
+
.pc-res-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 14px; padding: 0; }
|
|
1058
|
+
.pc-res-facts li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
|
|
1059
|
+
.pc-res-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--muted); }
|
|
1060
|
+
.pc-res-desc { color: var(--muted); }
|
|
1061
|
+
.pc-res-links { display: flex; flex-direction: column; gap: 12px; }
|
|
1062
|
+
.pc-res-link { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px; box-shadow: var(--sh-1); }
|
|
1063
|
+
.pc-res-linkhead { display: flex; align-items: center; gap: 8px; }
|
|
1064
|
+
.pc-res-linkhead h2 { font-size: 17px; margin: 0; }
|
|
1065
|
+
.pc-res-linkhead a { color: var(--ink); text-decoration: none; }
|
|
1066
|
+
.pc-res-linkhead a:hover { text-decoration: underline; }
|
|
1067
|
+
.pc-res-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 550; color: var(--muted); }
|
|
1068
|
+
.pc-res-badge::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
|
|
1069
|
+
.pc-res-badge.is-instant { color: var(--success); }
|
|
1070
|
+
.pc-res-link > p { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
|
|
1071
|
+
.pc-res-next { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
1072
|
+
.pc-res-next a { border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 11px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
|
|
1073
|
+
.pc-res-next a:hover { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
|
|
1074
|
+
.pc-res-next a.pc-res-more { border: 0; color: var(--accent-text); padding-inline: 4px; }
|
|
1075
|
+
.pc-res-next a.pc-res-more:hover { background: none; text-decoration: underline; }
|
|
1076
|
+
.pc-res-none { font-size: 13.5px; color: var(--muted); }
|
|
1077
|
+
|
|
1078
|
+
/* directory */
|
|
1079
|
+
.pc-dir-group h2 { font-size: 22px; margin: 32px 0 14px; }
|
|
1080
|
+
.pc-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
|
|
1081
|
+
.pc-dir-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); transition: box-shadow 0.2s, transform 0.2s; }
|
|
1082
|
+
.pc-dir-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
|
|
1083
|
+
.pc-dir-media { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--soft); color: var(--muted); }
|
|
1084
|
+
.pc-dir-media img { width: 100%; height: 100%; object-fit: cover; }
|
|
1085
|
+
.pc-dir-media svg { width: 36px; height: 36px; }
|
|
1086
|
+
.pc-dir-body { padding: 16px 18px 18px; }
|
|
1087
|
+
.pc-dir-body h3 { font-size: 17px; margin: 0 0 3px; }
|
|
1088
|
+
.pc-dir-body h3 a { color: var(--ink); text-decoration: none; }
|
|
1089
|
+
.pc-dir-body p { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
|
|
1090
|
+
.pc-dir-links { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
1091
|
+
.pc-dir-links a { font-size: 13.5px; font-weight: 550; color: var(--ink); text-decoration: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 11px; }
|
|
1092
|
+
.pc-dir-links a:hover { background: var(--soft); }
|
|
1093
|
+
|
|
1094
|
+
/* manage page */
|
|
1095
|
+
.pc-manage { max-width: 520px; margin: 0 auto; text-align: center; }
|
|
1096
|
+
.pc-manage-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin: 12px auto 12px; }
|
|
1097
|
+
.pc-manage-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
|
|
1098
|
+
.pc-manage-icon.is-confirmed { background: color-mix(in srgb, var(--success) 14%, var(--panel)); color: var(--success); }
|
|
1099
|
+
.pc-manage-icon.is-pending { background: color-mix(in srgb, var(--warning) 14%, var(--panel)); color: var(--warning); }
|
|
1100
|
+
.pc-manage-icon.is-cancelled, .pc-manage-icon.is-declined { background: var(--soft); color: var(--muted); }
|
|
1101
|
+
.pc-manage h1 { font-size: 30px; margin: 0 0 8px; }
|
|
1102
|
+
.pc-manage-lede { color: var(--muted); margin: 0 0 18px; }
|
|
1103
|
+
.pc-manage-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin: 0; padding: 4px 18px; box-shadow: var(--sh-1); }
|
|
1104
|
+
.pc-manage-card > div { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
|
|
1105
|
+
.pc-manage-card > div:first-child { border-top: 0; }
|
|
1106
|
+
.pc-manage-card dt { flex: 0 0 84px; color: var(--muted); }
|
|
1107
|
+
.pc-manage-card dd { margin: 0; }
|
|
1108
|
+
.pc-manage-card .mono { font-family: var(--font-mono); font-size: 13px; }
|
|
1109
|
+
.pc-manage-status.is-confirmed { color: var(--success); font-weight: 600; }
|
|
1110
|
+
.pc-manage-status.is-pending { color: var(--warning); font-weight: 600; }
|
|
1111
|
+
.pc-manage-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
|
|
1112
|
+
.pc-manage-actions .pc-ev-add { margin: 0; }
|
|
1113
|
+
.pc-manage-actions .pc-ev-add > summary { width: auto; }
|
|
1114
|
+
.pc-manage-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); font: 550 14px/1.2 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer; }
|
|
1115
|
+
.pc-manage-btn:hover { background: var(--soft); }
|
|
1116
|
+
.pc-manage-btn.is-danger { color: var(--danger); }
|
|
1117
|
+
.pc-manage-note { font-size: 12.5px; color: var(--muted); margin-top: 22px; }
|
|
1118
|
+
|
|
1119
|
+
/* RSVP on the event page */
|
|
1120
|
+
.pc-ev-rsvp { margin-top: 12px; }
|
|
1121
|
+
.pc-ev-going { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
|
|
1122
|
+
.pc-ev-going b { color: var(--ink); }
|
|
1123
|
+
.pc-ev-rsvpform > summary { list-style: none; cursor: pointer; width: 100%; margin-top: 0; }
|
|
1124
|
+
.pc-ev-rsvpform > summary::-webkit-details-marker { display: none; }
|
|
1125
|
+
.pc-ev-rsvpform[open] > summary { display: none; }
|
|
1126
|
+
.pc-ev-rsvpform form { margin-top: 4px; }
|
|
1127
|
+
.pc-ev-full { font-size: 14px; font-weight: 600; color: var(--muted); }
|
|
1128
|
+
|
|
1129
|
+
@media (max-width: 860px) {
|
|
1130
|
+
.pc-bk { grid-template-columns: 1fr; }
|
|
1131
|
+
.pc-bk-info { border-right: 0; border-bottom: 1px solid var(--line); }
|
|
1132
|
+
.pc-bk-slots { border-left: 0; border-top: 1px solid var(--line); }
|
|
1133
|
+
.pc-bk-form { grid-column: auto; }
|
|
1134
|
+
.pc-bk > * { padding: 18px; }
|
|
1135
|
+
.pc-res { grid-template-columns: 1fr; gap: 20px; }
|
|
1136
|
+
.pc-bk-slotlist { max-height: none; }
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
/* Design preview bar — admin chrome floating over the public site in preview
|
|
1141
|
+
mode (and for share-link reviewers). Deliberately NOT themed: it has to read
|
|
1142
|
+
the same on every theme and scheme, like the code block. */
|
|
1143
|
+
@layer base {
|
|
1144
|
+
.preview-bar {
|
|
1145
|
+
position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90;
|
|
1146
|
+
display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px);
|
|
1147
|
+
padding: 7px 8px 7px 14px; border-radius: 14px; background: #1c1b19; color: #ece8e1;
|
|
1148
|
+
border: 1px solid #2e2b27; box-shadow: 0 14px 40px -10px rgb(0 0 0 / 55%);
|
|
1149
|
+
font: 500 13px/1.3 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; white-space: nowrap;
|
|
1150
|
+
}
|
|
1151
|
+
.preview-bar[hidden] { display: none; }
|
|
1152
|
+
.preview-bar-dot { width: 8px; height: 8px; flex: none; border-radius: 2px; background: #f06a30; }
|
|
1153
|
+
.preview-bar-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
|
|
1154
|
+
.preview-bar-label small { font-weight: 400; color: #8f887e; margin-left: 7px; font-size: 12.5px; }
|
|
1155
|
+
.preview-bar-seg { display: inline-flex; background: #2e2b27; border-radius: 9px; padding: 2px; flex: none; }
|
|
1156
|
+
.preview-bar-seg a { padding: 4px 10px; border-radius: 7px; color: #8f887e; text-decoration: none; font-size: 12.5px; font-weight: 550; }
|
|
1157
|
+
.preview-bar-seg a:hover { color: #ece8e1; }
|
|
1158
|
+
.preview-bar-seg a[aria-current] { background: #22211e; color: #ece8e1; box-shadow: 0 1px 2px rgb(0 0 0 / 35%); }
|
|
1159
|
+
.preview-bar-div { width: 1px; height: 18px; background: #3a3733; flex: none; }
|
|
1160
|
+
.preview-bar-btn {
|
|
1161
|
+
display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px; border: 0; cursor: pointer;
|
|
1162
|
+
background: none; color: #c7c1b8; font: 600 12.5px/1 ui-sans-serif, system-ui, sans-serif; text-decoration: none; flex: none;
|
|
1163
|
+
}
|
|
1164
|
+
.preview-bar-btn:hover { background: rgb(255 248 235 / 7%); color: #ece8e1; }
|
|
1165
|
+
.preview-bar-btn.is-primary { background: #f06a30; color: #fff; }
|
|
1166
|
+
.preview-bar-btn.is-primary:hover { background: #ff7a40; }
|
|
1167
|
+
.preview-bar-btn.is-icon { width: 30px; padding: 0; justify-content: center; font-size: 12px; }
|
|
1168
|
+
@media (max-width: 600px) {
|
|
1169
|
+
.preview-bar { gap: 6px; padding-left: 10px; }
|
|
1170
|
+
.preview-bar-label small, .preview-bar-div, .preview-bar a[href='/admin/design'] { display: none; }
|
|
1171
|
+
}
|
|
1172
|
+
}
|