Module:Infobox/styles.css: Difference between revisions

.... and of course color-base is needed.
Use div so this doesn't apply to
Line 44: Line 44:


/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
html.skin-theme-clientpref-night .infobox-full-data * {
html.skin-theme-clientpref-night .infobox-full-data div {
     background: #1f1f23 !important;
     background: #1f1f23 !important;
       /* switch with var( --color-base ) when supported. */
       /* switch with var( --color-base ) when supported. */
Line 51: Line 51:


@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
     html.skin-theme-clientpref-os .infobox-full-data * {
     html.skin-theme-clientpref-os .infobox-full-data div {
       background: #1f1f23 !important;
       background: #1f1f23 !important;
       /* switch with var( --color-base ) when supported. */
       /* switch with var( --color-base ) when supported. */