Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css

MediaWiki interface page
Revision as of 11:05, 1 October 2025 by Wikiadmin (talk | contribs) (Created page with "→All CSS here will be loaded for users of the Citizen skin: →=== Move Table of Contents to the left in Citizen skin ===: .citizen-body { display: flex; flex-direction: row; } →Table of contents on the left: .citizen-toc { order: -1; →move before content: float: none !important; →reset float: width: 20%; →adjust TOC width: margin: 0 2em 0 0; →space between TOC and content: } /* Ma...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 Citizen skin */

/* === Move Table of Contents to the left in Citizen skin === */
.citizen-body {
    display: flex;
    flex-direction: row;
}

/* Table of contents on the left */
.citizen-toc {
    order: -1;                /* move before content */
    float: none !important;   /* reset float */
    width: 20%;               /* adjust TOC width */
    margin: 0 2em 0 0;        /* space between TOC and content */
}

/* Main content area */
.citizen-body-content {
    flex: 1;
    max-width: 78%;           /* keep balance with TOC */
}