Template:Infobox/Columns/styles.css

From The Global Wiki
< Template:Infobox‎ | Columns
Revision as of 01:23, 18 January 2023 by Ofngv (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
/* {{pp-protected|reason=match parent|small=yes}} */
/* TODO: Remove .infobox when element selectors in Common.css are removed as
 * we are overriding text-align: center on .infobox .infobox-full-data here
 */
.infobox .infobox-columns {
	display: flex;
	text-align: left;
}

.infobox-columns > div {
	box-sizing: border-box;
	width: 50%;
	padding: 2px;
}

.infobox-columns-3 > div {
	width: 33.33%;
}

.infobox-columns-4 > div {
	width: 25%;
}

.infobox-columns > div:not(:first-child) {
	border-left: 1px dotted #aaa;
	padding-left: 5px;
}