MediaWiki:Timeless.css: Difference between revisions

From No Way Out Wiki
No edit summary
No edit summary
Line 43: Line 43:
hr{ border-color:var(--border) !important; }
hr{ border-color:var(--border) !important; }


/* — fix the white gutters (page edges) — */
/* Remove/disable all Timeless backgrounds (color + image) */
html { background:#0f1113 !important; }                /* page background */
body.skin-timeless,
.skin-timeless body,
body.skin-timeless #mw-wrapper,
.skin-timeless #mw-wrapper,
body.skin-timeless #mw-wrapper::before,
.skin-timeless #mw-wrapper::before {                    /* Timeless wrapper + overlay */
body.skin-timeless #mw-header-container,
  background:#0f1113 !important;
body.skin-timeless #mw-site-navigation,
}
body.skin-timeless #mw-related-navigation,
 
body.skin-timeless #mw-footer-container,
/* Disable Timeless decorative background image */
body.skin-timeless .mw-body,
.skin-timeless #mw-wrapper::before {
body.skin-timeless #mw-content,
   background-image: none !important;
body.skin-timeless .mw-body-content {
   content: none !important;           /* some versions draw it via a pseudo-element */
   background: none !important;             /* kills color + image */
}
   background-color: transparent !important; /* belt-and-suspenders */
 
   box-shadow: none !important;             /* Timeless adds subtle shadows */
.skin-timeless #mw-wrapper {
   background-image: none !important;   /* fallback if it’s set on the wrapper itself */
}
}

Revision as of 05:23, 23 September 2025

/* --- Sitewide dark theme for Timeless --- */
:root{
  --bg:#111; --bg2:#181a1b; --panel:#1f2224; --border:#2a2e31;
  --text:#e6e6e6; --muted:#cbd5e1;
  --link:#93c5fd; --visited:#c4b5fd; --new:#f87171;
}

/* Page & content */
html, body{ background:var(--bg) !important; color:var(--text) !important; }
.mw-body, #mw-content, #mw-content-text, .mw-content-text, .mw-body-content{
  background:var(--bg2) !important; color:var(--text) !important;
}

/* Header, sidebars, footer */
#mw-header-container, #mw-site-navigation, #mw-related-navigation, #mw-footer-container{
  background:var(--panel) !important; color:var(--text) !important; border-color:var(--border) !important;
}
#mw-panel, #mw-related, .sidebar-chunk{ background:var(--panel) !important; color:var(--text) !important; }

/* Links */
a, .mw-parser-output a{ color:var(--link) !important; }
a:visited{ color:var(--visited) !important; }
a.new, a.new:visited{ color:var(--new) !important; }

/* Tables, boxes, TOC, infoboxes */
table, .wikitable, th, td, .mw-parser-output .toc, .infobox, .navbox,
.box, .messagebox, .mw-message-box{
  background:var(--panel) !important; color:var(--text) !important; border-color:var(--border) !important;
}

/* Forms & code blocks */
input, textarea, select, .mw-ui-input, .oo-ui-inputWidget-input,
.mw-search-input, pre, code, .mw-code, .mw-highlight{
  background:#0f1316 !important; color:var(--text) !important; border-color:var(--border) !important;
}

/* Buttons */
.mw-ui-button, .oo-ui-buttonElement-button{
  background:#2b3036 !important; color:var(--text) !important; border-color:var(--border) !important;
}

/* Misc */
hr{ border-color:var(--border) !important; }

/* Remove/disable all Timeless backgrounds (color + image) */
body.skin-timeless,
body.skin-timeless #mw-wrapper,
body.skin-timeless #mw-wrapper::before,
body.skin-timeless #mw-header-container,
body.skin-timeless #mw-site-navigation,
body.skin-timeless #mw-related-navigation,
body.skin-timeless #mw-footer-container,
body.skin-timeless .mw-body,
body.skin-timeless #mw-content,
body.skin-timeless .mw-body-content {
  background: none !important;              /* kills color + image */
  background-color: transparent !important; /* belt-and-suspenders */
  box-shadow: none !important;              /* Timeless adds subtle shadows */
}