「模板:Tree list/styles.css」:修訂間差異

出自合眾百科 Unitedbook
imported>DC
(建立內容為「→‎{{pp-template}}:​ .treeview ul { padding: 0; margin: 0; } .treeview li { padding: 0; margin: 0; list-style-type: none; list-style-image: none; } .treevi…」的新頁面
 
DC對話 | 貢獻
無編輯摘要
 
第4行: 第4行:
margin: 0;
margin: 0;
}
}
.treeview li {
.treeview li {
padding: 0;
padding: 0;
第10行: 第11行:
list-style-image: none;
list-style-image: none;
}
}
.treeview li li {
.treeview li li {
background: url("//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 */
padding-left: 21px;
padding-left: 21px;
text-indent: 0.3em;
text-indent: 0.3em;
}
}
.treeview li li:last-child {
.treeview li li:last-child {
background-position: 0 -5971px
background-position: 0 -5971px
}
}
/* first line here deals with new situation after RemexHTML switch,
/* first line here deals with new situation after RemexHTML switch,
  * where emptyline cause the first child to become the 2nd child. Such a mess
  * where emptyline cause the first child to become the 2nd child. Such a mess

於 2024年4月18日 (四) 22:53 的最新修訂

/* {{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;
	/* @noflip */
	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
}