Template:Letter/styles.css

From Telupedia
Revision as of 17:34, 19 November 2025 by Wikipedia>Jon Harald Søby (prefix the `prefers-color-scheme: dark` values with `html.skin-theme-clientpref-os`, so as not to interfere with light mode when the OS pref is dark mode)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.template-letter-box {
	background-color: #f8f9fa;
	vertical-align:top;
	text-align:center;
	font-weight:normal;
	padding:0.3em;
	min-width: 3em;
}
.template-letter-text {
	font-size:85%;
	line-height:1.4em;
}
.template-letter-nowrap {
	white-space: nowrap;
}
.template-letter-char {
	color: #8B0000;
	white-space:nowrap;
}
.template-letter-char span:nth-of-type(even) {
  margin-left: 0.4em; padding-left: 0.4em; border-left: 1px dotted #666;
}
.letters-left .template-letter-char {
	padding-left: 1em;
}
.letters-right .template-letter-char {
	padding-right: 1em;
}
.letters-wide .template-letter-char {
	padding-right: 0.8em;
	padding-left: 0.8em;
}
.letters-hi .template-letter-char {
	padding-top: 1em;
}
.letters-lo .template-letter-char {
	padding-bottom: 1em;
}
.letters-nadir .template-letter-char {
	padding-bottom: 1.8em;
}
.letters-tall .template-letter-char {
	padding-top: 1em;
	padding-bottom: 1em;
}
.letters-table {
	background-color: #edF3F3;
}
.letters-table .template-letter-box {
	background-color: #f8f9fa;
}
.letters-table th:not(.template-letter-box) {
	background-color: #F2FBFB;
}
.letters-teal .template-letter-char {
	color: #007a7c;
}
.letters-black .template-letter-char {
	color: #111;
}
.letters-blue .template-letter-char {
	color: #0000A0;
}
.letters-green .template-letter-char {
	color: #006000;
}
.letters-violet .template-letter-char {
	color: #800080;
}
.letters-pink .template-letter-char {
	color: #DB0A5B;
}
.letters-orange .template-letter-char {
	color: #D43900;
}
.letters-gold .template-letter-char {
	color: #AA5D00;
}
/* Dark mode */
html.skin-theme-clientpref-night .template-letter-char {
	background-color: var(--background-color-interactive-subtle,#202122);
	color: #F36060;
}
html.skin-theme-clientpref-night .letters-table th:not(.template-letter-box) {
	background-color: #000;
}
html.skin-theme-clientpref-night .letters-table,
html.skin-theme-clientpref-night .letters-table .template-letter-box,
html.skin-theme-clientpref-night .template-letter-box {
	background-color: var(--background-color-interactive-subtle,#202122);
}
html.skin-theme-clientpref-night .template-letter-char {
	color: #F55592;
}
html.skin-theme-clientpref-night .letters-black .template-letter-char {
    color: #ccc;
}
html.skin-theme-clientpref-night .letters-teal .template-letter-char {
	color: #10ACB0;
}
html.skin-theme-clientpref-night .letters-blue .template-letter-char {
	color: #008DEE;
}
html.skin-theme-clientpref-night .letters-green .template-letter-char {
	color: #23AE23;
}
html.skin-theme-clientpref-night .letters-violet .template-letter-char {
	color: #A375E8;
}
html.skin-theme-clientpref-night .letters-pink .template-letter-char {
	color: #F55592;
}
html.skin-theme-clientpref-night .letters-orange .template-letter-char {
	color: #EE7347;
}
html.skin-theme-clientpref-night .letters-gold .template-letter-char {
	color: #DE8317;
}
@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .template-letter-char {
		background-color: var(--background-color-interactive-subtle,#202122);
		color: #F36060;
	}
	html.skin-theme-clientpref-os .letters-table th:not(.template-letter-box) {
		background-color: #000;
	}
	html.skin-theme-clientpref-os .letters-table,
	html.skin-theme-clientpref-os .letters-table .template-letter-box,
	html.skin-theme-clientpref-os .template-letter-box {
		background-color: var(--background-color-interactive-subtle,#202122);
	}
	html.skin-theme-clientpref-os .template-letter-char {
		color: #F55592;
	}
	html.skin-theme-clientpref-os .letters-black .template-letter-char {
	    color: #ccc;
	}
	html.skin-theme-clientpref-os .letters-teal .template-letter-char {
		color: #10ACB0;
	}
	html.skin-theme-clientpref-os .letters-blue .template-letter-char {
		color: #008DEE;
	}
	html.skin-theme-clientpref-os .letters-green .template-letter-char {
		color: #23AE23;
	}
	html.skin-theme-clientpref-os .letters-violet .template-letter-char {
		color: #A375E8;
	}
	html.skin-theme-clientpref-os .letters-pink .template-letter-char {
		color: #F55592;
	}
	html.skin-theme-clientpref-os .letters-orange .template-letter-char {
		color: #EE7347;
	}
	html.skin-theme-clientpref-os .letters-gold .template-letter-char {
		color: #DE8317;
	}
}