@jant/core 1.1.0 → 1.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/bin/commands/site/import.js +2 -1
- package/bin/lib/site-snapshot.js +10 -0
- package/dist/{app-CKQ9PqAr.js → app-C8dETvgL.js} +9267 -5697
- package/dist/client/.vite/manifest.json +82 -93
- package/dist/client/_assets/chunks/{confirm-CMe01lne.js → confirm-BQebcuNB.js} +1 -1
- package/dist/client/_assets/chunks/{create-editor-BQkrw8Ax.js → create-editor-B8KuszlS.js} +38 -38
- package/dist/client/_assets/chunks/footnote-rail-DUrqz0Py.js +2 -0
- package/dist/client/_assets/chunks/{jant-locale-picker-2L4rkDaz.js → jant-locale-picker-CLq0iKDH.js} +1 -1
- package/dist/client/_assets/chunks/lit-BN4mrI3j.js +2 -0
- package/dist/client/_assets/chunks/{settings-paths-B0bNUaih.js → settings-paths-_fry4yWW.js} +1 -1
- package/dist/client/_assets/chunks/{slug-format-CYmQE5ln.js → slug-format-bcJ2ozr4.js} +1 -1
- package/dist/client/_assets/chunks/sortable-list-Bz2Na2E9.js +2 -0
- package/dist/client/_assets/chunks/types-DrYFqJH2.js +1 -0
- package/dist/client/_assets/chunks/{unsafe-html-CWos3v6N.js → unsafe-html-OJ9m154w.js} +1 -1
- package/dist/client/_assets/chunks/unsafe-svg-DVJ4NPcb.js +1 -0
- package/dist/client/_assets/client-CoNHvipV.css +2 -0
- package/dist/client/_assets/{client-auth-CG55rWb5.js → client-auth-CbnZkLJ6.js} +99 -129
- package/dist/client/_assets/{client-author-CGVvrNZ8.css → client-author-2WYBkgni.css} +1 -1
- package/dist/client/_assets/client-compose-DYtDlYm-.js +2008 -0
- package/dist/client/_assets/{client-manage-DnYdQAhf.js → client-manage-BODyYP5Z.js} +157 -157
- package/dist/client/_assets/client-pq6sVS7y.js +354 -0
- package/dist/client/_assets/{client-settings-CHgsIqXJ.js → client-settings-DDpe_tXJ.js} +166 -166
- package/dist/client/_assets/client-share-B9OsXx9p.js +149 -0
- package/dist/{constants-DEgyqWDl.js → constants-C2CdWAqt.js} +55 -5
- package/dist/index.js +1 -1
- package/dist/node.js +3 -2
- package/package.json +2 -1
- package/src/app.tsx +9 -0
- package/src/client/components/compose-types.ts +6 -1
- package/src/client/components/jant-compose-dialog.ts +26 -4
- package/src/client/components/jant-compose-editor.ts +30 -0
- package/src/client/components/jant-compose-fullscreen.ts +1 -0
- package/src/client/components/jant-media-lightbox.ts +18 -3
- package/src/client/components/jant-nav-manager.ts +2 -0
- package/src/client/components/jant-post-menu.ts +42 -89
- package/src/client/components/nav-manager-types.ts +2 -0
- package/src/client/components/settings-types.ts +1 -1
- package/src/client/compose-bridge.ts +61 -1
- package/src/client/feed-video-player.ts +6 -0
- package/src/client/list-views.ts +382 -0
- package/src/client/media-lightbox-events.ts +12 -0
- package/src/client/runtime-paths.ts +12 -0
- package/src/client/share-capture.ts +63 -0
- package/src/client/share-launch.ts +36 -9
- package/src/client/tiptap/bubble-menu.ts +25 -2
- package/src/client/tiptap/create-editor.ts +6 -0
- package/src/client/tiptap/embed-node.ts +3 -1
- package/src/client/tiptap/extensions.ts +4 -0
- package/src/client/tiptap/html-block-node.ts +3 -1
- package/src/client/tiptap/image-node.ts +3 -1
- package/src/client/video-processor.ts +106 -52
- package/src/client/view-confirm.ts +136 -0
- package/src/client.ts +2 -0
- package/src/db/migrations/0035_brainy_next_avengers.sql +9 -0
- package/src/db/migrations/0036_gorgeous_smasher.sql +7 -0
- package/src/db/migrations/0037_round_post.sql +16 -0
- package/src/db/migrations/0038_flashy_changeling.sql +15 -0
- package/src/db/migrations/0039_mixed_sister_grimm.sql +1 -0
- package/src/db/migrations/meta/0035_snapshot.json +2877 -0
- package/src/db/migrations/meta/0036_snapshot.json +2924 -0
- package/src/db/migrations/meta/0037_snapshot.json +2932 -0
- package/src/db/migrations/meta/0038_snapshot.json +2924 -0
- package/src/db/migrations/meta/0039_snapshot.json +2931 -0
- package/src/db/migrations/meta/_journal.json +35 -0
- package/src/db/migrations/pg/0033_cute_magdalene.sql +10 -0
- package/src/db/migrations/pg/0034_material_agent_brand.sql +8 -0
- package/src/db/migrations/pg/0035_flimsy_outlaw_kid.sql +3 -0
- package/src/db/migrations/pg/0036_milky_wolverine.sql +5 -0
- package/src/db/migrations/pg/0037_fuzzy_hammerhead.sql +1 -0
- package/src/db/migrations/pg/meta/0033_snapshot.json +3719 -0
- package/src/db/migrations/pg/meta/0034_snapshot.json +3766 -0
- package/src/db/migrations/pg/meta/0035_snapshot.json +3773 -0
- package/src/db/migrations/pg/meta/0036_snapshot.json +3766 -0
- package/src/db/migrations/pg/meta/0037_snapshot.json +3772 -0
- package/src/db/migrations/pg/meta/_journal.json +35 -0
- package/src/db/pg/schema.ts +41 -0
- package/src/db/post-visibility.ts +37 -6
- package/src/db/schema.ts +64 -0
- package/src/i18n/locales/glossary.zh-Hans.yml +4 -0
- package/src/i18n/locales/glossary.zh-Hant.yml +4 -0
- package/src/i18n/locales/public/en.po +26 -7
- package/src/i18n/locales/public/en.ts +1 -1
- package/src/i18n/locales/public/zh-Hans.po +25 -6
- package/src/i18n/locales/public/zh-Hans.ts +1 -1
- package/src/i18n/locales/public/zh-Hant.po +25 -6
- package/src/i18n/locales/public/zh-Hant.ts +1 -1
- package/src/i18n/locales/settings/en.po +159 -0
- package/src/i18n/locales/settings/en.ts +1 -1
- package/src/i18n/locales/settings/zh-Hans.po +159 -0
- package/src/i18n/locales/settings/zh-Hans.ts +1 -1
- package/src/i18n/locales/settings/zh-Hant.po +159 -0
- package/src/i18n/locales/settings/zh-Hant.ts +1 -1
- package/src/lib/api-public-posts.ts +10 -0
- package/src/lib/env.ts +20 -0
- package/src/lib/feed-policy.ts +2 -2
- package/src/lib/filter-dimensions.ts +11 -4
- package/src/lib/github-app-state.ts +1 -1
- package/src/lib/github-app.ts +183 -1
- package/src/lib/hugo-markdown.ts +7 -0
- package/src/lib/icons.ts +2 -0
- package/src/lib/link-preview.ts +499 -0
- package/src/lib/list-views.ts +117 -0
- package/src/lib/markdown-manager.ts +169 -2
- package/src/lib/navigation.ts +1 -1
- package/src/lib/post-meta.ts +13 -3
- package/src/lib/referrer-aliases.ts +311 -0
- package/src/lib/render.tsx +10 -0
- package/src/lib/resolve-config.ts +14 -0
- package/src/lib/share-card.ts +4 -3
- package/src/lib/summary.ts +152 -54
- package/src/lib/thread-query.ts +6 -2
- package/src/lib/timeline.ts +12 -11
- package/src/lib/tiptap-render.ts +1 -0
- package/src/lib/upload.ts +21 -1
- package/src/lib/url-fetch.ts +291 -74
- package/src/lib/video-playback.ts +55 -0
- package/src/lib/view-buffer.ts +201 -0
- package/src/lib/view-counting.ts +540 -0
- package/src/lib/view-token.ts +199 -0
- package/src/lib/view.ts +30 -1
- package/src/middleware/view-counter.ts +145 -0
- package/src/node/runtime.ts +4 -0
- package/src/preset.css +36 -17
- package/src/routes/api/media.ts +21 -3
- package/src/routes/api/search.ts +1 -1
- package/src/routes/dash/settings.tsx +434 -169
- package/src/routes/feed/sitemap.ts +1 -1
- package/src/routes/pages/archive.tsx +26 -19
- package/src/routes/pages/collection.tsx +9 -3
- package/src/routes/pages/collections.tsx +1 -0
- package/src/routes/pages/featured.tsx +1 -0
- package/src/routes/pages/home.tsx +1 -0
- package/src/routes/pages/page.tsx +18 -3
- package/src/routes/pages/search.tsx +3 -3
- package/src/routes/pages/smart-collection.tsx +2 -0
- package/src/routes/pages/subscribe.tsx +1 -0
- package/src/routes/view-confirm.ts +71 -0
- package/src/services/collection.ts +1 -1
- package/src/services/export-theme/assets/client-site.js +19 -19
- package/src/services/export-theme/layouts/archive/list.html +4 -2
- package/src/services/export-theme/layouts/partials/collection-members.html +4 -3
- package/src/services/export-theme/layouts/partials/featured-members.html +3 -3
- package/src/services/export-theme/layouts/partials/head.html +2 -0
- package/src/services/export-theme/layouts/partials/latest-members.html +4 -4
- package/src/services/export-theme/layouts/partials/post-card.html +1 -9
- package/src/services/export-theme/layouts/partials/reply.html +1 -9
- package/src/services/export-theme/layouts/partials/smart-collection-members.html +4 -3
- package/src/services/export-theme/layouts/post/list.html +1 -9
- package/src/services/export-theme/styles/main.css +41 -47
- package/src/services/export.ts +12 -3
- package/src/services/index.ts +17 -0
- package/src/services/mcp.ts +36 -6
- package/src/services/media.ts +63 -0
- package/src/services/navigation.ts +9 -4
- package/src/services/post.ts +102 -112
- package/src/services/search.ts +22 -7
- package/src/services/smart-collection.ts +3 -3
- package/src/services/stats.ts +1137 -0
- package/src/services/thread.ts +6 -2
- package/src/styles/components-author.css +242 -3
- package/src/styles/components.css +11 -3
- package/src/styles/tokens.css +89 -55
- package/src/styles/ui-author.css +140 -353
- package/src/styles/ui.css +90 -45
- package/src/types/app-context.ts +9 -0
- package/src/types/bindings.ts +5 -0
- package/src/types/config.ts +54 -0
- package/src/types/constants.ts +68 -4
- package/src/types/entities.ts +1 -0
- package/src/types/views.ts +8 -0
- package/src/ui/compose/ComposeDialog.tsx +26 -1
- package/src/ui/dash/StatusBadge.tsx +11 -0
- package/src/ui/dash/appearance/FontThemeContent.tsx +1 -1
- package/src/ui/dash/appearance/NavigationContent.tsx +8 -0
- package/src/ui/dash/settings/SettingsRootContent.tsx +24 -6
- package/src/ui/dash/settings/StatsContent.tsx +855 -0
- package/src/ui/feed/LinkCard.tsx +19 -2
- package/src/ui/feed/PostStatusBadges.tsx +19 -3
- package/src/ui/feed/TimelineFeed.tsx +3 -0
- package/src/ui/font-themes.ts +56 -6
- package/src/ui/layouts/BaseLayout.tsx +4 -2
- package/src/ui/layouts/SiteLayout.tsx +8 -3
- package/src/ui/pages/ArchivePage.tsx +1 -0
- package/src/ui/shared/MediaGallery.tsx +19 -3
- package/src/ui/shared/PostFooter.tsx +1 -22
- package/src/ui/shared/custom-icons.ts +5 -5
- package/dist/client/_assets/chunks/footnote-rail-B08scyhW.js +0 -2
- package/dist/client/_assets/chunks/lit-Bw_voPoW.js +0 -2
- package/dist/client/_assets/chunks/runtime-paths-y0_gHowM.js +0 -1
- package/dist/client/_assets/chunks/sortable-list-t11Ma1Ek.js +0 -2
- package/dist/client/_assets/chunks/types-D5iF3H1a.js +0 -1
- package/dist/client/_assets/chunks/unsafe-svg-DZl-yjas.js +0 -1
- package/dist/client/_assets/client-B0-s9sqx.css +0 -2
- package/dist/client/_assets/client-Dp46QSht.js +0 -354
- package/dist/client/_assets/client-compose-DkUTuavR.js +0 -2004
- package/dist/client/_assets/client-share-C59mOLJ1.js +0 -149
package/src/styles/ui-author.css
CHANGED
|
@@ -5392,27 +5392,17 @@
|
|
|
5392
5392
|
on an empty post, not a reserved shape, so it should follow the type
|
|
5393
5393
|
instead of a pixel count that goes stale when the leading moves. Every
|
|
5394
5394
|
compose text surface shares it: a note's body and the "thoughts" under a
|
|
5395
|
-
link or a quote all open the same way and grow from there.
|
|
5395
|
+
link or a quote all open the same way and grow from there.
|
|
5396
|
+
The type itself — family, size, leading, every block and mark inside — is
|
|
5397
|
+
the reader's: the editor element carries `.prose` (see `createTiptapEditor`),
|
|
5398
|
+
so what is written here looks the way it will be read. Only what an
|
|
5399
|
+
editor has and a published post does not is styled in this sheet. */
|
|
5396
5400
|
.compose-tiptap-body .tiptap {
|
|
5397
5401
|
outline: none;
|
|
5398
5402
|
min-height: calc(var(--type-body-leading) * 2em);
|
|
5399
5403
|
min-width: 0;
|
|
5400
5404
|
max-width: 100%;
|
|
5401
5405
|
overflow-x: auto;
|
|
5402
|
-
font-size: var(--type-content-body);
|
|
5403
|
-
line-height: var(--type-body-leading);
|
|
5404
|
-
letter-spacing: var(--type-body-tracking);
|
|
5405
|
-
color: var(--site-text-primary);
|
|
5406
|
-
font-family: var(--font-body);
|
|
5407
|
-
}
|
|
5408
|
-
|
|
5409
|
-
.compose-reply-compose-layout .compose-tiptap-body .tiptap {
|
|
5410
|
-
font-size: var(--type-content-body);
|
|
5411
|
-
line-height: var(--type-body-leading);
|
|
5412
|
-
}
|
|
5413
|
-
|
|
5414
|
-
.compose-tiptap-link .tiptap {
|
|
5415
|
-
color: var(--site-text-primary);
|
|
5416
5406
|
}
|
|
5417
5407
|
|
|
5418
5408
|
/* Placeholder */
|
|
@@ -5425,268 +5415,9 @@
|
|
|
5425
5415
|
height: 0;
|
|
5426
5416
|
}
|
|
5427
5417
|
|
|
5428
|
-
/*
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
font-weight: var(--type-heading-weight);
|
|
5432
|
-
letter-spacing: var(--type-heading-tracking);
|
|
5433
|
-
line-height: var(--type-heading-leading);
|
|
5434
|
-
}
|
|
5435
|
-
|
|
5436
|
-
.compose-tiptap-body .tiptap h1 {
|
|
5437
|
-
font-size: var(--type-content-display);
|
|
5438
|
-
margin-top: 4rem;
|
|
5439
|
-
margin-bottom: 1.5rem;
|
|
5440
|
-
}
|
|
5441
|
-
|
|
5442
|
-
.compose-tiptap-body .tiptap h2 {
|
|
5443
|
-
font-size: var(--type-content-title);
|
|
5444
|
-
margin-top: 2.1rem;
|
|
5445
|
-
margin-bottom: 1.4rem;
|
|
5446
|
-
}
|
|
5447
|
-
|
|
5448
|
-
.compose-tiptap-body .tiptap h3 {
|
|
5449
|
-
font-size: var(--type-content-subtitle);
|
|
5450
|
-
margin-top: 2rem;
|
|
5451
|
-
margin-bottom: 1.4rem;
|
|
5452
|
-
}
|
|
5453
|
-
|
|
5454
|
-
.compose-reply-compose-layout
|
|
5455
|
-
.compose-tiptap-body
|
|
5456
|
-
.tiptap
|
|
5457
|
-
:is(h1, h2, h3, h4) {
|
|
5458
|
-
font-size: var(--type-secondary);
|
|
5459
|
-
line-height: 1.32;
|
|
5460
|
-
margin-top: 1.4rem;
|
|
5461
|
-
margin-bottom: 0.75rem;
|
|
5462
|
-
}
|
|
5463
|
-
|
|
5464
|
-
.compose-tiptap-body .tiptap p {
|
|
5465
|
-
margin-top: 1.4rem;
|
|
5466
|
-
margin-bottom: 1.4rem;
|
|
5467
|
-
}
|
|
5468
|
-
|
|
5469
|
-
.compose-reply-compose-layout .compose-tiptap-body .tiptap p {
|
|
5470
|
-
margin-top: 1rem;
|
|
5471
|
-
margin-bottom: 1rem;
|
|
5472
|
-
}
|
|
5473
|
-
|
|
5474
|
-
/* The first block's 1.4rem top margin is a lead-in that only made sense when
|
|
5475
|
-
the body was the first thing in the editor. Every editor now renders a
|
|
5476
|
-
format header above it — and notes a title field too — so it reads as a gap
|
|
5477
|
-
instead. (This used to be scoped to .compose-editor-row, back when
|
|
5478
|
-
standalone new/edit editors did start with the body.) */
|
|
5479
|
-
.compose-tiptap-body .tiptap > :first-child {
|
|
5480
|
-
margin-top: 0;
|
|
5481
|
-
}
|
|
5482
|
-
|
|
5483
|
-
.compose-tiptap-body .tiptap ul {
|
|
5484
|
-
list-style-type: disc;
|
|
5485
|
-
padding-left: 1.4em;
|
|
5486
|
-
margin: 1.25em 0;
|
|
5487
|
-
}
|
|
5488
|
-
|
|
5489
|
-
.compose-tiptap-body .tiptap ol {
|
|
5490
|
-
list-style-type: decimal;
|
|
5491
|
-
/* Keep multi-digit markers inside the editor's scrollable bounds. */
|
|
5492
|
-
padding-left: 2.25em;
|
|
5493
|
-
margin: 1.25em 0;
|
|
5494
|
-
}
|
|
5495
|
-
|
|
5496
|
-
.compose-tiptap-body .tiptap :is(ul, ol) :is(ul, ol) {
|
|
5497
|
-
padding-left: 1.5em;
|
|
5498
|
-
margin: 0.4em 0;
|
|
5499
|
-
}
|
|
5500
|
-
|
|
5501
|
-
.compose-tiptap-body .tiptap ul ul {
|
|
5502
|
-
list-style-type: circle;
|
|
5503
|
-
}
|
|
5504
|
-
|
|
5505
|
-
.compose-tiptap-body .tiptap ul ul ul {
|
|
5506
|
-
list-style-type: square;
|
|
5507
|
-
}
|
|
5508
|
-
|
|
5509
|
-
.compose-tiptap-body .tiptap ol ol {
|
|
5510
|
-
list-style-type: lower-alpha;
|
|
5511
|
-
}
|
|
5512
|
-
|
|
5513
|
-
.compose-tiptap-body .tiptap ol ol ol {
|
|
5514
|
-
list-style-type: lower-roman;
|
|
5515
|
-
}
|
|
5516
|
-
|
|
5517
|
-
.compose-tiptap-body .tiptap li {
|
|
5518
|
-
margin: 0.5em 0;
|
|
5519
|
-
}
|
|
5520
|
-
|
|
5521
|
-
.compose-tiptap-body .tiptap li > p:first-child {
|
|
5522
|
-
margin-top: 0;
|
|
5523
|
-
}
|
|
5524
|
-
|
|
5525
|
-
.compose-tiptap-body .tiptap li > p:last-child {
|
|
5526
|
-
margin-bottom: 0;
|
|
5527
|
-
}
|
|
5528
|
-
|
|
5529
|
-
/* A nested list makes its leading paragraph no longer the last child, so
|
|
5530
|
-
clear the body-paragraph margin that would otherwise separate the levels. */
|
|
5531
|
-
.compose-tiptap-body .tiptap li > p:has(+ :is(ul, ol)),
|
|
5532
|
-
.compose-tiptap-body
|
|
5533
|
-
.tiptap
|
|
5534
|
-
li
|
|
5535
|
-
> p:has(+ .ProseMirror-gapcursor + :is(ul, ol)) {
|
|
5536
|
-
margin-bottom: 0;
|
|
5537
|
-
}
|
|
5538
|
-
|
|
5539
|
-
.compose-tiptap-body .tiptap blockquote {
|
|
5540
|
-
--_blockquote-bg: var(--compose-blockquote-bg);
|
|
5541
|
-
--_blockquote-text: var(--compose-blockquote-text);
|
|
5542
|
-
position: relative;
|
|
5543
|
-
margin: 1.4rem 0;
|
|
5544
|
-
padding: 1.4rem 1rem 0.75rem;
|
|
5545
|
-
border: none;
|
|
5546
|
-
border-radius: 6px;
|
|
5547
|
-
background: var(--_blockquote-bg);
|
|
5548
|
-
color: var(--_blockquote-text);
|
|
5549
|
-
font-family: var(--font-blockquote);
|
|
5550
|
-
font-style: italic;
|
|
5551
|
-
font-weight: inherit;
|
|
5552
|
-
quotes: none;
|
|
5553
|
-
text-wrap: pretty;
|
|
5554
|
-
transition:
|
|
5555
|
-
background 0.18s ease,
|
|
5556
|
-
color 0.18s ease;
|
|
5557
|
-
}
|
|
5558
|
-
|
|
5559
|
-
/* Reply compose deliberately stays denser than ordinary authored prose. */
|
|
5560
|
-
.compose-reply-compose-layout .compose-tiptap-body .tiptap ul {
|
|
5561
|
-
padding-left: 1.5em;
|
|
5562
|
-
margin: 0.25em 0;
|
|
5563
|
-
}
|
|
5564
|
-
|
|
5565
|
-
.compose-reply-compose-layout .compose-tiptap-body .tiptap ol {
|
|
5566
|
-
padding-left: 2.25em;
|
|
5567
|
-
margin: 0.25em 0;
|
|
5568
|
-
}
|
|
5569
|
-
|
|
5570
|
-
.compose-reply-compose-layout
|
|
5571
|
-
.compose-tiptap-body
|
|
5572
|
-
.tiptap
|
|
5573
|
-
:is(ul, ol)
|
|
5574
|
-
:is(ul, ol) {
|
|
5575
|
-
padding-left: 1.5em;
|
|
5576
|
-
margin: 0.2em 0;
|
|
5577
|
-
}
|
|
5578
|
-
|
|
5579
|
-
.compose-reply-compose-layout .compose-tiptap-body .tiptap li {
|
|
5580
|
-
margin: 0.15em 0;
|
|
5581
|
-
}
|
|
5582
|
-
|
|
5583
|
-
.compose-reply-compose-layout .compose-tiptap-body .tiptap blockquote {
|
|
5584
|
-
margin: 0.72em 0;
|
|
5585
|
-
padding: 1.3rem 0.9em 0.76em 1em;
|
|
5586
|
-
}
|
|
5587
|
-
|
|
5588
|
-
/* CJK: no italic for blockquotes (no true italic glyph) */
|
|
5589
|
-
:lang(zh) .compose-tiptap-body .tiptap blockquote,
|
|
5590
|
-
:lang(ja) .compose-tiptap-body .tiptap blockquote,
|
|
5591
|
-
:lang(ko) .compose-tiptap-body .tiptap blockquote {
|
|
5592
|
-
font-style: normal;
|
|
5593
|
-
}
|
|
5594
|
-
|
|
5595
|
-
.compose-tiptap-body .tiptap blockquote::before {
|
|
5596
|
-
content: "";
|
|
5597
|
-
display: block;
|
|
5598
|
-
width: 1.3rem;
|
|
5599
|
-
height: 1.3rem;
|
|
5600
|
-
margin-bottom: 0.35rem;
|
|
5601
|
-
background: var(--compose-blockquote-rail);
|
|
5602
|
-
opacity: 0.6;
|
|
5603
|
-
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24.4 10.5C16.9 17.7 11.5 26.8 8.2 37.7C4.9 48.7 4.8 58.9 7.8 68.2C10.3 75.7 15.4 79.5 22.9 79.5C28 79.5 32.2 77.8 35.4 74.2C38.6 70.7 40.2 66.5 40.2 61.4C40.2 56.5 38.8 52.6 36 49.6C33.3 46.6 29.7 45.1 25.2 45.1C23.4 45.1 21.8 45.3 20.2 45.8C22.2 37.3 26.7 29.2 33.6 21.4L24.4 10.5Z'/%3E%3Cpath d='M60.8 10.5C53.3 17.7 47.9 26.8 44.6 37.7C41.3 48.7 41.2 58.9 44.2 68.2C46.7 75.7 51.8 79.5 59.3 79.5C64.4 79.5 68.6 77.8 71.8 74.2C75 70.7 76.6 66.5 76.6 61.4C76.6 56.5 75.2 52.6 72.4 49.6C69.7 46.6 66.1 45.1 61.6 45.1C59.8 45.1 58.2 45.3 56.6 45.8C58.6 37.3 63.1 29.2 70 21.4L60.8 10.5Z'/%3E%3C/svg%3E");
|
|
5604
|
-
mask-size: contain;
|
|
5605
|
-
mask-repeat: no-repeat;
|
|
5606
|
-
-webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24.4 10.5C16.9 17.7 11.5 26.8 8.2 37.7C4.9 48.7 4.8 58.9 7.8 68.2C10.3 75.7 15.4 79.5 22.9 79.5C28 79.5 32.2 77.8 35.4 74.2C38.6 70.7 40.2 66.5 40.2 61.4C40.2 56.5 38.8 52.6 36 49.6C33.3 46.6 29.7 45.1 25.2 45.1C23.4 45.1 21.8 45.3 20.2 45.8C22.2 37.3 26.7 29.2 33.6 21.4L24.4 10.5Z'/%3E%3Cpath d='M60.8 10.5C53.3 17.7 47.9 26.8 44.6 37.7C41.3 48.7 41.2 58.9 44.2 68.2C46.7 75.7 51.8 79.5 59.3 79.5C64.4 79.5 68.6 77.8 71.8 74.2C75 70.7 76.6 66.5 76.6 61.4C76.6 56.5 75.2 52.6 72.4 49.6C69.7 46.6 66.1 45.1 61.6 45.1C59.8 45.1 58.2 45.3 56.6 45.8C58.6 37.3 63.1 29.2 70 21.4L60.8 10.5Z'/%3E%3C/svg%3E");
|
|
5607
|
-
-webkit-mask-size: contain;
|
|
5608
|
-
-webkit-mask-repeat: no-repeat;
|
|
5609
|
-
}
|
|
5610
|
-
|
|
5611
|
-
.compose-tiptap-body .tiptap blockquote:focus-within {
|
|
5612
|
-
--_blockquote-bg: var(--compose-blockquote-bg-focus);
|
|
5613
|
-
color: var(--site-text-primary);
|
|
5614
|
-
}
|
|
5615
|
-
|
|
5616
|
-
.compose-tiptap-body .tiptap blockquote > :first-child {
|
|
5617
|
-
margin-top: 0;
|
|
5618
|
-
}
|
|
5619
|
-
|
|
5620
|
-
.compose-tiptap-body .tiptap blockquote > :last-child {
|
|
5621
|
-
margin-bottom: 0;
|
|
5622
|
-
}
|
|
5623
|
-
|
|
5624
|
-
.compose-tiptap-body .tiptap blockquote p {
|
|
5625
|
-
margin: 0;
|
|
5626
|
-
}
|
|
5627
|
-
|
|
5628
|
-
.compose-tiptap-body .tiptap blockquote p + p,
|
|
5629
|
-
.compose-tiptap-body .tiptap blockquote ul,
|
|
5630
|
-
.compose-tiptap-body .tiptap blockquote ol,
|
|
5631
|
-
.compose-tiptap-body .tiptap blockquote pre {
|
|
5632
|
-
margin-top: 0.6em;
|
|
5633
|
-
}
|
|
5634
|
-
|
|
5635
|
-
.compose-tiptap-body .tiptap pre {
|
|
5636
|
-
background: var(--site-page-bg);
|
|
5637
|
-
border-radius: 6px;
|
|
5638
|
-
padding: 0.75em 1em;
|
|
5639
|
-
margin: 0.5em 0;
|
|
5640
|
-
overflow-x: auto;
|
|
5641
|
-
font-size: 0.85em;
|
|
5642
|
-
}
|
|
5643
|
-
|
|
5644
|
-
.compose-tiptap-body .tiptap code {
|
|
5645
|
-
background: var(--site-page-bg);
|
|
5646
|
-
border-radius: 3px;
|
|
5647
|
-
padding: 0.15em 0.3em;
|
|
5648
|
-
font-size: 0.9em;
|
|
5649
|
-
}
|
|
5650
|
-
|
|
5651
|
-
.compose-tiptap-body .tiptap pre code {
|
|
5652
|
-
background: none;
|
|
5653
|
-
border-radius: 0;
|
|
5654
|
-
padding: 0;
|
|
5655
|
-
font-size: inherit;
|
|
5656
|
-
}
|
|
5657
|
-
|
|
5658
|
-
.compose-tiptap-body .tiptap hr {
|
|
5659
|
-
border: none;
|
|
5660
|
-
border-top: 1px solid var(--site-divider);
|
|
5661
|
-
margin: 1em 0;
|
|
5662
|
-
}
|
|
5663
|
-
|
|
5664
|
-
/* --- Table in editor -------------------------------------------------- */
|
|
5665
|
-
|
|
5666
|
-
.compose-tiptap-body .tiptap table {
|
|
5667
|
-
border-collapse: collapse;
|
|
5668
|
-
width: max-content;
|
|
5669
|
-
min-width: 100%;
|
|
5670
|
-
margin: 0.75em 0;
|
|
5671
|
-
}
|
|
5672
|
-
|
|
5673
|
-
.compose-tiptap-body .tiptap td,
|
|
5674
|
-
.compose-tiptap-body .tiptap th {
|
|
5675
|
-
border: 1px solid var(--site-divider);
|
|
5676
|
-
padding: 0.4em 0.6em;
|
|
5677
|
-
vertical-align: top;
|
|
5678
|
-
min-width: 6rem;
|
|
5679
|
-
position: relative;
|
|
5680
|
-
}
|
|
5681
|
-
|
|
5682
|
-
.compose-tiptap-body .tiptap th {
|
|
5683
|
-
font-weight: var(--fw-semibold);
|
|
5684
|
-
background: var(--site-page-bg);
|
|
5685
|
-
}
|
|
5686
|
-
|
|
5687
|
-
.compose-tiptap-body .tiptap .selectedCell {
|
|
5688
|
-
background: oklch(from var(--site-accent) l c h / 0.12);
|
|
5689
|
-
}
|
|
5418
|
+
/* Blocks and marks take `.prose` as they are. The few places the editor
|
|
5419
|
+
has to differ are in the unlayered block at the end of this sheet, since a
|
|
5420
|
+
rule inside `@layer components` cannot outrank `.prose`. */
|
|
5690
5421
|
|
|
5691
5422
|
/* Contextual table toolbar — deliberately quieter than the text bubble menu. */
|
|
5692
5423
|
.tiptap-table-controls {
|
|
@@ -5886,8 +5617,9 @@
|
|
|
5886
5617
|
|
|
5887
5618
|
/* --- Image figure in editor ------------------------------------------- */
|
|
5888
5619
|
|
|
5620
|
+
/* Margin, measure and corner radius come from the reader's `.prose figure`
|
|
5621
|
+
rules, so an image sits in the draft the way it sits in the post. */
|
|
5889
5622
|
.tiptap-image-figure {
|
|
5890
|
-
margin: 0.75em 0;
|
|
5891
5623
|
position: relative;
|
|
5892
5624
|
|
|
5893
5625
|
/* Toolbar palette — soft charcoal, not pure black */
|
|
@@ -5926,10 +5658,6 @@
|
|
|
5926
5658
|
}
|
|
5927
5659
|
|
|
5928
5660
|
.tiptap-image-figure img {
|
|
5929
|
-
width: 100%;
|
|
5930
|
-
max-height: 500px;
|
|
5931
|
-
object-fit: contain;
|
|
5932
|
-
border-radius: 4px;
|
|
5933
5661
|
display: block;
|
|
5934
5662
|
}
|
|
5935
5663
|
|
|
@@ -6061,40 +5789,14 @@
|
|
|
6061
5789
|
}
|
|
6062
5790
|
}
|
|
6063
5791
|
|
|
6064
|
-
/* Layout variants
|
|
6065
|
-
|
|
6066
|
-
.tiptap-image-figure[data-layout="full"] {
|
|
6067
|
-
width: 100%;
|
|
6068
|
-
}
|
|
6069
|
-
|
|
5792
|
+
/* Layout variants. The breakout itself is the reader's `.prose figure` rule;
|
|
5793
|
+
only the compact composer holds it back (end of this sheet). */
|
|
6070
5794
|
.tiptap-image-figure[data-layout="full"] .tiptap-image-container {
|
|
6071
5795
|
border-radius: 0;
|
|
6072
5796
|
border-left: none;
|
|
6073
5797
|
border-right: none;
|
|
6074
5798
|
}
|
|
6075
5799
|
|
|
6076
|
-
.tiptap-image-figure[data-layout="full"] img {
|
|
6077
|
-
border-radius: 0;
|
|
6078
|
-
}
|
|
6079
|
-
|
|
6080
|
-
/* Fullscreen editor — enough room for real breakout */
|
|
6081
|
-
.compose-fullscreen .tiptap-image-figure[data-layout="wide"] {
|
|
6082
|
-
width: 1200px;
|
|
6083
|
-
max-width: 100vw;
|
|
6084
|
-
margin-left: 50%;
|
|
6085
|
-
transform: translateX(-50%);
|
|
6086
|
-
}
|
|
6087
|
-
|
|
6088
|
-
.compose-fullscreen .tiptap-image-figure[data-layout="full"] {
|
|
6089
|
-
width: 100vw;
|
|
6090
|
-
margin-left: 50%;
|
|
6091
|
-
transform: translateX(-50%);
|
|
6092
|
-
}
|
|
6093
|
-
|
|
6094
|
-
.tiptap-image-figure[data-layout="full"] img {
|
|
6095
|
-
border-radius: 0;
|
|
6096
|
-
}
|
|
6097
|
-
|
|
6098
5800
|
/* Centered toolbar — hidden until selected */
|
|
6099
5801
|
.tiptap-image-toolbar {
|
|
6100
5802
|
display: none;
|
|
@@ -6190,14 +5892,8 @@
|
|
|
6190
5892
|
border-color: transparent;
|
|
6191
5893
|
}
|
|
6192
5894
|
|
|
6193
|
-
/* Static figcaption (shown when not selected)
|
|
6194
|
-
|
|
6195
|
-
text-align: center;
|
|
6196
|
-
font-size: var(--type-xs);
|
|
6197
|
-
color: var(--site-text-secondary);
|
|
6198
|
-
margin-top: 0.4em;
|
|
6199
|
-
}
|
|
6200
|
-
|
|
5895
|
+
/* Static figcaption (shown when not selected). Its type is the reader's
|
|
5896
|
+
`.prose figcaption`. */
|
|
6201
5897
|
.tiptap-image-figcaption:empty {
|
|
6202
5898
|
display: none;
|
|
6203
5899
|
}
|
|
@@ -6475,33 +6171,11 @@
|
|
|
6475
6171
|
display: none;
|
|
6476
6172
|
}
|
|
6477
6173
|
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
font-weight: inherit;
|
|
6481
|
-
text-decoration: underline;
|
|
6482
|
-
text-decoration-color: var(
|
|
6483
|
-
--site-prose-link-underline,
|
|
6484
|
-
var(--site-content-link-underline)
|
|
6485
|
-
);
|
|
6486
|
-
text-decoration-thickness: 0.05em;
|
|
6487
|
-
text-underline-offset: 0.1em;
|
|
6488
|
-
transition:
|
|
6489
|
-
color 0.18s ease,
|
|
6490
|
-
text-decoration-color 0.18s ease;
|
|
6491
|
-
}
|
|
6492
|
-
|
|
6493
|
-
.compose-tiptap-body .tiptap a:hover {
|
|
6494
|
-
color: var(--site-prose-link-hover, var(--site-content-link-hover));
|
|
6495
|
-
text-decoration-color: currentColor;
|
|
6496
|
-
}
|
|
6497
|
-
|
|
6498
|
-
.compose-tiptap-body .tiptap s {
|
|
6499
|
-
text-decoration: line-through;
|
|
6500
|
-
}
|
|
6501
|
-
|
|
6174
|
+
/* Raised without a line box of its own, like `.footnote-ref` in the post, so
|
|
6175
|
+
a line with a reference keeps the leading of the lines around it. */
|
|
6502
6176
|
.compose-tiptap-body .tiptap .tiptap-footnote-reference {
|
|
6503
6177
|
font-size: var(--type-footnote-ref);
|
|
6504
|
-
line-height:
|
|
6178
|
+
line-height: 0;
|
|
6505
6179
|
vertical-align: super;
|
|
6506
6180
|
color: var(--site-footnote-marker);
|
|
6507
6181
|
white-space: nowrap;
|
|
@@ -6558,14 +6232,6 @@
|
|
|
6558
6232
|
border-top: 0;
|
|
6559
6233
|
}
|
|
6560
6234
|
|
|
6561
|
-
.compose-tiptap-body .tiptap .tiptap-footnote-definition > :first-child {
|
|
6562
|
-
margin-top: 0;
|
|
6563
|
-
}
|
|
6564
|
-
|
|
6565
|
-
.compose-tiptap-body .tiptap .tiptap-footnote-definition > :last-child {
|
|
6566
|
-
margin-bottom: 0;
|
|
6567
|
-
}
|
|
6568
|
-
|
|
6569
6235
|
/* =========================================================================
|
|
6570
6236
|
* Settings TipTap Editor (site description, footer)
|
|
6571
6237
|
* ========================================================================= */
|
|
@@ -7357,8 +7023,6 @@
|
|
|
7357
7023
|
.compose-fullscreen .compose-tiptap-body .tiptap {
|
|
7358
7024
|
min-height: calc(100dvh - 14rem);
|
|
7359
7025
|
padding-bottom: max(18vh, 8rem);
|
|
7360
|
-
font-size: var(--type-content-body);
|
|
7361
|
-
line-height: var(--type-body-leading);
|
|
7362
7026
|
}
|
|
7363
7027
|
|
|
7364
7028
|
.compose-fullscreen
|
|
@@ -7579,3 +7243,126 @@
|
|
|
7579
7243
|
width: 100%;
|
|
7580
7244
|
max-width: none;
|
|
7581
7245
|
}
|
|
7246
|
+
|
|
7247
|
+
/*
|
|
7248
|
+
* Editor exceptions to `.prose`
|
|
7249
|
+
*
|
|
7250
|
+
* The editor document carries `.prose` (see `createTiptapEditor`), so a draft
|
|
7251
|
+
* is set in the reader's typography: one set of rules for the post as written
|
|
7252
|
+
* and as read. `.prose` is unlayered, and a rule inside `@layer components`
|
|
7253
|
+
* cannot outrank it whatever its specificity, so the few places an editor has
|
|
7254
|
+
* to differ from the published post sit out here. Anything not listed is the
|
|
7255
|
+
* reader's.
|
|
7256
|
+
*/
|
|
7257
|
+
|
|
7258
|
+
/* TipTap wraps a list item's text in a paragraph, which the published HTML of
|
|
7259
|
+
a tight list does not have. Left alone, that paragraph's bottom margin opens
|
|
7260
|
+
a gap above a nested list that the post does not show. ProseMirror can put a
|
|
7261
|
+
gap cursor between the two. */
|
|
7262
|
+
.compose-tiptap-body .tiptap li > p:has(+ :is(ul, ol)),
|
|
7263
|
+
.compose-tiptap-body
|
|
7264
|
+
.tiptap
|
|
7265
|
+
li
|
|
7266
|
+
> p:has(+ .ProseMirror-gapcursor + :is(ul, ol)) {
|
|
7267
|
+
margin-bottom: 0;
|
|
7268
|
+
}
|
|
7269
|
+
|
|
7270
|
+
/* The editor scrolls sideways for wide tables, and a scroll box clips what
|
|
7271
|
+
hangs outside it. At the reader's indent the marker of item 10 is cut off;
|
|
7272
|
+
only a list against the left edge is at risk. */
|
|
7273
|
+
.compose-tiptap-body .tiptap > ol {
|
|
7274
|
+
padding-left: 2.25em;
|
|
7275
|
+
}
|
|
7276
|
+
|
|
7277
|
+
/* The post draws rules between rows and none between columns, which leaves an
|
|
7278
|
+
empty table in a draft with no visible cells. The grid is for writing. */
|
|
7279
|
+
.compose-tiptap-body .tiptap table {
|
|
7280
|
+
border-collapse: collapse;
|
|
7281
|
+
}
|
|
7282
|
+
|
|
7283
|
+
.compose-tiptap-body .tiptap :is(td, th) {
|
|
7284
|
+
position: relative;
|
|
7285
|
+
border: 1px solid var(--site-divider);
|
|
7286
|
+
padding: 0.4em 0.6em;
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7289
|
+
.compose-tiptap-body .tiptap .selectedCell {
|
|
7290
|
+
background: oklch(from var(--site-accent) l c h / 0.12);
|
|
7291
|
+
}
|
|
7292
|
+
|
|
7293
|
+
/* TipTap wraps each table in `.tableWrapper`. The reader's rule that a block
|
|
7294
|
+
right after a heading or a rule gives up its top margin then lands on the
|
|
7295
|
+
wrapper, and the table inside keeps its own. */
|
|
7296
|
+
.compose-tiptap-body
|
|
7297
|
+
.tiptap
|
|
7298
|
+
:is(h1, h2, h3, h4, h5, h6, hr)
|
|
7299
|
+
+ .tableWrapper
|
|
7300
|
+
> table,
|
|
7301
|
+
.compose-tiptap-body .tiptap > .tableWrapper:first-child > table {
|
|
7302
|
+
margin-top: 0;
|
|
7303
|
+
}
|
|
7304
|
+
|
|
7305
|
+
/* Footnote definitions are shown where they are written, beside their label. */
|
|
7306
|
+
.compose-tiptap-body .tiptap .tiptap-footnote-definition > :first-child {
|
|
7307
|
+
margin-top: 0;
|
|
7308
|
+
}
|
|
7309
|
+
|
|
7310
|
+
.compose-tiptap-body .tiptap .tiptap-footnote-definition > :last-child {
|
|
7311
|
+
margin-bottom: 0;
|
|
7312
|
+
}
|
|
7313
|
+
|
|
7314
|
+
/* Wide and full images break out of the column on the page and in the
|
|
7315
|
+
fullscreen editor, which has the room. Every other composer is a sheet one
|
|
7316
|
+
column wide, so there they fill it. */
|
|
7317
|
+
.compose-tiptap-body:not(.compose-fullscreen *)
|
|
7318
|
+
.tiptap-image-figure:is([data-layout="wide"], [data-layout="full"]) {
|
|
7319
|
+
width: 100%;
|
|
7320
|
+
max-width: none;
|
|
7321
|
+
margin-left: 0;
|
|
7322
|
+
transform: none;
|
|
7323
|
+
}
|
|
7324
|
+
|
|
7325
|
+
/* Reply compose deliberately stays denser than ordinary authored prose. Every
|
|
7326
|
+
level, or an h5 left at the prose size would outrank the compact h1. */
|
|
7327
|
+
.compose-reply-compose-layout
|
|
7328
|
+
.compose-tiptap-body
|
|
7329
|
+
.tiptap
|
|
7330
|
+
:is(h1, h2, h3, h4, h5, h6) {
|
|
7331
|
+
font-size: var(--type-secondary);
|
|
7332
|
+
line-height: 1.32;
|
|
7333
|
+
margin-top: 1.4rem;
|
|
7334
|
+
margin-bottom: 0.75rem;
|
|
7335
|
+
}
|
|
7336
|
+
|
|
7337
|
+
.compose-reply-compose-layout .compose-tiptap-body .tiptap p {
|
|
7338
|
+
margin-top: 1rem;
|
|
7339
|
+
margin-bottom: 1rem;
|
|
7340
|
+
}
|
|
7341
|
+
|
|
7342
|
+
.compose-reply-compose-layout .compose-tiptap-body .tiptap ul {
|
|
7343
|
+
padding-left: 1.5em;
|
|
7344
|
+
margin: 0.25em 0;
|
|
7345
|
+
}
|
|
7346
|
+
|
|
7347
|
+
.compose-reply-compose-layout .compose-tiptap-body .tiptap ol {
|
|
7348
|
+
padding-left: 2.25em;
|
|
7349
|
+
margin: 0.25em 0;
|
|
7350
|
+
}
|
|
7351
|
+
|
|
7352
|
+
.compose-reply-compose-layout
|
|
7353
|
+
.compose-tiptap-body
|
|
7354
|
+
.tiptap
|
|
7355
|
+
:is(ul, ol)
|
|
7356
|
+
:is(ul, ol) {
|
|
7357
|
+
padding-left: 1.5em;
|
|
7358
|
+
margin: 0.2em 0;
|
|
7359
|
+
}
|
|
7360
|
+
|
|
7361
|
+
.compose-reply-compose-layout .compose-tiptap-body .tiptap li {
|
|
7362
|
+
margin: 0.15em 0;
|
|
7363
|
+
}
|
|
7364
|
+
|
|
7365
|
+
.compose-reply-compose-layout .compose-tiptap-body .tiptap blockquote {
|
|
7366
|
+
margin: 0.72em 0;
|
|
7367
|
+
padding: 1.3rem 0.9em 0.76em 1em;
|
|
7368
|
+
}
|