fix(post): 恢复文章正文列表的 marker
Tailwind Preflight 全局把 ol/ul 的 list-style 清成 none, 而 .md-content 下的列表规则只恢复了缩进,没有恢复 list-style-type, 导致有序列表不显示数字、无序列表不显示项目符号。 拆分 ol/ul 规则,分别恢复 list-style-type: decimal/disc。 任务列表项(含 checkbox 的 li)已有 list-style: none 覆盖,不受影响。
This commit is contained in:
parent
0e110cdcbd
commit
687c56af19
10
input.css
10
input.css
@ -292,6 +292,16 @@
|
|||||||
margin-bottom: var(--content-gap-paper);
|
margin-bottom: var(--content-gap-paper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tailwind Preflight 把 list-style 清成 none,这里恢复被清掉的 marker。
|
||||||
|
* 任务列表项(含 checkbox 的 li)另有规则覆盖为 none,不受影响。 */
|
||||||
|
.md-content ul {
|
||||||
|
list-style-type: disc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content ol {
|
||||||
|
list-style-type: decimal;
|
||||||
|
}
|
||||||
|
|
||||||
.md-content li {
|
.md-content li {
|
||||||
margin-top: 0.3rem;
|
margin-top: 0.3rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user