MediaWiki:Gadget-enwp-lists.css

Văn thư lưu trữ mở Wikisource

Cache: Sau khi lưu biểu mẫu này, phải xóa bộ nhớ đệm (cache) của trình duyệt để những thay đổi hiện ra:

Firefox, Chrome, Safari, Opera — Shift­Reload / Tải lại       Internet Explorer — Ctrl­Refresh / Làm tươi       Konqueror — Reload / Tải lại

Nếu bạn viết mã JavaScript, chú ý đọc hướng dẫn để tránh mâu thuẫn với mã mặc định của mạng.

/* Additional type attributes for ol and ul elements */
ul[type="disc"] {
	list-style-type: disc;
}
ul[type="circle"] {
	list-style-type: circle;
	list-style-image: none;
}
ul[type="square"] {
	list-style-type: square;
	list-style-image: none;
}
ul[type="none"], ul[type="None"] {
	list-style-type: none;
	list-style-image: none;
}
ol[type="none"], ol[type="None"] {
	list-style-type: none;
	list-style-image: none;
}
/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 8 (2016-05-21)
   @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li {
    display: none;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) "\a0";
}
/*        END of h-List snippet            */
/**
 * Styles for lists in general.
 * 
 * @last revised (2013-04-26)
 * 
 * 
 */
/* Unbulleted lists */
.plainlist ul {
	line-height: inherit;
	list-style: none;
	margin: 0;
}
.plainlist ul li {
	margin-bottom: 0;
}

/* USEI lists (mimics legislative list types) */
ol.usei {
	position: relative;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	list-style: none;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 3.2em;
	padding: 0;
}
ol.usei * {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
ol.start {
	margin-top: 0.3em !important;
}
ol.usei li {
	margin-bottom: calc(1.00em * 0.0714);
}
ol.usei li div.marker {
	display: inline-block;
	position: absolute;
	left: -3.2em;
	min-width: 3.2em;
	padding-right: 0.5em;
	text-align: right;
}
ol.usei li div.marker > span {
	display: inline-block;
	min-width: 1.0em;
	text-align: center;
	white-space: nowrap;
}
/**
 * Style for ordered lists with marker wrapped in parenthesis
 * @source mediawiki.org
 * @revision 1.0 (2015-12-12)
 * @author [[User:GOIII]]
 */
ol.paren {
	position: relative;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding-left: 0 !important;
}
ol.paren * {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
li.paren {
	position: relative;
	padding-left: 2.50rem;
}
li.paren div.paren {
	display: inline-block;
	position: absolute;
	left: 0;
	min-width: 2.50rem;
	padding-right: 0.75rem;
	text-align: right;
}
div.paren > span.paren {
	display: inline-block;
/*	text-align: center;*/
	white-space: nowrap;
}
span.paren::after {
	content: ")";
}
span.paren::before {
	content: "(";
}
/* @end */