diff --git a/README.md b/README.md index e4f7e61..780fb82 100644 --- a/README.md +++ b/README.md @@ -38,12 +38,13 @@ Limited by the configuration loading method, updated configurations for new vers > Full changelog view [ChangeLog](https://github.com/emptylight370/siyuan-vscodelite-edit/blob/main/changelog.md) +- V1.4.15 + - Redraw heading icon + - Fix heading display style - V1.4.14 - Adjust fullscreen display style under background image plugin adaption - V1.4.13 - Edit repo link, maybe you should reinstall -- V1.4.12 - - Remove transparency from tables to alleviate the problem of losing background in tables(only transparent background) # Plugin fitness diff --git a/README_zh_CN.md b/README_zh_CN.md index 45774c9..2c97c22 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -38,12 +38,13 @@ > 完整更新日志查看[changelog](https://github.com/emptylight370/siyuan-vscodelite-edit/blob/main/changelog.md) +- V1.4.15 + - 重绘标题图标 + - 修复标题显示效果 - V1.4.14 - 调整背景插件适配下全屏显示效果 - V1.4.13 - 修改仓库链接,可能需要重新安装 -- V1.4.12 - - 去除表格透明以缓解表格失去背景问题(仅透明背景) # 插件适配 diff --git a/changelog.md b/changelog.md index 06b656b..3bc4153 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,13 @@ # ChangeLog + +- V1.4.15 + - 重绘标题图标 + - 修复标题显示效果(#14) + - Redraw heading icon + - Fix heading display style(#14) - V1.4.14 - - 调整背景插件适配下全屏显示效果 - - Adjust fullscreen display style under background image plugin adaption + - 调整背景插件适配下全屏显示效果(#15) + - Adjust fullscreen display style under background image plugin adaption(#15) - V1.4.13 - 修改仓库链接,可能需要重新安装 - Edit repo link, maybe you should reinstall diff --git a/resources/h1.svg b/resources/h1.svg index 5b9eb1a..4710899 100644 --- a/resources/h1.svg +++ b/resources/h1.svg @@ -1,239 +1,5 @@ - - - + + + + diff --git a/resources/h2.svg b/resources/h2.svg index 96a4311..8b957ea 100644 --- a/resources/h2.svg +++ b/resources/h2.svg @@ -1,183 +1,6 @@ - - - + + + + + diff --git a/resources/h3.svg b/resources/h3.svg index 5ab2b1f..ac6eec2 100644 --- a/resources/h3.svg +++ b/resources/h3.svg @@ -1,216 +1,7 @@ - - - + + + + + + diff --git a/resources/h4.svg b/resources/h4.svg index d7f7f60..496d756 100644 --- a/resources/h4.svg +++ b/resources/h4.svg @@ -1,276 +1,8 @@ - - - + + + + + + + diff --git a/resources/h5.svg b/resources/h5.svg index 1cadc0f..010876a 100644 --- a/resources/h5.svg +++ b/resources/h5.svg @@ -1,311 +1,9 @@ - - - + + + + + + + + diff --git a/resources/h6.svg b/resources/h6.svg index da4a65e..bab48cb 100644 --- a/resources/h6.svg +++ b/resources/h6.svg @@ -1,369 +1,10 @@ - - - + + + + + + + + + diff --git a/sub/block/title-no-shadow.css b/sub/block/title-no-shadow.css index 1a865f0..2cfe754 100644 --- a/sub/block/title-no-shadow.css +++ b/sub/block/title-no-shadow.css @@ -5,8 +5,8 @@ } /* h1标签 */ -[data-node-id].h1 [contenteditable="true"], -.protyle-preview h1 [contenteditable="true"] { +[data-node-id].h1 div:nth-child(1), +.protyle-preview h1 div:nth-child(1) { display: inline-block; } @@ -56,8 +56,8 @@ ul.b3-list.b3-list--background [data-subtype=h1] .b3-list-item__text { } /* h2标签 */ -[data-node-id].h2 [contenteditable="true"], -.protyle-preview h2 [contenteditable="true"] { +[data-node-id].h2 div:nth-child(1), +.protyle-preview h2 div:nth-child(1) { display: inline-block; } @@ -107,8 +107,8 @@ ul.b3-list.b3-list--background [data-subtype=h2] .b3-list-item__text { } /* h3标签 */ -[data-node-id].h3 [contenteditable="true"], -.protyle-preview h3 [contenteditable="true"] { +[data-node-id].h3 div:nth-child(1), +.protyle-preview h3 div:nth-child(1) { display: inline-block; } @@ -158,8 +158,8 @@ ul.b3-list.b3-list--background [data-subtype=h3] .b3-list-item__text { } /* h4标签 */ -[data-node-id].h4 [contenteditable="true"], -.protyle-preview h4 [contenteditable="true"] { +[data-node-id].h4 div:nth-child(1), +.protyle-preview h4 div:nth-child(1) { display: inline-block; } @@ -209,8 +209,8 @@ ul.b3-list.b3-list--background [data-subtype=h4] .b3-list-item__text { } /* h5标签 */ -[data-node-id].h5 [contenteditable="true"], -.protyle-preview h5 [contenteditable="true"] { +[data-node-id].h5 div:nth-child(1), +.protyle-preview h5 div:nth-child(1) { display: inline-block; } @@ -260,8 +260,8 @@ ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-item__text { } /* h6标签 */ -[data-node-id].h6 [contenteditable="true"], -.protyle-preview h6 [contenteditable="true"] { +[data-node-id].h6 div:nth-child(1), +.protyle-preview h6 div:nth-child(1) { display: inline-block; } diff --git a/sub/block/title-shadow.css b/sub/block/title-shadow.css index bb890d7..d0dee95 100644 --- a/sub/block/title-shadow.css +++ b/sub/block/title-shadow.css @@ -6,8 +6,8 @@ } /* h1标签 */ -[data-node-id].h1 [contenteditable="true"], -.protyle-preview h1 [contenteditable="true"] { +[data-node-id].h1 div:nth-child(1), +.protyle-preview h1 div:nth-child(1) { display: inline-block; } @@ -58,8 +58,8 @@ ul.b3-list.b3-list--background [data-subtype=h1] .b3-list-item__text { } /* h2标签 */ -[data-node-id].h2 [contenteditable="true"], -.protyle-preview h2 [contenteditable="true"] { +[data-node-id].h2 div:nth-child(1), +.protyle-preview h2 div:nth-child(1) { display: inline-block; } @@ -110,8 +110,8 @@ ul.b3-list.b3-list--background [data-subtype=h2] .b3-list-item__text { } /* h3标签 */ -[data-node-id].h3 [contenteditable="true"], -.protyle-preview h3 [contenteditable="true"] { +[data-node-id].h3 div:nth-child(1), +.protyle-preview h3 div:nth-child(1) { display: inline-block; } @@ -162,8 +162,8 @@ ul.b3-list.b3-list--background [data-subtype=h3] .b3-list-item__text { } /* h4标签 */ -[data-node-id].h4 [contenteditable="true"], -.protyle-preview h4 [contenteditable="true"] { +[data-node-id].h4 div:nth-child(1), +.protyle-preview h4 div:nth-child(1) { display: inline-block; } @@ -214,8 +214,8 @@ ul.b3-list.b3-list--background [data-subtype=h4] .b3-list-item__text { } /* h5标签 */ -[data-node-id].h5 [contenteditable="true"], -.protyle-preview h5 [contenteditable="true"] { +[data-node-id].h5 div:nth-child(1), +.protyle-preview h5 div:nth-child(1) { display: inline-block; } @@ -266,8 +266,8 @@ ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-item__text { } /* h6标签 */ -[data-node-id].h6 [contenteditable="true"], -.protyle-preview h6 [contenteditable="true"] { +[data-node-id].h6 div:nth-child(1), +.protyle-preview h6 div:nth-child(1) { display: inline-block; } @@ -282,7 +282,6 @@ ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-item__text { mask: url(../../resources/h6.svg) no-repeat center center; mask-size: contain; background-color: var(--mk-block-header-h6); - /* filter: invert(40%); */ top: 0.1rem; margin-right: 0.2rem; }