Jump to content

Template:Infobox settlement/styles.css

From the Vrienden Universe, a fictional wiki
Revision as of 13:21, 3 July 2026 by VU-MaintenanceBot (talk | contribs) (Correct dark mode infobox colors)
/* Settlement infobox styling */

.ib-settlement {
	border-collapse: collapse;
	line-height: 1.2em;
	box-sizing: border-box;
}

/* Do not force mobile full-width. The main table width is set by bodystyle in Template:Infobox settlement. */

.ib-settlement td,
.ib-settlement th {
	border-top: 1px solid var(--border-color-base, #a2a9b1);
	padding: 0.4em 0.6em;
	box-sizing: border-box;
}

.ib-settlement .mergedtoprow .infobox-full-data,
.ib-settlement .mergedtoprow .infobox-header,
.ib-settlement .mergedtoprow .infobox-data,
.ib-settlement .mergedtoprow .infobox-label,
.ib-settlement .mergedtoprow .infobox-below {
	border-top: 1px solid var(--border-color-base, #a2a9b1);
	padding: 0.4em 0.6em 0.2em;
}

.ib-settlement .mergedrow .infobox-full-data,
.ib-settlement .mergedrow .infobox-data,
.ib-settlement .mergedrow .infobox-label {
	border: 0;
	padding: 0 0.6em 0.2em;
}

.ib-settlement .mergedbottomrow .infobox-full-data,
.ib-settlement .mergedbottomrow .infobox-data,
.ib-settlement .mergedbottomrow .infobox-label {
	border-top: 0;
	border-bottom: 1px solid var(--border-color-base, #a2a9b1);
	padding: 0 0.6em 0.4em;
}

.ib-settlement .maptable {
	border: 0;
	padding: 0;
}

.ib-settlement .infobox-above {
	font-size: 125%;
	line-height: 1.3em;
	text-align: center;
}

.ib-settlement .infobox-subheader {
	font-weight: bold;
	text-align: center;
}

.ib-settlement .infobox-header,
.ib-settlement .infobox-below {
	text-align: left;
}

.ib-settlement-native {
	font-weight: normal;
	padding-top: 0.2em;
}

.ib-settlement-other-name {
	font-size: 78%;
}

.ib-settlement-official {
	font-weight: bold;
}

.ib-settlement-caption {
	padding: 0.3em 0 0;
}

.ib-settlement-caption-link {
	padding: 0.2em 0;
}

.ib-settlement-nickname {
	display: inline;
}

.ib-settlement-fn {
	font-weight: normal;
	display: inline;
}

/* Keep infobox section headers centered. */
.infobox.ib-settlement .infobox-header,
.ib-settlement .infobox-header {
	text-align: center;
}


@media screen {
	html.skin-theme-clientpref-night .infobox,
	body.skin-theme-clientpref-night .infobox {
		background-color: #1e1e1e;
		color: #ffffff;
		border-color: #444;
	}

	html.skin-theme-clientpref-night .infobox th,
	html.skin-theme-clientpref-night .infobox td,
	html.skin-theme-clientpref-night .infobox .infobox-label,
	html.skin-theme-clientpref-night .infobox .infobox-data,
	html.skin-theme-clientpref-night .infobox .infobox-full-data,
	body.skin-theme-clientpref-night .infobox th,
	body.skin-theme-clientpref-night .infobox td,
	body.skin-theme-clientpref-night .infobox .infobox-label,
	body.skin-theme-clientpref-night .infobox .infobox-data,
	body.skin-theme-clientpref-night .infobox .infobox-full-data {
		background-color: #1e1e1e;
		color: #ffffff;
		border-color: #444;
	}

	html.skin-theme-clientpref-night .infobox .infobox-above,
	html.skin-theme-clientpref-night .infobox .infobox-title,
	html.skin-theme-clientpref-night .infobox .infobox-header,
	html.skin-theme-clientpref-night .infobox .infobox-subheader,
	html.skin-theme-clientpref-night .infobox .infobox-below,
	html.skin-theme-clientpref-night .infobox caption,
	html.skin-theme-clientpref-night .infobox th[colspan],
	body.skin-theme-clientpref-night .infobox .infobox-above,
	body.skin-theme-clientpref-night .infobox .infobox-title,
	body.skin-theme-clientpref-night .infobox .infobox-header,
	body.skin-theme-clientpref-night .infobox .infobox-subheader,
	body.skin-theme-clientpref-night .infobox .infobox-below,
	body.skin-theme-clientpref-night .infobox caption,
	body.skin-theme-clientpref-night .infobox th[colspan] {
		background-color: #1B223D !important;
		color: #e0f0ff !important;
		border-color: #3a506b;
	}

	html.skin-theme-clientpref-night .infobox a:link,
	html.skin-theme-clientpref-night .infobox a:visited,
	body.skin-theme-clientpref-night .infobox a:link,
	body.skin-theme-clientpref-night .infobox a:visited {
		color: #88ccff;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox,
	body.skin-theme-clientpref-os .infobox {
		background-color: #1e1e1e;
		color: #ffffff;
		border-color: #444;
	}

	html.skin-theme-clientpref-os .infobox th,
	html.skin-theme-clientpref-os .infobox td,
	html.skin-theme-clientpref-os .infobox .infobox-label,
	html.skin-theme-clientpref-os .infobox .infobox-data,
	html.skin-theme-clientpref-os .infobox .infobox-full-data,
	body.skin-theme-clientpref-os .infobox th,
	body.skin-theme-clientpref-os .infobox td,
	body.skin-theme-clientpref-os .infobox .infobox-label,
	body.skin-theme-clientpref-os .infobox .infobox-data,
	body.skin-theme-clientpref-os .infobox .infobox-full-data {
		background-color: #1e1e1e;
		color: #ffffff;
		border-color: #444;
	}

	html.skin-theme-clientpref-os .infobox .infobox-above,
	html.skin-theme-clientpref-os .infobox .infobox-title,
	html.skin-theme-clientpref-os .infobox .infobox-header,
	html.skin-theme-clientpref-os .infobox .infobox-subheader,
	html.skin-theme-clientpref-os .infobox .infobox-below,
	html.skin-theme-clientpref-os .infobox caption,
	html.skin-theme-clientpref-os .infobox th[colspan],
	body.skin-theme-clientpref-os .infobox .infobox-above,
	body.skin-theme-clientpref-os .infobox .infobox-title,
	body.skin-theme-clientpref-os .infobox .infobox-header,
	body.skin-theme-clientpref-os .infobox .infobox-subheader,
	body.skin-theme-clientpref-os .infobox .infobox-below,
	body.skin-theme-clientpref-os .infobox caption,
	body.skin-theme-clientpref-os .infobox th[colspan] {
		background-color: #1B223D !important;
		color: #e0f0ff !important;
		border-color: #3a506b;
	}

	html.skin-theme-clientpref-os .infobox a:link,
	html.skin-theme-clientpref-os .infobox a:visited,
	body.skin-theme-clientpref-os .infobox a:link,
	body.skin-theme-clientpref-os .infobox a:visited {
		color: #88ccff;
	}
}

/* Dark-mode color correction for VU infoboxes. */
@media screen {
	html.skin-theme-clientpref-night .infobox,
	body.skin-theme-clientpref-night .infobox,
	html.skin-theme-clientpref-night .infobox th,
	html.skin-theme-clientpref-night .infobox td,
	html.skin-theme-clientpref-night .infobox .infobox-label,
	html.skin-theme-clientpref-night .infobox .infobox-data,
	html.skin-theme-clientpref-night .infobox .infobox-full-data,
	body.skin-theme-clientpref-night .infobox th,
	body.skin-theme-clientpref-night .infobox td,
	body.skin-theme-clientpref-night .infobox .infobox-label,
	body.skin-theme-clientpref-night .infobox .infobox-data,
	body.skin-theme-clientpref-night .infobox .infobox-full-data {
		color: #ffffff;
	}

	html.skin-theme-clientpref-night .infobox .infobox-above,
	html.skin-theme-clientpref-night .infobox .infobox-title,
	html.skin-theme-clientpref-night .infobox .infobox-header,
	html.skin-theme-clientpref-night .infobox .infobox-subheader,
	html.skin-theme-clientpref-night .infobox .infobox-below,
	body.skin-theme-clientpref-night .infobox .infobox-above,
	body.skin-theme-clientpref-night .infobox .infobox-title,
	body.skin-theme-clientpref-night .infobox .infobox-header,
	body.skin-theme-clientpref-night .infobox .infobox-subheader,
	body.skin-theme-clientpref-night .infobox .infobox-below {
		color: #e0f0ff !important;
	}

	html.skin-theme-clientpref-night .infobox a:link,
	html.skin-theme-clientpref-night .infobox a:visited,
	body.skin-theme-clientpref-night .infobox a:link,
	body.skin-theme-clientpref-night .infobox a:visited {
		color: #88ccff;
	}

	html.skin-theme-clientpref-night .infobox a.new:link,
	html.skin-theme-clientpref-night .infobox a.new:visited,
	body.skin-theme-clientpref-night .infobox a.new:link,
	body.skin-theme-clientpref-night .infobox a.new:visited {
		color: #ff6b6b;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox,
	body.skin-theme-clientpref-os .infobox,
	html.skin-theme-clientpref-os .infobox th,
	html.skin-theme-clientpref-os .infobox td,
	html.skin-theme-clientpref-os .infobox .infobox-label,
	html.skin-theme-clientpref-os .infobox .infobox-data,
	html.skin-theme-clientpref-os .infobox .infobox-full-data,
	body.skin-theme-clientpref-os .infobox th,
	body.skin-theme-clientpref-os .infobox td,
	body.skin-theme-clientpref-os .infobox .infobox-label,
	body.skin-theme-clientpref-os .infobox .infobox-data,
	body.skin-theme-clientpref-os .infobox .infobox-full-data {
		color: #ffffff;
	}

	html.skin-theme-clientpref-os .infobox .infobox-above,
	html.skin-theme-clientpref-os .infobox .infobox-title,
	html.skin-theme-clientpref-os .infobox .infobox-header,
	html.skin-theme-clientpref-os .infobox .infobox-subheader,
	html.skin-theme-clientpref-os .infobox .infobox-below,
	body.skin-theme-clientpref-os .infobox .infobox-above,
	body.skin-theme-clientpref-os .infobox .infobox-title,
	body.skin-theme-clientpref-os .infobox .infobox-header,
	body.skin-theme-clientpref-os .infobox .infobox-subheader,
	body.skin-theme-clientpref-os .infobox .infobox-below {
		color: #e0f0ff !important;
	}

	html.skin-theme-clientpref-os .infobox a:link,
	html.skin-theme-clientpref-os .infobox a:visited,
	body.skin-theme-clientpref-os .infobox a:link,
	body.skin-theme-clientpref-os .infobox a:visited {
		color: #88ccff;
	}

	html.skin-theme-clientpref-os .infobox a.new:link,
	html.skin-theme-clientpref-os .infobox a.new:visited,
	body.skin-theme-clientpref-os .infobox a.new:link,
	body.skin-theme-clientpref-os .infobox a.new:visited {
		color: #ff6b6b;
	}
}