From 620a139b74e94337ad274be0d032a85fdc2b7aa9 Mon Sep 17 00:00:00 2001 From: luandro Date: Sat, 11 Oct 2025 15:52:33 +0700 Subject: [PATCH] fix(docs): align docs spacing with notion --- src/css/custom.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/css/custom.css b/src/css/custom.css index e90aeb95..bc5c3d3b 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -104,6 +104,27 @@ img.emoji { } /* Docs content image sizing and layout */ +.theme-doc-markdown { + /* Align docs typography spacing with Notion authoring */ + --docs-block-spacing: 0.5rem; + --docs-list-spacing: 0.75rem; + --docs-list-item-spacing: 0.35rem; +} +.theme-doc-markdown > p, +.theme-doc-markdown > pre { + margin-bottom: var(--docs-block-spacing); +} +.theme-doc-markdown > ul, +.theme-doc-markdown > ol { + margin-bottom: var(--docs-list-spacing); +} +.theme-doc-markdown li + li { + margin-top: var(--docs-list-item-spacing); +} +.theme-doc-markdown li > p { + margin-top: var(--docs-list-item-spacing); +} + .theme-doc-markdown img:not(.no-doc-image-style) { max-width: 100%; height: auto;