MediaWiki:Common.css: Difference between revisions

From Descendants of Darkness Wiki

No edit summary
No edit summary
Line 20: Line 20:
}
}


/* ==== DarkMode extension custom theme (Medik) ==== */
/* ============================================================
  DARK MODE — DESCENDANTS OF DARKNESS (MEDIK)
  Completely disables inversion, applies real dark theme
  ============================================================ */


/* 1. Kill the default invert DarkMode applies and set base colours */
/* Base: kill the extension’s invert filter */
html.client-darkmode {
html.client-darkmode,
html.client-darkmode body {
     filter: none !important;
     filter: none !important;
     -webkit-filter: none !important;
     -webkit-filter: none !important;
     background: #050509 !important;
     background: #050509 !important;
     color: #ddd !important;
     color: #dddddd !important;
}
}


html.client-darkmode body {
/* -----------------------------
    background: #050509 !important;
  MAIN CONTENT AREA
    color: #ddd !important;
  ----------------------------- */
}
 
/* 2. Main article / content area */
html.client-darkmode .mw-body,
html.client-darkmode .mw-body,
html.client-darkmode .mw-content-container,
html.client-darkmode .mw-content-container,
Line 42: Line 43:
html.client-darkmode #content {
html.client-darkmode #content {
     background: #0b0b12 !important;
     background: #0b0b12 !important;
     color: #ddd !important;
     color: #dddddd !important;
}
}


/* 3. Top bar / navbar */
/* Headings inside pages */
html.client-darkmode .navbar,
html.client-darkmode h1,
html.client-darkmode .navbar-default,
html.client-darkmode h2,
html.client-darkmode #mw-head,
html.client-darkmode h3,
html.client-darkmode #mw-page-base {
html.client-darkmode h4,
     background: #000000 !important;
html.client-darkmode h5 {
    border-bottom: 1px solid #222 !important;
     color: #e1e1e1 !important;
    box-shadow: none !important;
}
}


/* 4. Links */
/* -----------------------------
  LINKS (CONTENT)
  ----------------------------- */
html.client-darkmode a,
html.client-darkmode a,
html.client-darkmode a:visited {
html.client-darkmode a:visited {
Line 65: Line 67:
}
}


/* 5. Tables / boxes */
/* -----------------------------
  TABLES, INFOBOXES, TOC
  ----------------------------- */
html.client-darkmode table,
html.client-darkmode table,
html.client-darkmode .infobox,
html.client-darkmode .infobox,
html.client-darkmode .toc,
html.client-darkmode .toc,
html.client-darkmode .navbox,
html.client-darkmode .navbox,
html.client-darkmode .mw-parser-output .wikitable {
html.client-darkmode .wikitable {
     background: #101018 !important;
     background: #101018 !important;
     border-color: #2a2a3a !important;
     border-color: #2a2a3a !important;
     color: #ddd !important;
     color: #dddddd !important;
}
 
/* -----------------------------
  TOP BAR / NAVBAR
  ----------------------------- */
html.client-darkmode .navbar,
html.client-darkmode .navbar-default,
html.client-darkmode #mw-head {
    background: #000000 !important;
    border-bottom: 1px solid #222 !important;
}
 
/* Top-left wiki title (stop it being red) */
html.client-darkmode .navbar-brand,
html.client-darkmode .navbar-brand a {
    color: #f0f0f0 !important;
    text-shadow: none !important;
}
 
/* -----------------------------
  LEFT SIDEBAR (REMOVE WHITE)
  ----------------------------- */
html.client-darkmode #mw-panel,
html.client-darkmode #mw-panel .portal,
html.client-darkmode #mw-panel .body,
html.client-darkmode .sidebar {
    background: #050509 !important;
    color: #dddddd !important;
}
 
html.client-darkmode #mw-panel a {
    color: #dddddd !important;
}
 
html.client-darkmode #mw-panel a:hover {
    color: #ff5b5b !important;
}
 
/* Sidebar section headings */
html.client-darkmode #mw-panel .portal h3 {
    color: #d64040 !important;
}
}


