Jump to content

Template:Infobox settlement/styles.css: Difference between revisions

From the Vrienden Universe, a fictional wiki
Center infobox section headers consistently
Add dark mode infobox styles
Line 95: Line 95:
.ib-settlement .infobox-header {
.ib-settlement .infobox-header {
text-align: center;
text-align: center;
}
@media screen {
html.skin-theme-clientpref-night .infobox,
body.skin-theme-clientpref-night .infobox {
background-color: #1e1e1e;
color: #d0d0d0;
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: #d0d0d0;
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: #d0d0d0;
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: #d0d0d0;
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;
}
}
}

Revision as of 10:40, 3 July 2026

/* 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: #d0d0d0;
		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: #d0d0d0;
		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: #d0d0d0;
		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: #d0d0d0;
		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;
	}
}