MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* base navbox look */
.navbox.dxx-navbox {
border: 1px solid #666;
margin: 1em 0;
border-collapse: collapse;
width: 100%;
font-size: 90%;
}
/* LIGHT MODE (default) */
.dxx-navbox,
.dxx-navbox-title,
.dxx-navbox-header,
.dxx-navbox-group,
.dxx-navbox-list {
background: #f8f8f8;
color: #202020;
}
.dxx-navbox-title {
background: #e2e2e2;
font-weight: bold;
text-align: center;
}
.dxx-navbox-header {
background: #e9f2f9;
font-weight: bold;
text-align: center;
}
.dxx-navbox-group {
background: #eef5fb;
font-weight: bold;
text-align: right;
padding: 0.3em;
vertical-align: top;
width: 18%;
}
.dxx-navbox-list {
padding: 0.3em;
text-align: center;
}
/* DARK MODE OVERRIDES */
/* Adjust the selector to whatever your skin uses for dark mode.
Vector 2022 with built-in dark uses body.skin-theme-clientpref-night,
others might use .skin-vector-dark, .theme-dark, etc. */
.skin-theme-clientpref-night .dxx-navbox,
.skin-theme-clientpref-night .dxx-navbox-title,
.skin-theme-clientpref-night .dxx-navbox-header,
.skin-theme-clientpref-night .dxx-navbox-group,
.skin-theme-clientpref-night .dxx-navbox-list {
background: #111;
color: #eee;
}
.skin-theme-clientpref-night .dxx-navbox-title {
background: #222;
}
.skin-theme-clientpref-night .dxx-navbox-header {
background: #191919;
}
.skin-theme-clientpref-night .dxx-navbox-group {
background: #181818;
}
/* Make navbox lists inline with dot separators */
.navbox.dxx-navbox .dxx-navbox-list ul {
margin: 0;
padding: 0;
list-style: none;
}
.navbox.dxx-navbox .dxx-navbox-list li {
display: inline;
margin-right: 0.35em;
}
.navbox.dxx-navbox .dxx-navbox-list li + li::before {
content: " • ";
margin-right: 0.35em;
}
/* 🔹 Hide any header/group/list cells that are completely empty
(i.e. when headerN/groupN/listN were not set in the template). */
.dxx-navbox-header:empty,
.dxx-navbox-group:empty,
.dxx-navbox-list:empty {
display: none;
padding: 0;
border: 0;
}