MediaWiki:Timeless.css

Revision as of 19:06, 24 January 2026 by Steve (talk | contribs)

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.
/* All CSS here will be loaded for users of the Timeless skin */
/* =========================================================
   FIX 1: Remove Timeless default top gap under header (desktop)
   ========================================================= */

body.skin-timeless #mw-content-container{
  margin-top: 0 !important;     /* kill Timeless gap */
  padding-top: 1rem !important; /* keep your breathing space */
}

/* Timeless sets this inside a media query; override that too */
@media screen and (min-width: 851px){
  body.skin-timeless #mw-content-container{
    margin-top: 0 !important;
    padding-top: 1rem !important;
  }
}

/* =========================================================
   FIX 2: Remove the Timeless grey/black “bar” blocks we no longer need
   (we draw our own header bars using ::before/::after)
   ========================================================= */

body.skin-timeless #mw-header-hack,
body.skin-timeless #mw-header-nav-hack{
  display: none !important;
}

/* If anything else still paints a strip, force it transparent */
body.skin-timeless .color-bar,
body.skin-timeless .color-middle,
body.skin-timeless .color-left,
body.skin-timeless .color-right{
  background: transparent !important;
}