Jump to content

MediaWiki:Common.css

From LumiWiki
Revision as of 22:31, 13 November 2026 by Guinevere (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.
/*
 * LumiWiki - Global Stylesheet
 * MediaWiki 1.46 / Vector 2022
 *
 * Site-wide enhancements that respect the
 * user's selected light or dark appearance.
 *
 * Component-specific styles are maintained
 * separately through TemplateStyles.
 */

/* ==========================================
   1. GLOBAL TYPOGRAPHY
   ========================================== */

.mw-parser-output {
    line-height: 1.65;
}

.mw-parser-output p {
    margin-bottom: 1em;
}

.mw-parser-output h2 {
    margin-top: 1.6em;
}

.mw-parser-output h3 {
    margin-top: 1.3em;
}

/* ==========================================
   2. LINKS
   ========================================== */

/* Use native MediaWiki theme colors.
   Do not override global link colors here. */

.mw-parser-output a {
    text-underline-offset: 2px;
}

/* ==========================================
   3. IMAGES
   ========================================== */

.mw-parser-output img {
    max-width: 100%;
}

/* ==========================================
   4. TABLES
   ========================================== */

.mw-parser-output .wikitable {
    border-collapse: collapse;
    margin: 1em 0;
}

.mw-parser-output .wikitable th,
.mw-parser-output .wikitable td {
    padding: 10px 14px;
}

/* ==========================================
   5. DOCUMENTATION LISTS
   ========================================== */

.mw-parser-output ul,
.mw-parser-output ol {
    line-height: 1.7;
}

.mw-parser-output li {
    margin-bottom: 0.3em;
}

/* ==========================================
   6. RESPONSIVE CONTENT
   ========================================== */

@media screen and (max-width: 600px) {

    .mw-parser-output {
        line-height: 1.55;
    }

    .mw-parser-output .wikitable {
        font-size: 0.9em;
    }

    .mw-parser-output .wikitable th,
    .mw-parser-output .wikitable td {
        padding: 8px;
    }
}