/* 6. Make sure logo is NOT inverted */
/* -----------------------------
  LOGO FIX — NEVER INVERT
  ----------------------------- */
html.client-darkmode .mw-wiki-logo,
html.client-darkmode .mw-wiki-logo,
html.client-darkmode #p-logo a,
html.client-darkmode #p-logo a,

Revision as of 06:40, 14 November 2025

/* Descendants of Darkness – bigger logo in left nav    */
.mw-wiki-navigation-logo {
    width: 250px !important;      /* overall logo area width */
    height: 250px !important;      /* overall logo area height */
}

.mw-wiki-navigation-logo .mw-wiki-logo,
a.mw-wiki-logo {
    display: block !important;
    width: 100% !important;       /* fill the container width */
    height: 100% !important;      /* fill the container height */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
}

/* If the menu looks squashed vertically, give the whole nav a bit more height */
#site-navigation {
    min-height: 90px !important;
}

/* ============================================================
   DARK MODE — DESCENDANTS OF DARKNESS (MEDIK)
   Completely disables inversion, applies real dark theme
   ============================================================ */

/* Base: kill the extension’s invert filter */
html.client-darkmode,
html.client-darkmode body {
    filter: none !important;
    -webkit-filter: none !important;
    background: #050509 !important;
    color: #dddddd !important;
}

/* -----------------------------
   MAIN CONTENT AREA
   ----------------------------- */
html.client-darkmode .mw-body,
html.client-darkmode .mw-content-container,
html.client-darkmode .mw-parser-output,
html.client-darkmode .content,
html.client-darkmode #content {
    background: #0b0b12 !important;
    color: #dddddd !important;
}

/* Headings inside pages */
html.client-darkmode h1,
html.client-darkmode h2,
html.client-darkmode h3,
html.client-darkmode h4,
html.client-darkmode h5 {
    color: #e1e1e1 !important;
}

/* -----------------------------
   LINKS (CONTENT)
   ----------------------------- */
html.client-darkmode a,
html.client-darkmode a:visited {
    color: #d64040 !important;
}

html.client-darkmode a:hover {
    color: #ff5b5b !important;
}

/* -----------------------------
   TABLES, INFOBOXES, TOC
   ----------------------------- */
html.client-darkmode table,
html.client-darkmode .infobox,
html.client-darkmode .toc,
html.client-darkmode .navbox,
html.client-darkmode .wikitable {
    background: #101018 !important;
    border-color: #2a2a3a !important;
    color: #dddddd !important;
}

/* -----------------------------
   TOP BAR / NAVBAR
   ----------------------------- */
html.client-darkmode .navbar,
html.client-darkmode .navbar-default,
html.client-darkmode #mw-head {
    background: #000000 !important;
    border-bottom: 1px solid #222 !important;
}

/* Top-left wiki title (stop it being red) */
html.client-darkmode .navbar-brand,
html.client-darkmode .navbar-brand a {
    color: #f0f0f0 !important;
    text-shadow: none !important;
}

/* -----------------------------
   LEFT SIDEBAR (REMOVE WHITE)
   ----------------------------- */
html.client-darkmode #mw-panel,
html.client-darkmode #mw-panel .portal,
html.client-darkmode #mw-panel .body,
html.client-darkmode .sidebar {
    background: #050509 !important;
    color: #dddddd !important;
}

html.client-darkmode #mw-panel a {
    color: #dddddd !important;
}

html.client-darkmode #mw-panel a:hover {
    color: #ff5b5b !important;
}

/* Sidebar section headings */
html.client-darkmode #mw-panel .portal h3 {
    color: #d64040 !important;
}

/* -----------------------------
   LOGO FIX — NEVER INVERT
   ----------------------------- */
html.client-darkmode .mw-wiki-logo,
html.client-darkmode #p-logo a,
html.client-darkmode .mw-logo-icon,
html.client-darkmode .mw-logo-icon img,
html.client-darkmode .mw-logo-container img,
html.client-darkmode .mw-wiki-logo img {
    filter: none !important;
    -webkit-filter: none !important;
    background-color: transparent !important;
}