Jump to content

MediaWiki:Common.css/dark: Difference between revisions

From BadWolfMC Wiki
Merc changed the content model of the page MediaWiki:Common.css/dark from "wikitext" to "CSS"
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* ===== Dark‐mode overrides for all infoboxes ===== */
/* ===== Infobox dark-mode overrides ===== */


.mediawiki-ui-color-scheme-dark table.infobox,
/* In “night” mode (Vector > Appearance > Dark), flip the infobox background */
.mediawiki-ui-color-scheme-dark table.infobox-subbox {
html.skin-theme-clientpref-night table.infobox,
html.skin-theme-clientpref-night table.infobox-subbox {
   background-color: var(--surface-secondary) !important;
   background-color: var(--surface-secondary) !important;
}
}


/* Dark-mode theme for all Infobox modules */
/* In dark mode, invert all text and borders inside infoboxes */
.mediawiki-ui-color-scheme-dark .infobox-title,
html.skin-theme-clientpref-night table.infobox,
.mediawiki-ui-color-scheme-dark .infobox-image,
html.skin-theme-clientpref-night table.infobox th,
.mediawiki-ui-color-scheme-dark .infobox-caption,
html.skin-theme-clientpref-night table.infobox td {
.mediawiki-ui-color-scheme-dark .infobox-header,
   color: var(--text-primary) !important;
.mediawiki-ui-color-scheme-dark .infobox-label,
   border-color: var(--border-color-base) !important;
.mediawiki-ui-color-scheme-dark .infobox-data,
.mediawiki-ui-color-scheme-dark .infobox-full-data,
.mediawiki-ui-color-scheme-dark .infobox-below,
.mediawiki-ui-color-scheme-dark .infobox-navbar {
   background-color: var(--surface-secondary) !important;
   color:           var(--text-primary)     !important;
}
}


/* Ensure the infobox title and header keep your brand color */
html.skin-theme-clientpref-night table.infobox caption.infobox-title,
html.skin-theme-clientpref-night table.infobox .infobox-header {
  background-color: #003B6F !important;
  color:            #ffffff !important;
}


/* Serverbuild infobox: dark mode */
/* If you have a specialized “serverbuild” variant: */
.mediawiki-ui-color-scheme-dark table.infobox.serverbuild {
html.skin-theme-clientpref-night table.infobox.serverbuild {
   background-color: var(--surface-secondary) !important;
   background-color: var(--surface-secondary) !important;
}
}
.mediawiki-ui-color-scheme-dark table.infobox.serverbuild .infobox-header,
html.skin-theme-clientpref-night table.infobox.serverbuild .infobox-header,
.mediawiki-ui-color-scheme-dark table.infobox.serverbuild .infobox-data,
html.skin-theme-clientpref-night table.infobox.serverbuild .infobox-label {
.mediawiki-ui-color-scheme-dark table.infobox.serverbuild .infobox-label {
  background-color: #003B6F !important;
  background-color: var(--surface-secondary) !important;
  color:            #ffffff !important;
   color:            var(--text-primary)     !important;
}
 
@media screen {
  /* catch Vector’s “night” theme */
  html.skin-theme-clientpref-night table.infobox,
  html.skin-theme-clientpref-os table.infobox {
    background-color: var(--surface-secondary) !important;
   }
  /* carry your deep-blue header through dark mode */
  html.skin-theme-clientpref-night table.infobox .infobox-header,
  html.skin-theme-clientpref-os      table.infobox .infobox-header {
    background-color: #003B6F !important;
    color:            #ffffff  !important;
  }
  /* brighten the title at the top */
  html.skin-theme-clientpref-night table.infobox caption.infobox-title,
  html.skin-theme-clientpref-os     table.infobox caption.infobox-title {
    color: #f8f9fa !important;
  }
}
}
/* End of dark overrides */

Latest revision as of 01:15, 6 May 2025

/* ===== Dark‐mode overrides for all infoboxes ===== */

/* In “night” mode (Vector > Appearance > Dark), flip the infobox background */
html.skin-theme-clientpref-night table.infobox,
html.skin-theme-clientpref-night table.infobox-subbox {
  background-color: var(--surface-secondary) !important;
}

/* In dark mode, invert all text and borders inside infoboxes */
html.skin-theme-clientpref-night table.infobox,
html.skin-theme-clientpref-night table.infobox th,
html.skin-theme-clientpref-night table.infobox td {
  color: var(--text-primary) !important;
  border-color: var(--border-color-base) !important;
}

/* Ensure the infobox title and header keep your brand color */
html.skin-theme-clientpref-night table.infobox caption.infobox-title,
html.skin-theme-clientpref-night table.infobox .infobox-header {
  background-color: #003B6F !important;
  color:            #ffffff !important;
}

/* If you have a specialized “serverbuild” variant: */
html.skin-theme-clientpref-night table.infobox.serverbuild {
  background-color: var(--surface-secondary) !important;
}
html.skin-theme-clientpref-night table.infobox.serverbuild .infobox-header,
html.skin-theme-clientpref-night table.infobox.serverbuild .infobox-label {
  background-color: #003B6F !important;
  color:            #ffffff !important;
}

@media screen {
  /* catch Vector’s “night” theme */
  html.skin-theme-clientpref-night table.infobox,
  html.skin-theme-clientpref-os table.infobox {
    background-color: var(--surface-secondary) !important;
  }
  /* carry your deep-blue header through dark mode */
  html.skin-theme-clientpref-night table.infobox .infobox-header,
  html.skin-theme-clientpref-os      table.infobox .infobox-header {
    background-color: #003B6F !important;
    color:            #ffffff  !important;
  }
  /* brighten the title at the top */
  html.skin-theme-clientpref-night table.infobox caption.infobox-title,
  html.skin-theme-clientpref-os      table.infobox caption.infobox-title {
    color: #f8f9fa !important;
  }
}

/* End of dark overrides */