Template:Hlist/styles.css

From Shogi Harbour Wiki
< Template:Hlist
Revision as of 11:51, 17 January 2024 by Kashi (talk | contribs) (Created page with "→‎{{pp-template}}: .hlist ul, .hlist ol { padding-left: 0; } →‎reset hlist margins of Minerva: .hlist li, .hlist dd, .hlist dt { margin-right: 0; display: inline-block; white-space: nowrap; } .hlist dt:after, .hlist dd:after, .hlist li:after { white-space: normal; } .hlist li:after, .hlist dd:after { content: " · "; font-weight: bold; } .hlist dt:after { content: ": "; } .hlist-pipe dd:after, .hlist-pipe li:after { content: " | "; font-weight: norm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
/* {{pp-template}} */
.hlist ul,
.hlist ol {
	padding-left: 0;
}
/* reset hlist margins of Minerva */
.hlist li,
.hlist dd,
.hlist dt {
	margin-right: 0;
	display: inline-block;
	white-space: nowrap;
}
.hlist dt:after,
.hlist dd:after,
.hlist li:after {
	white-space: normal;
}
.hlist li:after,
.hlist dd:after {
	content: " · ";
	font-weight: bold;
}
.hlist dt:after {
	content: ": ";
}
.hlist-pipe dd:after,
.hlist-pipe li:after {
    content: " | ";
    font-weight: normal;
}

.hlist-hyphen dd:after,
.hlist-hyphen li:after {
    content: " - ";
    font-weight: normal;
}

.hlist-comma dd:after,
.hlist-comma li:after {
	content: "、 ";
	font-weight: normal;
}

.hlist-slash dd:after,
.hlist-slash li:after {
	content: " / ";
	font-weight: normal;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
	content: none;
}
/* Add parentheses around nested lists */
/* Should be removed and moved to templates once TemplateStyles is live */
.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;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.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 */
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist ol {
	counter-reset: listitem;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist ol > li {
	counter-increment: listitem;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist ol > li:before {
	content: " " counter(listitem) " ";
	white-space: nowrap;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
	content: " (" counter(listitem) " ";
}

/* [[Category:テンプレートスタイル|Hlist]] */