MediaWiki:Common.css

From The Radical Buddhism Project
Revision as of 01:11, 27 October 2026 by Lajos (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.
/* Make the Cite extension list of references look smaller */
ol.references {
    font-size: 90%;
}

/* Mobile view: Ensure single column across all native wrapper elements */
.mw-references-wrap,
.mw-references-columns,
ol.references,
.references {
    column-count: 1 !important;
    column-width: auto !important;
}

/* Tablet & Desktop view: Prevent nested columns, lock layout to exactly 2 columns */
@media screen and (min-width: 768px) {
    /* 1. Turn off columns entirely on the parent outer container */
    .mw-references-wrap,
    .mw-references-columns {
        column-count: 1 !important;
        column-width: auto !important;
    }
    
    /* 2. Force exactly 2 columns strictly on the actual list layer */
    ol.references,
    .references {
        column-count: 2 !important;
        column-width: auto !important;
        column-gap: 2em;
    }
}