Jump to content

MediaWiki:Common.css

From Xiangqipedia
Revision as of 15:03, 30 September 2026 by WikiAdmin (talk | contribs) (Elbow horse: lead placement diagram as a small right-hand sidebox)
(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.
/* On the Elbow horse page the opening placement diagram sits as a small
   right-hand box beside the lead paragraph instead of a full-width block.
   The canonical copy of this rule ships in config/SiteSettings.php; the
   MediaWiki:Common.css page applies it to a running wiki before the next
   deployment rebuilds the image. */
body.page-Elbow_horse .mw-parser-output > .xqp-player:first-child,
body.page-Elbow_horse .mw-parser-output > .xqp-player:first-of-type {
    float: right;
    max-width: 22rem;
    margin: 0 0 1.25rem 1.5rem;
}

body.page-Elbow_horse .mw-parser-output > .xqp-player:first-child .xqp-caption,
body.page-Elbow_horse .mw-parser-output > .xqp-player:first-of-type .xqp-caption {
    font-weight: normal;
    font-size: 0.9em;
    line-height: 1.45;
}

@media ( max-width: 719px ) {
    body.page-Elbow_horse .mw-parser-output > .xqp-player:first-child,
    body.page-Elbow_horse .mw-parser-output > .xqp-player:first-of-type {
        float: none;
        max-width: none;
        margin: 1.5rem auto;
    }
}