MediaWiki:Common.css

Revision as of 23:39, 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; }

/* Hide the default up arrow in unnamed references and replace it with a caret */
.mw-cite-backlink a {
    font-size: 0; /* Hides the original arrow without removing the element */
    position: relative;
}

.mw-cite-backlink a::after {
    content: " ^"; /* Adds caret */
    font-size: 90%; /* Adjusts size */
    font-weight: bold;
    visibility: visible; /* Ensures caret is shown */
}

/* Change numbered references to lowercase letters while keeping them as links */
.mw-cite-backlink sup a {
    font-size: 0; /* Hides the original number but keeps the link */
    position: relative;
}

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