MediaWiki:Common.css

From Evidence Driven Dev
Revision as of 08:38, 7 January 2026 by EruIluvatar (talk | contribs)
Jump to navigation Jump to search

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.
/* 1. Force the Sidebar to the far left and lock width */
#mw-panel {
    position: absolute !important;
    left: 0 !important;
    width: 120px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

/* 2. Lock the content gap so it doesn't expand on Special Pages */
body.skin-vector-legacy #content,
body.skin-vector-legacy #mw-head-base,
body.skin-vector-legacy #mw-page-base,
body.skin-vector-legacy #footer {
    margin-left: 120px !important;
}

/* 3. Align the Logo to the left of the new 120px space */
#p-logo {
    width: 120px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mw-wiki-logo {
    width: 100px !important;
    height: 100px !important;
    margin-left: 10px !important; /* Margin from the screen edge */
    background-size: contain !important;
    background-position: left center !important;
}

/* 4. Fix Link alignment inside the sidebar */
#mw-panel .portal {
    margin: 0 !important;
    padding: 0 0 0 10px !important; /* Indent links slightly from edge */
}

#mw-panel .portal .body {
    margin: 0 !important;
}