Jump to content

Template:Infobox country/styles.css

From Schjessu wiki
.infobox-country {
	width: 22em;
	float: right;
	clear: right;
	margin: 0.5em 0 1em 1em;
	border: 1px solid #a2a9b1 !important;
	background-color: #f8f9fa !important;
	color: #202122 !important;
	font-size: 88%;
	line-height: 1.5em;
	border-collapse: collapse;
}

.infobox-country .infobox-title {
	text-align: center;
	font-size: 125%;
	font-weight: bold;
	padding: 0.4em;
	background-color: #eaecf0;
	color: inherit;
}

.infobox-country .infobox-subtitle {
	text-align: center;
	font-size: 100%;
	font-weight: normal;
	padding: 0.2em 0.4em;
	background-color: #eaecf0;
	color: inherit;
}

.infobox-country th,
.infobox-country td {
	color: inherit;
}

/* Forced dark mode (Vector 2022) */
@media screen {
	html.skin-theme-clientpref-night .infobox-country {
		background-color: #202122 !important;
		color: #eaecf0 !important;
		border-color: #54595d !important;
	}

	html.skin-theme-clientpref-night .infobox-country .infobox-title,
	html.skin-theme-clientpref-night .infobox-country .infobox-subtitle {
		background-color: #27292d;
	}

	html.skin-theme-clientpref-night .infobox-country th,
	html.skin-theme-clientpref-night .infobox-country td {
		border-top-color: #54595d !important;
	}
}

/* Automatic OS dark mode (Vector 2022) */
@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox-country {
		background-color: #202122 !important;
		color: #eaecf0 !important;
		border-color: #54595d !important;
	}

	html.skin-theme-clientpref-os .infobox-country .infobox-title,
	html.skin-theme-clientpref-os .infobox-country .infobox-subtitle {
		background-color: #27292d;
	}

	html.skin-theme-clientpref-os .infobox-country th,
	html.skin-theme-clientpref-os .infobox-country td {
		border-top-color: #54595d !important;
	}
}