Actions

MediaWiki

Common.css: Difference between revisions

From Beyond the Pale

Kauria (talk | contribs)
No edit summary
Kauria (talk | contribs)
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Infoboxes */
.infobox {
.infobox {
border: 1px solid #a2a9b1;
box-sizing: border-box;
color: black;
border: 2px solid var( --border-color-base, #a2a9b1 );
padding: 0.2em;
width: 280px;
font-size: 88%;
border-collapse: collapse;
line-height: 1.5em;
border-spacing: 0;
border-spacing: 3px;
background-color: white;
margin: 0.5em 0;
color: #333;
/* 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;
}
}


@media screen {
.infobox th {
.infobox {
/* @noflip */
background-color: var(--background-color-neutral-subtle, #f8f9fa);
text-align: left;
    }
padding: 0.2em 0.5em;
vertical-align: top;
}
}


@media (max-width: 640px) {
.infobox-rtl th {
.infobox {
/* @noflip */
width: 100%;
text-align: right;
}
   
.infobox .nowrap {
white-space: normal;
}
}
}


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


.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
.infobox td {
border: none;
padding: 0.2em 0.5em;
vertical-align: top;
vertical-align: top;
}
}


.infobox-label,
.infobox-header {
.infobox-data,
background-color: #a2a9b1;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
color: #FFF;
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
text-align: left;
}
}


/* Remove .infobox when element selectors above are removed */
.infobox-header a {
.infobox .infobox-above,
color: #FFF;
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
}
}


.infobox-title,
.infobox-header td,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox-header th {
.infobox caption {
padding: 0.5em 0.5em;
padding: 0.2em;
}
}


/* Remove .infobox when element selectors above are removed */
.infobox-header img {
.infobox .infobox-header,
padding: 0 0.2em 0 0.5em;
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}
 
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
/* @noflip */
text-align: right;
}
}

Revision as of 05:19, 12 December 2025

.infobox {
	box-sizing: border-box;
	border: 2px solid var( --border-color-base, #a2a9b1 );
	width: 280px;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: white;
	color: #333;
	/* 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: #a2a9b1;
	color: #FFF;
	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;
}