From 82d8e19f8fbc3da91ea34b4f25e1738ea123594e Mon Sep 17 00:00:00 2001 From: Lingfengyu <1378990254@qq.com> Date: Tue, 5 Nov 2024 18:05:27 +0800 Subject: [PATCH] fix outline title color issue --- README.md | 8 ++------ README_zh_CN.md | 6 ++---- changelog.md | 3 +++ sub/block/title.css | 26 ++++++++++++++++---------- theme.json | 2 +- 5 files changed, 24 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index e58ceb6..c6b5c7c 100644 --- a/README.md +++ b/README.md @@ -37,17 +37,13 @@ Limited by the configuration loading method, updated configurations for new vers > Full changelog view [ChangeLog](https://github.com/lingfengyu-dreaming/siyuan-vscodelite-edit/blob/main/changelog.md) +- V1.4.10 + - Fixed the issue where the title in the outline lost color - V1.4.9 - Fixed the problem that the title could not be centered - V1.4.8 - Header add shadow - Header icon convert to svg and add color -- V1.4.7 - - Try to fix the export preview style - - Try to repair the display style of setting options on the right side of the settings panel - - Try to fix the unexcepted scrollbar on the right side of export PDF preview panel -- V1.4.6 - - Limit the width of the mathematical enhancement plug-in formula preview area, adjustable # Plugin fitness diff --git a/README_zh_CN.md b/README_zh_CN.md index 2712b5f..ae2a7e1 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -38,15 +38,13 @@ > 完整更新日志查看[changelog](https://github.com/lingfengyu-dreaming/siyuan-vscodelite-edit/blob/main/changelog.md) +- V1.4.10 + - 修复大纲中标题失去颜色问题 - V1.4.9 - 修复标题无法居中问题 - V1.4.8 - 标题添加阴影 - 标题符号转为svg并添加颜色 -- V1.4.7 - - 尝试修复导出预览效果 - - 尝试修复设置界面右侧设置选项显示效果 - - 尝试修复导出PDF预览面板右侧意外滚动条 # 插件适配 diff --git a/changelog.md b/changelog.md index c193373..3270b2e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # ChangeLog +- V1.4.10 + - 修复大纲中标题失去颜色问题 + - Fixed the issue where the title in the outline lost color - V1.4.9 - 修复标题无法居中问题 - Fixed the problem that the title could not be centered diff --git a/sub/block/title.css b/sub/block/title.css index 8d0caea..bb890d7 100644 --- a/sub/block/title.css +++ b/sub/block/title.css @@ -5,6 +5,7 @@ text-shadow: 2px 2px 4px var(--lite-header-shadow); } +/* h1标签 */ [data-node-id].h1 [contenteditable="true"], .protyle-preview h1 [contenteditable="true"] { display: inline-block; @@ -43,7 +44,7 @@ top: 0.2rem !important; } -/* h1标签 */ +/* 大纲h1标签 */ .sy__outline ul.b3-list.b3-list--background [data-subtype=h1], ul.b3-list.b3-list--background [data-subtype=h1] .b3-list-item__text { color: var(--mk-block-header-h1); @@ -56,6 +57,7 @@ ul.b3-list.b3-list--background [data-subtype=h1] .b3-list-item__text { text-shadow: 2px 2px 4px var(--lite-header-shadow); } +/* h2标签 */ [data-node-id].h2 [contenteditable="true"], .protyle-preview h2 [contenteditable="true"] { display: inline-block; @@ -94,9 +96,9 @@ ul.b3-list.b3-list--background [data-subtype=h1] .b3-list-item__text { top: 0.2rem !important; } -/* h2标签 */ +/* 大纲h2标签 */ .sy__outline ul.b3-list.b3-list--background [data-subtype=h2], -ul.b3-list.b3-list--background [data-subtype=h2] .b3-list-itrem__text { +ul.b3-list.b3-list--background [data-subtype=h2] .b3-list-item__text { color: var(--mk-block-header-h2); } @@ -107,6 +109,7 @@ ul.b3-list.b3-list--background [data-subtype=h2] .b3-list-itrem__text { text-shadow: 2px 2px 4px var(--lite-header-shadow); } +/* h3标签 */ [data-node-id].h3 [contenteditable="true"], .protyle-preview h3 [contenteditable="true"] { display: inline-block; @@ -145,9 +148,9 @@ ul.b3-list.b3-list--background [data-subtype=h2] .b3-list-itrem__text { top: 0.2rem !important; } -/* h3标签 */ +/* 大纲h3标签 */ .sy__outline ul.b3-list.b3-list--background [data-subtype=h3], -ul.b3-list.b3-list--background [data-subtype=h3] .b3-list-itrem__text { +ul.b3-list.b3-list--background [data-subtype=h3] .b3-list-item__text { color: var(--mk-block-header-h3); } @@ -158,6 +161,7 @@ ul.b3-list.b3-list--background [data-subtype=h3] .b3-list-itrem__text { text-shadow: 2px 2px 4px var(--lite-header-shadow); } +/* h4标签 */ [data-node-id].h4 [contenteditable="true"], .protyle-preview h4 [contenteditable="true"] { display: inline-block; @@ -196,9 +200,9 @@ ul.b3-list.b3-list--background [data-subtype=h3] .b3-list-itrem__text { top: 0.2rem !important; } -/* h4标签 */ +/* 大纲h4标签 */ .sy__outline ul.b3-list.b3-list--background [data-subtype=h4], -ul.b3-list.b3-list--background [data-subtype=h4] .b3-list-itrem__text { +ul.b3-list.b3-list--background [data-subtype=h4] .b3-list-item__text { color: var(--mk-block-header-h4); } @@ -209,6 +213,7 @@ ul.b3-list.b3-list--background [data-subtype=h4] .b3-list-itrem__text { text-shadow: 2px 2px 4px var(--lite-header-shadow); } +/* h5标签 */ [data-node-id].h5 [contenteditable="true"], .protyle-preview h5 [contenteditable="true"] { display: inline-block; @@ -247,9 +252,9 @@ ul.b3-list.b3-list--background [data-subtype=h4] .b3-list-itrem__text { top: 0.1rem !important; } -/* h5标签 */ +/* 大纲h5标签 */ .sy__outline ul.b3-list.b3-list--background [data-subtype=h5], -ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-itrem__text { +ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-item__text { color: var(--mk-block-header-h5); } @@ -260,6 +265,7 @@ ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-itrem__text { text-shadow: 2px 2px 4px var(--lite-header-shadow); } +/* h6标签 */ [data-node-id].h6 [contenteditable="true"], .protyle-preview h6 [contenteditable="true"] { display: inline-block; @@ -299,7 +305,7 @@ ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-itrem__text { top: 0.1rem !important; } -/* h6标签 */ +/* 大纲h6标签 */ .sy__outline ul.b3-list.b3-list--background [data-subtype=h6], ul.b3-list.b3-list--background [data-subtype=h6] .b3-list-item__text { color: var(--mk-block-header-h6); diff --git a/theme.json b/theme.json index f579c68..27aa992 100644 --- a/theme.json +++ b/theme.json @@ -2,7 +2,7 @@ "name": "siyuan-vscodelite-edit", "author": "Emptylight", "url": "https://github.com/lingfengyu-dreaming/siyuan-vscodelite-edit", - "version": "1.4.9", + "version": "1.4.10", "displayName": { "default": "VSCode Lite Edit" },