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

From MicrasWiki
Jump to navigationJump to search
(Test)
(Undo revision 217604 by Craitman (talk))
 
Line 1: Line 1:
/* {{pp-template}} */
/* {{pp-template}} */
table.ahnentafel {
.treeview ul {
border-collapse: separate;
padding: 0;
border-spacing: 0;
margin: 0;
line-height: 130%;
}
}
.ahnentafel tr {
.treeview li {
text-align:center;
padding: 0;
margin: 0;
list-style-type: none;
list-style-image: none;
}
}
.ahnentafel-t {
.treeview li li {
border-top:#000 solid 1px;  
background: url("https://upload.wikimedia.org/wikipedia/commons/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
border-left:#000 solid 1px;
padding-left: 21px;
text-indent: 0.3em;
}
}
.ahnentafel-b {
.treeview li li:last-child {
border-bottom:#000 solid 1px;
background-position: 0 -5971px
border-left:#000 solid 1px;
}
/* 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
}
}

Latest revision as of 13:35, 14 October 2021

/* {{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 {
	background: url("https://upload.wikimedia.org/wikipedia/commons/f/f2/Treeview-grey-line.png") no-repeat 0 -2981px;
	padding-left: 21px;
	text-indent: 0.3em;
}
.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
}