From 5f743f13c3190dd92b3b8530f8f95e6d8d3ba0e9 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Tue, 18 Jun 2024 14:38:07 +0800 Subject: [PATCH] perf(theme): improve styles --- theme/src/client/styles/content.css | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/theme/src/client/styles/content.css b/theme/src/client/styles/content.css index bf36305d8..8efbcc505 100644 --- a/theme/src/client/styles/content.css +++ b/theme/src/client/styles/content.css @@ -39,12 +39,21 @@ } .vp-doc h3 { - margin: 32px 0 0; + margin: 32px 0 16px; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; } +.vp-doc h4, +.vp-doc h5, +.vp-doc h6 { + margin: 24px 0 16px; + font-size: 16px; + line-height: 24px; + letter-spacing: -0.01em; +} + .vp-doc .header-anchor { position: relative; color: inherit; @@ -89,6 +98,10 @@ } } +.vp-doc img { + display: inline-block; +} + .vp-doc img + img { margin-left: 0.5rem; } @@ -148,10 +161,6 @@ font-weight: 600; } -.vp-doc a > img { - display: inline-block; -} - /** * Lists * -------------------------------------------------------------------------- */