Skip to content

Commit

Permalink
🔥 思源2.7.5更新了【新窗口置顶】,去除了块菜单增强中的【在新窗口打开】
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Feb 13, 2023
1 parent 85d5920 commit aa6801e
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 18 deletions.
9 changes: 7 additions & 2 deletions CHANGE_LOGS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## v1.5.7 修复缺陷 / 2023.02.13
- :bug: 修复不能用编辑Markdown源码
- :fire: 思源2.7.5更新了悬浮面板,因此去掉了【展开左右树面板按钮】

- :fire: 思源2.7.5更新了悬浮面板,因此去掉了【展开左右树面板】按钮
- :fire: 思源2.7.5更新了【新窗口置顶】,去除了块菜单增强中的【在新窗口打开】
- :lipstick: 高亮文本导出样式调整为只有绿色下划线
- :bug: fix 导出时使用的是Dark主题的link icon
- :bug: fix 不能用编辑Markdown源码
- :bug: fix 列表转脑图导出pdf 列表偏移

## v1.5.6 / 2023.02.12

Expand Down
2 changes: 1 addition & 1 deletion script/module/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ export var config = {
items: [
// 子菜单项列表
{
enable: true,
enable: false,
type: null,
mode: 'button',
icon: '#iconExport',
Expand Down
13 changes: 1 addition & 12 deletions style/func/link_icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,7 @@
}


[data-theme-mode="dark"] .protyle-wysiwyg [data-node-id] span[data-type~='a'][data-href ^="http"]:not(:empty)::before,
.protyle-wysiwyg [data-node-id] a[href ^="http"]::before,
.b3-typography a[href ^="http"]::before{
content: "";
background-image: url('/appearance/themes/Tsundoku/src/link_icon/net2_dark.svg');
}


.protyle-wysiwyg [data-node-id] span[data-type~='a'][data-href *="cnblogs.com"]:not(:empty)::before,
.protyle-wysiwyg [data-node-id] a[href *="cnblogs.com"]::before,
Expand Down Expand Up @@ -543,13 +538,7 @@
background-image: url('/appearance/themes/Tsundoku/src/link_icon/github_icon.svg') !important;
}

[data-theme-mode="dark"] .protyle-wysiwyg [data-node-id] span[data-type~='a'][data-href *="github.com"]:not(:empty)::before,
.protyle-wysiwyg [data-node-id] a[href *="github.com"]::before,
.b3-typography a[href *="github.com"]::before{

content: "";
background-image: url('/appearance/themes/Tsundoku/src/link_icon/github_icon_dark.png') !important;
}



Expand Down
15 changes: 15 additions & 0 deletions style/func/link_icon_dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[data-theme-mode="dark"] .protyle-wysiwyg [data-node-id] span[data-type~='a'][data-href ^="http"]:not(:empty)::before,
.protyle-wysiwyg [data-node-id] a[href ^="http"]::before,
.b3-typography a[href ^="http"]::before{
content: "";
background-image: url('/appearance/themes/Tsundoku/src/link_icon/net2_dark.svg');
}


[data-theme-mode="dark"] .protyle-wysiwyg [data-node-id] span[data-type~='a'][data-href *="github.com"]:not(:empty)::before,
.protyle-wysiwyg [data-node-id] a[href *="github.com"]::before,
.b3-typography a[href *="github.com"]::before{

content: "";
background-image: url('/appearance/themes/Tsundoku/src/link_icon/github_icon_dark.png') !important;
}
6 changes: 6 additions & 0 deletions style/func/mark-display.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
border-bottom: 2px solid var(--b3-font-color4);
}

/* 设置导出样式并没有用 */
/* #preview.protyle-wysiwyg span[data-type~='mark']{
color: var(--b3-protyle-inline-mark-color);
background-color: var(--b3-card-success-background);
border-bottom: 2px solid var(--b3-font-color4);
} */
6 changes: 6 additions & 0 deletions style/func/mark-hide.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@
transition: color 0.2s ease-in-out;
}

/* 设置导出样式并没有用 */
/* #preview.protyle-wysiwyg span[data-type~='mark']{
color: transparent;
border-bottom: 2px solid var(--b3-font-color4);
} */

/* -------------如果希望取消挖空效果,请删除这段代码 END----------------------------------- */
1 change: 1 addition & 0 deletions style/theme/Tsundoku_dark.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* 导入代码块样式 */
@import url('/appearance/themes/Tsundoku/style/func/code_block_dark.css');
@import url('/appearance/themes/Tsundoku/style/func/link_icon_dark.css');

:root {
/* 主色 */
Expand Down
10 changes: 7 additions & 3 deletions theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -888,12 +888,12 @@ li[data-type='navigation-file'] .counter {
border-radius: 4px;
}
.b3-color__square[data-type='color'] {
background: no-repeat round url('/appearance/themes/Tsundoku/src/a1.svg');
/* background: no-repeat round url('/appearance/themes/Tsundoku/src/a1.svg'); */
box-shadow: 0 0 0 1.5px var(--b3-border-color) inset;
}

.b3-color__square[data-type='backgroundColor'] {
background: no-repeat round url('/appearance/themes/Tsundoku/src/a2.svg');
/* background: no-repeat round url('/appearance/themes/Tsundoku/src/a2.svg'); */
box-shadow: 0 0 0 1.5px var(--b3-border-color) inset;
}

Expand Down Expand Up @@ -952,13 +952,17 @@ body > #action {
background-color: transparent;
}

/* 导出的高亮样式 */
#preview.protyle-wysiwyg span[data-type~='mark']{
color: transparent;
/* color: var(--b3-protyle-inline-mark-color); */
transition: color 0.2s ease-in-out;
background-color: var(--b3-card-success-background);
background-color: transparent;
/* background-color: var(--b3-card-success-background); */
border-bottom: 2px solid var(--b3-font-color4);
}


#preview.protyle-wysiwyg .h1 {
text-align: center !important;
}
Expand Down

0 comments on commit aa6801e

Please sign in to comment.