From 03d5f2fbed82af73931bf981b7b97f9635195f7e Mon Sep 17 00:00:00 2001 From: Tim <135014430+nagisa77@users.noreply.github.com> Date: Tue, 8 Jul 2025 16:25:26 +0800 Subject: [PATCH] style: customize markdown rendering --- open-isle-cli/src/assets/global.css | 60 +++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/open-isle-cli/src/assets/global.css b/open-isle-cli/src/assets/global.css index 1ccaf6f8a..ce07f80a7 100644 --- a/open-isle-cli/src/assets/global.css +++ b/open-isle-cli/src/assets/global.css @@ -56,3 +56,63 @@ body { border: none !important; box-shadow: none !important; } + +/************************* + * Markdown 渲染样式 + *************************/ +.info-content-text h1, +.info-content-text h2, +.info-content-text h3, +.info-content-text h4, +.info-content-text h5, +.info-content-text h6 { + margin-top: 1em; + margin-bottom: 0.5em; + font-weight: bold; +} + +.info-content-text ul, +.info-content-text ol { + padding-left: 1.5em; +} + +.info-content-text blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid #d0d7de; + color: #6a737d; +} + +.info-content-text pre { + background-color: #f6f8fa; + padding: 8px 12px; + border-radius: 4px; + overflow: auto; +} + +.info-content-text code { + font-family: 'Courier New', monospace; + background-color: rgba(27, 31, 35, 0.05); + padding: 2px 4px; + border-radius: 4px; +} + +.info-content-text a { + color: var(--primary-color); + text-decoration: none; +} + +.info-content-text a:hover { + text-decoration: underline; +} + +.info-content-text table { + width: 100%; + border-collapse: collapse; +} + +.info-content-text th, +.info-content-text td { + border: 1px solid #d0d7de; + padding: 6px 12px; +}