Actions

MediaWiki

Common.css: Difference between revisions

From Beyond the Pale

Kauria (talk | contribs)
m just messin
Tag: Reverted
Kauria (talk | contribs)
No edit summary
Tag: Manual revert
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Infoboxes */
.infobox {
.infobox {
box-sizing: border-box;
border: 1px solid #a2a9b1;
border: 2px solid var( --border-color-base, #86552d );
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: #032639;
/* 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 {
@media screen {
/* @noflip */
.infobox {
clear: left;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
/* @noflip */
    }
float: left;
/* @noflip */
margin: 0 0.5em 0.5em 0;
}
}


.infobox th {
@media (max-width: 640px) {
/* @noflip */
.infobox {
text-align: left;
width: 100%;
padding: 0.2em 0.5em;
}
vertical-align: top;
   
.infobox .nowrap {
white-space: normal;
}
}
}


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


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


.infobox-header a {
/* Remove .infobox when element selectors above are removed */
color: #FFF;
.infobox .infobox-above,
.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-header td,
.infobox-title,
.infobox-header th {
/* Remove element selector when every .infobox thing is using the standard module/templates  */
padding: 0.5em 0.5em;
.infobox caption {
padding: 0.2em;
}
}


.infobox-header img {
/* Remove .infobox when element selectors above are removed */
padding: 0 0.2em 0 0.5em;
.infobox .infobox-header,
.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;
}
}

Latest revision as of 14:22, 15 December 2025

/* Infoboxes */
.infobox {
	border: 1px solid #a2a9b1;
	padding: 0.2em;
	font-size: 88%;
	line-height: 1.5em;
	border-spacing: 3px;
	margin: 0.5em 0;
}

@media screen {
	.infobox {
		background-color: var(--background-color-neutral-subtle, #f8f9fa);
    }
}

@media (max-width: 640px) {
	.infobox {
		width: 100%;
	}
    
	.infobox .nowrap {
		white-space: normal;
	}
}

@media (min-width: 640px) {
	.infobox {
		/* @noflip */
		margin-left: 1em;
		/* @noflip */
		float: right;
		/* @noflip */
		clear: right;
		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 {
	vertical-align: top;
}

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

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.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,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	padding: 0.2em;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.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;
}