Module:Infobox/styles.css: Difference between revisions

Use div so this doesn't apply to
Restrict to elements not tagged notheme to allow templates to override
Line 44: Line 44:


/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
html.skin-theme-clientpref-night .infobox-full-data div {
html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) div:not(.notheme) {
     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 div {
     html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) div:not(.notheme) {
       background: #1f1f23 !important;
       background: #1f1f23 !important;
       /* switch with var( --color-base ) when supported. */
       /* switch with var( --color-base ) when supported. */