From 9b7d98773b2b3120ac32c23361bf79d2d596d95c Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Mon, 2 Feb 2026 21:33:53 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=95=B4=E4=BD=93=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Ai.Vue3/src/styles/dark-theme.scss | 1 + Yi.Ai.Vue3/types/import_meta.d.ts | 1 + Yi.Bbs.Vue3/src/assets/yi-github-markdown.css | 13 +++++++++---- .../src/components/ArticleContentInfo.vue | 3 +-- Yi.Bbs.Vue3/src/components/MavonEdit.vue | 17 ++++++++++++----- 5 files changed, 24 insertions(+), 11 deletions(-) diff --git a/Yi.Ai.Vue3/src/styles/dark-theme.scss b/Yi.Ai.Vue3/src/styles/dark-theme.scss index 0cce2caa..91dcd67d 100644 --- a/Yi.Ai.Vue3/src/styles/dark-theme.scss +++ b/Yi.Ai.Vue3/src/styles/dark-theme.scss @@ -1806,6 +1806,7 @@ .marked-markdown.theme-light .code-block-wrapper .code-block-body .line-numbers{ @include dark-theme-div; } + } diff --git a/Yi.Ai.Vue3/types/import_meta.d.ts b/Yi.Ai.Vue3/types/import_meta.d.ts index 8f2a798b..c98d612e 100644 --- a/Yi.Ai.Vue3/types/import_meta.d.ts +++ b/Yi.Ai.Vue3/types/import_meta.d.ts @@ -7,6 +7,7 @@ interface ImportMetaEnv { readonly VITE_WEB_BASE_API: string; readonly VITE_API_URL: string; readonly VITE_FILE_UPLOAD_API: string; + readonly VITE_BUILD_COMPRESS: string; readonly VITE_SSO_SEVER_URL: string; readonly VITE_APP_VERSION: string; } diff --git a/Yi.Bbs.Vue3/src/assets/yi-github-markdown.css b/Yi.Bbs.Vue3/src/assets/yi-github-markdown.css index f207b3ab..4610db0d 100644 --- a/Yi.Bbs.Vue3/src/assets/yi-github-markdown.css +++ b/Yi.Bbs.Vue3/src/assets/yi-github-markdown.css @@ -7,7 +7,7 @@ -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 1.5; - color: #fff; + color: rgba(255, 255, 255, 0.9); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; line-height: 1.5; @@ -415,6 +415,7 @@ .yi .markdown-body pre { margin-top: 0; margin-bottom: 16px; + line-height: 1.7; } .yi .markdown-body hr { @@ -525,8 +526,12 @@ .yi .markdown-body ul, .yi .markdown-body ol { - padding-left: 2em; + padding-left: 0.8em; + + margin-top: 1em; } + .yi .markdown-body .nav-ul + { list-style-type: none;} .yi .markdown-body ul ul, .yi .markdown-body ul ol, @@ -641,11 +646,11 @@ .yi .markdown-body .highlight pre, .yi .markdown-body pre { - padding: 16px; + padding: 0; overflow: auto; font-size: 85%; line-height: 1.45; - /* background-color: #f6f8fa; */ + background-color: #282C34; border-radius: 3px; } diff --git a/Yi.Bbs.Vue3/src/components/ArticleContentInfo.vue b/Yi.Bbs.Vue3/src/components/ArticleContentInfo.vue index ac3ec940..219f5c3d 100644 --- a/Yi.Bbs.Vue3/src/components/ArticleContentInfo.vue +++ b/Yi.Bbs.Vue3/src/components/ArticleContentInfo.vue @@ -8,7 +8,6 @@ //} - ::v-deep(.pre-out) { padding: 0; @@ -16,7 +15,7 @@ overflow-x: hidden; } ::v-deep(.pre) { padding: 0; - margin-bottom: 0; + margin-bottom: 0 !important; overflow-x: hidden; .header { background-color: #00DA72; diff --git a/Yi.Bbs.Vue3/src/components/MavonEdit.vue b/Yi.Bbs.Vue3/src/components/MavonEdit.vue index f598e871..08ff6d3f 100644 --- a/Yi.Bbs.Vue3/src/components/MavonEdit.vue +++ b/Yi.Bbs.Vue3/src/components/MavonEdit.vue @@ -147,25 +147,32 @@ width: 100%; .edit ::v-deep(.auto-textarea-input){ /* background: none !important; */ background: #1D1E1F !important; - color: #fff !important; + color: rgba(255, 255, 255, 0.9) !important; } .edit ::v-deep(.content-input-wrapper) { background: #1D1E1F !important; - color: #fff !important; + color: rgba(255, 255, 255, 0.9) !important; } .edit ::v-deep(.v-note-edit) { background: #1D1E1F !important; - color: #fff !important; + color: rgba(255, 255, 255, 0.9) !important; } .edit ::v-deep(.v-note-op){ background: #1D1E1F !important; - color: #fff !important; + color: rgba(255, 255, 255, 0.9) !important; } .edit ::v-deep(.v-show-content){ background: #1D1E1F !important; - color: #fff !important; + color: rgba(255, 255, 255, 0.9) !important; } +::v-deep(.v-note-show pre){ + background: #282C34; +} +::v-deep(.add-image-link) +{ + background: #282C34 !important; +} \ No newline at end of file