From 7715f51476cf9750b03fbe5f54189922d6f512bc Mon Sep 17 00:00:00 2001 From: eltrac Date: Wed, 6 May 2026 02:42:55 +0800 Subject: feat(ui): new blockquote style --- assets/css/_markdown.scss | 24 ++++++++++++++++++++++++ layouts/_markup/render-blockquote.html | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/assets/css/_markdown.scss b/assets/css/_markdown.scss index 0e5a48c..cf1d82a 100644 --- a/assets/css/_markdown.scss +++ b/assets/css/_markdown.scss @@ -204,6 +204,30 @@ } } + blockquote.quoted { + position: relative; + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + + &::before, &::after { + color: var(--secondary-text-color); + position: absolute; + font-weight: 800; + font-size: 1.2em; + } + + &::before { + content: "“"; + top: 0; + left: -1.1rem + } + + &::after { + content: "”"; + right: -1.1rem; + bottom: 0; + } + } + /* footnotes */ .inline-footnote { diff --git a/layouts/_markup/render-blockquote.html b/layouts/_markup/render-blockquote.html index 79f57a8..2dff9b8 100644 --- a/layouts/_markup/render-blockquote.html +++ b/layouts/_markup/render-blockquote.html @@ -24,7 +24,7 @@ {{ else }} -
- {{ .Text }} +
+ {{ .Text }}
{{ end }} -- cgit v1.2.3