MediaWiki:Common.css

From The Reed and Rite
Revision as of 23:41, 11 March 2025 by TheRoman (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.
/* Justify all text in content area */
#mw-content-text {
    text-align: justify;
}

body {
    background-color: white !important;
}

.reference .cite-bracket { font-size: 0; }

/* Replace the up arrow (↑) in unnamed references with a caret (^) */
.mw-cite-backlink a {
    text-decoration: none; /* Ensures the link remains but without underline */
    position: relative;
}

.mw-cite-backlink a::before {
    content: "^"; /* Replaces arrow with caret */
    font-size: 90%;
    font-weight: bold;
}

/* Convert numbered reference backlinks to lowercase letters (a, b, c, etc.), keeping them as links */
.mw-cite-backlink sup {
    counter-increment: mw-ref-linkback; /* Ensures correct sequencing */
}

.mw-cite-backlink sup a {
    text-decoration: none; /* Keep link but remove underline */
    font-size: 0; /* Hide the original number */
    position: relative;
}

.mw-cite-backlink sup a::after {
    content: counter(mw-ref-linkback, lower-alpha); /* Converts numbers to letters */
    font-size: 100%;
    font-style: italic;
    font-weight: bold;
    visibility: visible;
}