模板:Tree list/styles.css
来自Blockland Wiki
更多操作
.treeview ul {
margin: 0;
padding-left: 1em;
list-style: none;
}
.treeview li {
position: relative;
margin: 0;
padding-left: 0.8em;
list-style: none;
line-height: 1.5;
}
.treeview li::before,
.treeview li::after {
content: "";
position: absolute;
left: 0;
}
.treeview li::before {
top: 0;
bottom: 0;
border-left: 1px solid #a2a9b1;
}
.treeview li::after {
top: 0.75em;
width: 0.65em;
border-top: 1px solid #a2a9b1;
}
.treeview li:last-child::before {
height: 0.75em;
bottom: auto;
}