Skip to content

Commit 4d2e36e

Browse files
committed
🐛 fix(彩色标题): 修复彩色标题中的数学公式不显示的问题 感谢@LTTXiaochuan的反馈 #54
1 parent 8574464 commit 4d2e36e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

onelight/style/title/title-colorful-dark.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
}
6464

6565
/* Gradient on inner span for H2 text */
66-
#write h2>span,
6766
#write h2 span.md-plain {
6867
display: inline-block;
6968
background: linear-gradient(to right, #00BFFF, #ff89c4, #00BFFF);
@@ -119,7 +118,6 @@
119118
}
120119

121120
/* 创建H3文字渐变效果 */
122-
#write h3 span,
123121
#write h3 span.md-plain {
124122
display: inline-block;
125123
background: linear-gradient(to right, #FFFFFF, #E8F5E9, #BBDEFB, #D1C4E9, #E1F5FE, #FFFFFF);
@@ -145,7 +143,6 @@
145143
}
146144

147145
/* 添加H3悬浮效果 - 字体变为纯白色 */
148-
#write h3:hover span,
149146
#write h3:hover span.md-plain {
150147
background: none;
151148
color: #FFFFFF;
@@ -440,4 +437,8 @@
440437
transform: scale(1) rotate(0);
441438
opacity: 1;
442439
}
440+
}
441+
442+
.md-heading .md-inline-math {
443+
color: var(--text-color);
443444
}

onelight/style/title/title-colorful.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
}
6666

6767
/* Gradient on inner span for H2 text */
68-
#write h2>span,
6968
#write h2 span.md-plain {
7069
display: inline-block;
7170
background: linear-gradient(to right, #ff8da1, #ffbe70, #ff8da1);
@@ -133,7 +132,6 @@
133132
}
134133

135134
/* 创建H3文字渐变效果 */
136-
#write h3 span,
137135
#write h3 span.md-plain {
138136
display: inline-block;
139137
/* 修改为在浅色背景上可读的深色奶油系渐变 */
@@ -162,7 +160,6 @@
162160
}
163161

164162
/* 添加H3悬浮效果 - 字体变为纯白色 */
165-
#write h3:hover span,
166163
#write h3:hover span.md-plain {
167164
background: none;
168165
color: #ffffff;
@@ -445,4 +442,8 @@
445442
/* 悬停时加速流动 */
446443
#write h6:hover {
447444
animation: h5FlowFixedStutter 3s ease-in-out infinite reverse;
445+
}
446+
447+
.md-heading .md-inline-math {
448+
color: var(--text-color);
448449
}

0 commit comments

Comments
 (0)