Template:License/styles.css
Appearance
.mw-license-box {
display: inline-table;
border: 1px solid #aaa;
font-size: 88%;
margin: 0.2em 0;
clear: right;
float: right;
}
.mw-license-box td {
vertical-align: middle;
padding: 3px 6px;
}
.mw-license-badge {
font-weight: bold;
font-size: 115%;
text-align: center;
min-width: 52px;
border-right: 1px solid #aaa;
white-space: nowrap;
}
.mw-license-desc {
max-width: 220px;
}
.mw-license-desc a { font-weight: bold; }
/* Light mode badge colours */
.mw-license-cc-by .mw-license-badge { background: #b3e0b3; }
.mw-license-cc-by-sa .mw-license-badge { background: #99d699; }
.mw-license-cc-by-nc .mw-license-badge { background: #fde68a; }
.mw-license-cc-by-nc-sa .mw-license-badge { background: #fcd34d; }
.mw-license-cc-by-nd .mw-license-badge { background: #a5d8f3; }
.mw-license-cc-by-nc-nd .mw-license-badge { background: #f3a5d8; }
.mw-license-cc0 .mw-license-badge { background: #c4b5fd; }
.mw-license-arr .mw-license-badge { background: #e8e8e8; }
/* ── Dark mode ────────────────────────────────────────────────────────────── */
/* Covers: manual "Night" toggle and OS-level dark preference */
.skin-theme-clientpref-night .mw-license-box,
.skin-theme-clientpref-os .mw-license-box {
border-color: #555;
color: #e8e8e8;
}
.skin-theme-clientpref-night .mw-license-badge,
.skin-theme-clientpref-os .mw-license-badge {
border-right-color: #555;
}
.skin-theme-clientpref-night .mw-license-cc-by .mw-license-badge,
.skin-theme-clientpref-os .mw-license-cc-by .mw-license-badge { background: #1a4d1a; color: #c8f0c8; }
.skin-theme-clientpref-night .mw-license-cc-by-sa .mw-license-badge,
.skin-theme-clientpref-os .mw-license-cc-by-sa .mw-license-badge { background: #144014; color: #a8e0a8; }
.skin-theme-clientpref-night .mw-license-cc-by-nc .mw-license-badge,
.skin-theme-clientpref-os .mw-license-cc-by-nc .mw-license-badge { background: #4d3d00; color: #ffe99a; }
.skin-theme-clientpref-night .mw-license-cc-by-nc-sa .mw-license-badge,
.skin-theme-clientpref-os .mw-license-cc-by-nc-sa .mw-license-badge { background: #4d3200; color: #ffd97a; }
.skin-theme-clientpref-night .mw-license-cc-by-nd .mw-license-badge,
.skin-theme-clientpref-os .mw-license-cc-by-nd .mw-license-badge { background: #0d3a52; color: #a8d8f0; }
.skin-theme-clientpref-night .mw-license-cc-by-nc-nd .mw-license-badge,
.skin-theme-clientpref-os .mw-license-cc-by-nc-nd .mw-license-badge { background: #52112e; color: #f0a8cc; }
.skin-theme-clientpref-night .mw-license-cc0 .mw-license-badge,
.skin-theme-clientpref-os .mw-license-cc0 .mw-license-badge { background: #2d1a5e; color: #d4bbff; }
.skin-theme-clientpref-night .mw-license-arr .mw-license-badge,
.skin-theme-clientpref-os .mw-license-arr .mw-license-badge { background: #333; color: #ccc; }
/* OS preference: only apply dark colours when the OS is actually dark */
@media (prefers-color-scheme: light) {
.skin-theme-clientpref-os .mw-license-box { border-color: #aaa; color: inherit; }
.skin-theme-clientpref-os .mw-license-badge { border-right-color: #aaa; }
.skin-theme-clientpref-os .mw-license-cc-by .mw-license-badge { background: #b3e0b3; color: inherit; }
.skin-theme-clientpref-os .mw-license-cc-by-sa .mw-license-badge { background: #99d699; color: inherit; }
.skin-theme-clientpref-os .mw-license-cc-by-nc .mw-license-badge { background: #fde68a; color: inherit; }
.skin-theme-clientpref-os .mw-license-cc-by-nc-sa .mw-license-badge { background: #fcd34d; color: inherit; }
.skin-theme-clientpref-os .mw-license-cc-by-nd .mw-license-badge { background: #a5d8f3; color: inherit; }
.skin-theme-clientpref-os .mw-license-cc-by-nc-nd .mw-license-badge { background: #f3a5d8; color: inherit; }
.skin-theme-clientpref-os .mw-license-cc0 .mw-license-badge { background: #c4b5fd; color: inherit; }
.skin-theme-clientpref-os .mw-license-arr .mw-license-badge { background: #e8e8e8; color: inherit; }
}