Skip to content

Commit 3256b41

Browse files
committed
🐛 fix(title.css): 修复三级标题导致的显示异常 (Thanks @yuelianghuijiale #42)
1 parent 1b452ec commit 3256b41

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
233233
---
234234
235-
## 4.背景图片
235+
## 5.背景图片
236236
237237
> [!important]
238238
>
@@ -254,7 +254,7 @@
254254
255255
---
256256
257-
## 5.其他
257+
## 6.其他
258258
259259
<img align='right' src="https://s2.loli.net/2025/01/04/zt7O3daMLDC5EHW.png" alt="喜欢" />⭐ 如果喜欢主题的话,请给一个star吧,感谢🙏!
260260

onelight/style/title/title.css

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,18 @@
6565

6666

6767
#write h3 {
68-
font-size: 1.7rem;
6968
color: var(--theme-color);
70-
padding-left: 15px;
69+
font-size: 1.7rem;
7170
position: relative;
72-
}
7371

74-
#write h3::after {
75-
content: "";
76-
position: absolute;
77-
left: 0;
78-
top: 0;
79-
bottom: 0;
80-
width: 4px;
81-
background-color: var(--theme-color);
82-
border-radius: 2px;
83-
z-index: 0;
72+
span.md-plain {
73+
border-left: 4px solid var(--theme-color);
74+
padding-left: 8px;
75+
margin: 0;
76+
}
8477
}
8578

79+
8680
#write h4 {
8781
font-size: 1.5rem;
8882
width: fit-content;

0 commit comments

Comments
 (0)