Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tree list/styles.css: Difference between revisions

Template page
Content deleted Content added
per talk page request
Revert
Line 1: Line 1:
/* {{pp-template}} */
/* {{pp-template}} */
.treeview ul {
.treelist ul {
padding: 0;
padding: 0;
margin: 0;
margin: 0;
}
}


.treeview li {
.treelist li {
padding: 0;
padding: 0;
margin: 0;
margin: 0;
Line 12: Line 12:
}
}


.treeview li li {
.treelist li li {
background: url("https://upload.wikimedia.org/wikipedia/commons/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
background: url("https://upload.wikimedia.org/wikipedia/commons/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
/* @noflip */
/* @noflip */
Line 19: Line 19:
}
}


.treeview li li:last-child {
.treelist li li:last-child {
background-position: 0 -5971px
background-position: 0 -5971px
}
}


/* the 1st line here deals with a new situation after the RemexHTML switch,
/* the 1st line here deals with a new situation after the RemexHTML switch,
* wherein li.emptyline inserts an additional .mw-empty-elt element before
* wherein li.treelist_emptyline inserts an additional .mw-empty-elt element before
* the .emptyline element, causing the 1st child to become the 2nd child
* the .treelist_emptyline element, causing the 1st child to become the 2nd child
*/
*/
.treeview li.emptyline > ul > .mw-empty-elt:first-child + .emptyline,
.treelist li.treelist_emptyline > ul > .mw-empty-elt:first-child + .treelist_emptyline,
.treeview li.emptyline > ul > li:first-child {
.treelist li.treelist_emptyline > ul > li:first-child {
background-position: 0 9px
background-position: 0 9px
}
}

Revision as of 17:39, 29 April 2026

/* {{pp-template}} */
.treelist ul {
	padding: 0;
	margin: 0;
}

.treelist li {
	padding: 0;
	margin: 0;
	list-style-type: none;
	list-style-image: none;
}

.treelist li li {
	background: url("https://upload.wikimedia.org/wikipedia/commons/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
	/* @noflip */
	padding-left: 21px;
	text-indent: 0.3em;
}

.treelist li li:last-child {
	background-position: 0 -5971px
}

/* the 1st line here deals with a new situation after the RemexHTML switch,
 * wherein li.treelist_emptyline inserts an additional .mw-empty-elt element before
 * the .treelist_emptyline element, causing the 1st child to become the 2nd child
 */
.treelist li.treelist_emptyline > ul > .mw-empty-elt:first-child + .treelist_emptyline,
.treelist li.treelist_emptyline > ul > li:first-child {
	background-position: 0 9px
}

/* the dimensions of the image at the url are 21px by 5983px
 * the amount of the image that is visible adjacent to any single line is 21px by 21px
 ** positioning the image at x = 0px shows the full width of the image from 0px to 21px
 ** positioning the image at y = 9px shows the portion of the image from a height of -9px to 12px, i.e. 9 empty pixels and the first 12 image pixels
 ** positioning the image at y = -2981px shows the portion of the image from a height of 2981px to 3002px, the middle 21 pixels of the image
 ** positioning the image at y = -5971px shows the portion of the image from a height of 5971px to height+9px, i.e. the last 12 image pixels and 9 empty pixels
*/