Mall:Truppmall/styles.css

Från Wikipedia
/* Från https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&oldid=880043218 */

/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 8 (2016-05-21)
   @author [[User:Edokter]]
 */
.truppmall_lista dl,
.truppmall_lista ol,
.truppmall_lista ul {
	margin: 0;
	padding: 0;
}

/* vit bakgrund, centrera text */
.truppmall_lista {
	background: white;
	text-align: center;
}

/* vit bakgrund, centrera text */
.truppmall_lista ul {
	background: white;
	text-align: center;
}

/* Display list items inline */
.truppmall_lista dd,
.truppmall_lista dt,
.truppmall_lista li {
	margin: 0;
	display: inline;
}
/* Display nested lists inline */
.truppmall_lista.inline,
.truppmall_lista.inline dl,
.truppmall_lista.inline ol,
.truppmall_lista.inline ul,
.truppmall_lista dl dl, .truppmall_lista dl ol, .truppmall_lista dl ul,
.truppmall_lista ol dl, .truppmall_lista ol ol, .truppmall_lista ol ul,
.truppmall_lista ul dl, .truppmall_lista ul ol, .truppmall_lista ul ul {
	display: inline;
}
/* Hide empty list items */
.truppmall_lista .mw-empty-li {
	display: none;
}
/* Generate interpuncts */
.truppmall_lista dt:after {
	content: ": ";
}
/**
 * Note hlist style usage differd in
 * the Minerva skin. Remember .truppmall_lista is a class defined in core as well! Please check Minerva desktop (and Minerva.css) when changing
 * See https://phabricator.wikimedia.org/T213239
 */
.truppmall_lista dd:after,
.truppmall_lista li:after {
	content: " · ";
	font-weight: bold;
}
.truppmall_lista dd:last-child:after,
.truppmall_lista dt:last-child:after,
.truppmall_lista li:last-child:after {
	content: none;
}
/* Add parentheses around nested lists */
.truppmall_lista dd dd:first-child:before, .truppmall_lista dd dt:first-child:before, .truppmall_lista dd li:first-child:before,
.truppmall_lista dt dd:first-child:before, .truppmall_lista dt dt:first-child:before, .truppmall_lista dt li:first-child:before,
.truppmall_lista li dd:first-child:before, .truppmall_lista li dt:first-child:before, .truppmall_lista li li:first-child:before {
	content: " (";
	font-weight: normal;
}
.truppmall_lista dd dd:last-child:after, .truppmall_lista dd dt:last-child:after, .truppmall_lista dd li:last-child:after,
.truppmall_lista dt dd:last-child:after, .truppmall_lista dt dt:last-child:after, .truppmall_lista dt li:last-child:after,
.truppmall_lista li dd:last-child:after, .truppmall_lista li dt:last-child:after, .truppmall_lista li li:last-child:after {
	content: ")";
	font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.truppmall_lista ol {
	counter-reset: listitem;
}
.truppmall_lista ol > li {
	counter-increment: listitem;
}
.truppmall_lista ol > li:before {
	content: " " counter(listitem) "\a0";
}
.truppmall_lista dd ol > li:first-child:before,
.truppmall_lista dt ol > li:first-child:before,
.truppmall_lista li ol > li:first-child:before {
	content: " (" counter(listitem) "\a0";
}

/* [[Kategori:TemplateStyles-mallar]] */