Template:Description list/style.css

From Meta, a Wikimedia project coordination wiki
.desc_list.inline dt {
	float: left;
	clear: left;
	margin-right: 1ex;
}
.desc_list.inline dd { line-height: 1.75em; } /* Fixes vertical alignment shift */
.desc_list.inline dd::after { /* Prevents shift in case a dd is empty */
	content: "";
	display: inline-block;
	clear:left;
}

.desc_list.nobold dt { font-weight: normal; }

.desc_list.noindent dd { margin-left: 0; }

.desc_list.colon.lang-en dt::after { content: ":"; }
.desc_list.colon.lang-space dt::after { content: " :"; }

.desc_list.align-end dt { text-align: end; }

.desc_list.width-5 dt { width: 5ex; }
.desc_list.width-7 dt { width: 7ex; }
.desc_list.width-10 dt { width: 10ex; }
.desc_list.width-15 dt { width: 15ex; }
.desc_list.width-20 dt { width: 20ex; }
.desc_list.width-25 dt { width: 25ex; }
.desc_list.width-30 dt { width: 30ex; }
.desc_list.width-35 dt { width: 35ex; }
.desc_list.width-40 dt { width: 40ex; }
.desc_list.width-45 dt { width: 45ex; }
.desc_list.width-50 dt { width: 50ex; }

.desc_list.bullet-terms dl { margin: 0.3em 0 0 1.6em; padding: 0; }
.desc_list.bullet-terms dt { display: list-item; }

.desc_list.dd-bottom-1 dd { margin-bottom: 1em; }
.desc_list.dd-bottom-2 dd { margin-bottom: 2em; }
.desc_list.dd-bottom-3 dd { margin-bottom: 3em; }

.desc_list.numbered dl {
	list-style: decimal inside;
	margin-left: 3ex;
	counter-reset: list-item;
}
.desc_list.numbered dt { display: list-item; }

.desc_list.no-list-margin dd ul,
.desc_list.no-list-margin dd ol { margin-left: 0; }