Template:Tree list/styles.css

From Ethan's Workspace
< Template:Tree list
Revision as of 17:12, 17 July 2022 by Ethan (talk | contribs) (Created page with "→‎{{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:last-child { background-position: 0 -5971px } →‎first line here deals with new situation after RemexHTML switch, * where emptyline cause the first child to become the 2nd child. Such a mess: .treeview li.emptyline > ul > .mw-empty-elt:first-child + .emptyline, .treeview li.emptyline > ul > li:firs...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
/* {{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:last-child {
	background-position: 0 -5971px
}
/* first line here deals with new situation after RemexHTML switch,
 * where emptyline cause the first child to become the 2nd child. Such a mess
 */
.treeview li.emptyline > ul > .mw-empty-elt:first-child + .emptyline,
.treeview li.emptyline > ul > li:first-child {
	background-position: 0 9px
}