Jump to content

User:Remsense/paren-olist.css

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
.paren-hlist ol {
	margin: 0;
	padding: 0;
}

/* Display list items inline */
.paren-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 */
.paren-hlist ol {
	display: inline;
}
  
.paren-hlist li:last-child::after {
	content: none;
}  
/* Put ordinals in front of ordered list items */
.paren-hlist ol {
	counter-reset: listitem;
}

.paren-hlist ol > li {
	counter-increment: listitem;
}

.paren-hlist ol > li::before {
	content: " ("counter(listitem)") ";
}