Skip to content

Commit

Permalink
fix outline title color issue
Browse files Browse the repository at this point in the history
  • Loading branch information
emptylight370 committed Nov 5, 2024
1 parent 274a128 commit 82d8e19
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 2 additions & 4 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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预览面板右侧意外滚动条

# 插件适配

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
26 changes: 16 additions & 10 deletions sub/block/title.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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);
}

Expand All @@ -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;
Expand Down Expand Up @@ -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);
}

Expand All @@ -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;
Expand Down Expand Up @@ -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);
}

Expand All @@ -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;
Expand Down Expand Up @@ -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);
}

Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 82d8e19

Please sign in to comment.