MediaWiki:Common.css

Revision as of 01:57, 1 April 2026 by Pqadmin (talk | contribs) (Add PQ bot loot chest TOC layout (scrollable TOC))
(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.
/* PQ bot: crisp pixel-art sprites (nearest-neighbor scaling) */
img[src*="PQ_tex_"] {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* PQ bot: reading width centered max-width column so floats (e.g. OST) align with prose */
@media screen {
  #firstHeading,
  #mw-content-text {
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  #mw-content-text .mw-parser-output {
    overflow-x: auto;
  }
}

/* PQ bot: loot chest multi-variant pages — keep TOC scrollable so it does not stretch layout */
.mw-parser-output:has(.pq-loot-chest-root) > #toc {
	max-height: min(40vh, 22em);
	max-width: 22em;
	overflow-y: auto;
	overflow-x: hidden;
}

/* Vector 2022 (TOC in sidebar / pinnable panel) */
body:has(.pq-loot-chest-root) .vector-toc {
	max-height: min(75vh, 32em);
	overflow-y: auto;
	overflow-x: hidden;
}