Skip to content

Commit 712d13f

Browse files
committed
fix: #101 文字在被标记后,字体大小相比无样式文字过小
1 parent bae4bcb commit 712d13f

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

style/theme/basic/basic-common.styl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// 基础样式
22
:root
3-
// 字体
43
--b3-font-family _font-family-mono
54
--b3-font-family-code _font-family-mono
65
--b3-font-family-graph _font-family-mono
76
--b3-font-family-emoji _font-family-mono
87
--b3-font-family-math _font-family-math
98
--b3-font-family-protyle _font-family-mono
109

10+
// 字体
11+
html
1112
// 字体大小、间距
1213
font-size _font-size-normal
1314
margin _padding-zero
@@ -19,4 +20,5 @@
1920
line-height 22px
2021

2122
a
22-
color var(--b3-protyle-inline-blockref-color)
23+
color var(--b3-protyle-inline-blockref-color)
24+

style/theme/basic/basic-green.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
// -------------------------------------------------颜色定义-浅色模式---------------------------------------------------
2727
html[data-theme-mode="green"]
28+
--b3-font-family _font-family-mono
2829
--b3-theme-surface _body-bg-green
2930
--b3-theme-background _main-bg-green
3031
--b3-theme-background-light _sidebar-bg-green

style/theme/deck/deck-common.styl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
background-color #00c853
1717
box-shadow 0 0 5px 2px var(--b3-card-success-background)
1818

19-
.protyle-wysiwyg span[data-type="mark"]
19+
.protyle-wysiwyg span[data-type*="mark"]
2020
padding 2px 8px
2121
margin-right 4px
2222
margin-left 4px
2323
color var(--b3-card-success-color)
2424
background-color var(--b3-card-success-background)
2525
border-radius 5px
26-
font-size 12px
26+
// fix: #101
27+
// font-size 12px
2728

2829
// 列表制卡
2930
.card__block .protyle-wysiwyg .li[data-node-id][custom-riff-decks]

theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
(async () => {
2+
})()

0 commit comments

Comments
 (0)