.protyle-wysiwyg [data-node-id].li>[data-node-id] {
margin-left: 30px !important; /* 一级列表偏移 */
padding-right: 0;
}
.b3-typography li>p, .b3-typography>p, .b3-typography blockquote>p, .b3-typography [data-node-id], .protyle-wysiwyg li>p, .protyle-wysiwyg>p, .protyle-wysiwyg blockquote>p, .protyle-wysiwyg [data-node-id] {
line-height: 1.625;
/* padding-left: 8px; */
padding: 4px;
padding-left: 0px;
margin: 2px 0;
border-radius: var(--b3-border-radius);
}
/* 效果: 一级列表 1. 二级列表 1.1 三级列表 1.1.1 */
.list[data-subtype=o] {
counter-reset: none;
}
.protyle-wysiwyg .li[data-subtype=o] {
counter-increment: olcounter1
}
.protyle-wysiwyg .li[data-subtype=o] .li[data-subtype=o] {
counter-increment: olcounter2;
padding-left: 1.2%;
}
.protyle-wysiwyg .li[data-subtype=o] .li[data-subtype=o] > .protyle-action {
color: rgba(0, 0, 0, 0) !important;
}
.protyle-wysiwyg .li[data-subtype=o] .li[data-subtype=o] > .protyle-action::after {
content: counter(olcounter1, -moz-devanagari) "." counter(olcounter2, decimal);
display: table;
}
.protyle-wysiwyg .li[data-subtype=o] .li[data-subtype=o] .li[data-subtype=o] {
counter-increment: olcounter3;
padding-left: 3%;
}
.protyle-wysiwyg .li[data-subtype=o] .li[data-subtype=o] .li[data-subtype=o] > .protyle-action {
color: rgba(0, 0, 0, 0) !important
}
.protyle-wysiwyg .li[data-subtype=o] .li[data-subtype=o] .li[data-subtype=o] > .protyle-action::after {
content: counter(olcounter1, decimal) "." counter(olcounter2, decimal) "."counter(olcounter3, decimal)
}
哪位大神能帮我添加一下四级和五级样式的代码吗?
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于