From 412cb1a173c6591fba9f064007a1646c013123ea Mon Sep 17 00:00:00 2001 From: wuyiping0628 <1106773985@qq.com> Date: Tue, 31 Mar 2026 01:53:53 -0700 Subject: [PATCH] feat: modify the style of the prompt component --- .vitepress/theme/style.css | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css index c219ed2..632d4a3 100644 --- a/.vitepress/theme/style.css +++ b/.vitepress/theme/style.css @@ -487,7 +487,6 @@ info { display: none; } .vp-doc .custom-block { - display: flex; padding: 1rem 1.25rem; border-radius: 1rem; margin-top: 1rem; @@ -498,6 +497,15 @@ info { margin: 0; line-height: 20px; } +.vp-doc .custom-block.info ol, +.vp-doc .custom-block.warning ol, +.vp-doc .custom-block.danger ol, +.vp-doc .custom-block.tip ol { + margin-left: 32px; +} +.vp-doc .custom-block .custom-block-content { + margin-left: 32px; +} .vp-doc .custom-block.info { background: #f5faff; border: 1px solid #ceebff; @@ -519,7 +527,7 @@ info { color: #5cb300; } .vp-doc .custom-block::before { - display: inline-block; + float: left; width: 20px; height: 20px; margin-top: 2px;