Template:Tree list/styles.css: Difference between revisions
Appearance
m 1 revision imported |
Replace external tree image with local CSS connectors |
||
| Line 13: | Line 13: | ||
.treeview li li { | .treeview li li { | ||
position: relative; | |||
/* @noflip */ | /* @noflip */ | ||
padding-left: 21px; | padding-left: 21px; | ||
| Line 19: | Line 19: | ||
} | } | ||
.treeview li li: | .treeview li li::before { | ||
position: absolute; | |||
top: -0.7em; | |||
bottom: 50%; | |||
left: 0; | |||
width: 12px; | |||
border-bottom: 1px solid #a2a9b1; | |||
border-left: 1px solid #a2a9b1; | |||
content: ""; | |||
} | } | ||
.treeview li li:not(:last-child)::after { | |||
position: absolute; | |||
top: 50%; | |||
bottom: -0.7em; | |||
left: 0; | |||
border-left: 1px solid #a2a9b1; | |||
content: ""; | |||
} | } | ||
Latest revision as of 15:44, 13 September 2026
/* {{pp-template}} */
.treeview ul {
padding: 0;
margin: 0;
}
.treeview li {
padding: 0;
margin: 0;
list-style-type: none;
list-style-image: none;
}
.treeview li li {
position: relative;
/* @noflip */
padding-left: 21px;
text-indent: 0.3em;
}
.treeview li li::before {
position: absolute;
top: -0.7em;
bottom: 50%;
left: 0;
width: 12px;
border-bottom: 1px solid #a2a9b1;
border-left: 1px solid #a2a9b1;
content: "";
}
.treeview li li:not(:last-child)::after {
position: absolute;
top: 50%;
bottom: -0.7em;
left: 0;
border-left: 1px solid #a2a9b1;
content: "";
}