/* Style for horizontal lists (separator following item).
@source mediawiki.org/wiki/Snippets/Horizontal_lists
@revision 8 (2016-05-21)
@author [[User:Edokter]]
*/
/**
* Note hlist style usage differs in Minerva and is defined in core as well!
* Please check Minerva desktop (and Minerva.css) when changing
* See https://phabricator.wikimedia.org/T213239
* TODO: Remove this note when it becomes irrelevant. (Soon?)
*/
.mw-parser-output .hlist dl,
.mw-parser-output .hlist ol,
.mw-parser-output .hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.mw-parser-output .hlist dd,
.mw-parser-output .hlist dt,
.mw-parser-output .hlist li {
/*
* don't trust the note that says margin doesn't work with inline
* removing margin: 0 makes dds have margins again
* We also want to reset margin-right in Minerva
*/
margin: 0;
display: inline;
}
/* Display requested top-level lists inline */
.mw-parser-output .hlist.inline,
.mw-parser-output .hlist.inline dl,
.mw-parser-output .hlist.inline ol,
.mw-parser-output .hlist.inline ul,
/* Display nested lists inline */
.mw-parser-output .hlist dl dl,
.mw-parser-output .hlist dl ol,
.mw-parser-output .hlist dl ul,
.mw-parser-output .hlist ol dl,
.mw-parser-output .hlist ol ol,
.mw-parser-output .hlist ol ul,
.mw-parser-output .hlist ul dl,
.mw-parser-output .hlist ul ol,
.mw-parser-output .hlist ul ul {
display: inline;
}
/* Hide empty list items */
.mw-parser-output .hlist .mw-empty-li {
display: none;
}
/* Generate interpuncts */
.mw-parser-output .hlist dt:after {
content: ": ";
}
.mw-parser-output .hlist dd:after,
.mw-parser-output .hlist li:after {
content: " · ";
font-weight: bold;
}
.heading-holder .hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.mw-parser-output .hlist dd dd:first-child:before,
.mw-parser-output .hlist dd dt:first-child:before,
.mw-parser-output .hlist dd li:first-child:before,
.mw-parser-output .hlist dt dd:first-child:before,
.mw-parser-output .hlist dt dt:first-child:before,
.mw-parser-output .hlist dt li:first-child:before,
.mw-parser-output .hlist li dd:first-child:before,
.mw-parser-output .hlist li dt:first-child:before,
.mw-parser-output .hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
.mw-parser-output .hlist dd dd:last-child:after,
.mw-parser-output .hlist dd dt:last-child:after,
.mw-parser-output .hlist dd li:last-child:after,
.mw-parser-output .hlist dt dd:last-child:after,
.mw-parser-output .hlist dt dt:last-child:after,
.mw-parser-output .hlist dt li:last-child:after,
.mw-parser-output .hlist li dd:last-child:after,
.mw-parser-output .hlist li dt:last-child:after,
.mw-parser-output .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.mw-parser-output .hlist ol {
counter-reset: listitem;
}
.mw-parser-output .hlist ol > li {
counter-increment: listitem;
}
.mw-parser-output .hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
.mw-parser-output .hlist dd ol > li:first-child:before,
.mw-parser-output .hlist dt ol > li:first-child:before,
.mw-parser-output .hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}