Template:Infobox/styles.css: Difference between revisions

Template page
(Created page with ".infobox { box-sizing: border-box; border: 2px solid #a2a9b1; width: 280px; border-collapse: collapse; border-spacing: 0; background-color: white; →‎these are overriden by .infobox-rtl on the templates of interest: →‎@noflip: clear: right; →‎@noflip: float: right; →‎@noflip: margin: 0 0 0.5em 0.5em; } .infobox-rtl { →‎@noflip: clear: left; →‎@noflip: float: left; →‎@noflip: margin: 0 0.5em 0.5em 0; } .infobox th { →‎@noflip: ...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
border-collapse: collapse;
border-collapse: collapse;
border-spacing: 0;
border-spacing: 0;
background-color: white;
background-color: var(--color-surface-2);
/* these are overriden by .infobox-rtl on the templates of interest */
/* these are overriden by .infobox-rtl on the templates of interest */
/* @noflip */
/* @noflip */
Line 54: Line 54:


.infobox-header {
.infobox-header {
background-color: #a2a9b1;
background-color: var(--color-surface-1);
color: #FFF;
color: var(--color-base);
text-align: left;
text-align: left;
}
}

Latest revision as of 19:37, 5 November 2023

.infobox {
	box-sizing: border-box;
	border: 2px solid #a2a9b1;
	width: 280px;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: var(--color-surface-2);
	/* these are overriden by .infobox-rtl on the templates of interest */
	/* @noflip */
	clear: right;
	/* @noflip */
	float: right;
	/* @noflip */
	margin: 0 0 0.5em 0.5em;
}

.infobox-rtl {
	/* @noflip */
	clear: left;
	/* @noflip */
	float: left;
	/* @noflip */
	margin: 0 0.5em 0.5em 0;
}

.infobox th {
	/* @noflip */
	text-align: left;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

.infobox-rtl th {
	/* @noflip */
	text-align: right;
}

@media (max-width: 719px) {
	/* high specificity to ensure specific infoboxes won't override these
	 * properties with their own tstyles inadvertently */
	body.mediawiki .infobox {
		float: none;
		clear: both;
		width: 100%;
		margin: 0 0 .5em 0;
	}
}

.infobox td {
	border: none;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

.infobox-header {
	background-color: var(--color-surface-1);
	color: var(--color-base);
	text-align: left;
}

.infobox-header a {
	color: #FFF;
}

.infobox-header td,
.infobox-header th {
	padding: 0.5em 0.5em;
}

.infobox-header img {
	padding: 0 0.2em 0 0.5em;
}