Template:Infobox styles.css: Difference between revisions
Add document infobox styles with dark mode support (via update-page on MediaWiki MCP Server) |
Add wikitable dark mode styles for tables inside document infobox (via update-page on MediaWiki MCP Server) |
||
| Line 206: | Line 206: | ||
color: #cdd6f4 !important; | color: #cdd6f4 !important; | ||
border-color: #585b70; | border-color: #585b70; | ||
} | |||
/* Wikitable dark mode (for tables inside document infobox) */ | |||
html.skin-theme-clientpref-night .document-infobox .wikitable { | |||
background-color: #1e1e2e; | |||
color: #cdd6f4; | |||
border-color: #45475a; | |||
} | |||
html.skin-theme-clientpref-night .document-infobox .wikitable th { | |||
background-color: #45475a; | |||
color: #cdd6f4; | |||
border-color: #585b70; | |||
} | |||
html.skin-theme-clientpref-night .document-infobox .wikitable td { | |||
background-color: #313244; | |||
color: #cdd6f4; | |||
border-color: #45475a; | |||
} | |||
html.skin-theme-clientpref-night .document-infobox .wikitable tr.row-odd td { | |||
background-color: #2a2a3c; | |||
} | |||
html.skin-theme-clientpref-night .document-infobox .wikitable a { | |||
color: #89b4fa; | |||
} | } | ||
| Line 297: | Line 324: | ||
color: #cdd6f4 !important; | color: #cdd6f4 !important; | ||
border-color: #585b70; | border-color: #585b70; | ||
} | |||
/* Wikitable OS dark mode */ | |||
html.skin-theme-clientpref-os .document-infobox .wikitable { | |||
background-color: #1e1e2e; | |||
color: #cdd6f4; | |||
border-color: #45475a; | |||
} | |||
html.skin-theme-clientpref-os .document-infobox .wikitable th { | |||
background-color: #45475a; | |||
color: #cdd6f4; | |||
border-color: #585b70; | |||
} | |||
html.skin-theme-clientpref-os .document-infobox .wikitable td { | |||
background-color: #313244; | |||
color: #cdd6f4; | |||
border-color: #45475a; | |||
} | |||
html.skin-theme-clientpref-os .document-infobox .wikitable tr.row-odd td { | |||
background-color: #2a2a3c; | |||
} | |||
html.skin-theme-clientpref-os .document-infobox .wikitable a { | |||
color: #89b4fa; | |||
} | } | ||
} | } | ||