MediaWiki:Common.css: Difference between revisions

From The Reed and Rite
No edit summary
No edit summary
Line 10: Line 10:
.reference .cite-bracket { font-size: 0; }
.reference .cite-bracket { font-size: 0; }


/* Hide the default up arrow in unnamed references and replace it with a caret */
/* Replace the up arrow (↑) in unnamed references with a caret (^) */
.mw-cite-backlink a {
.mw-cite-backlink a {
     font-size: 0; /* Hides the original arrow without removing the element */
     text-decoration: none; /* Ensures the link remains but without underline */
     position: relative;
     position: relative;
}
}


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


/* Change numbered references to lowercase letters while keeping them as links */
/* 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 {
.mw-cite-backlink sup a {
     font-size: 0; /* Hides the original number but keeps the link */
    text-decoration: none; /* Keep link but remove underline */
     font-size: 0; /* Hide the original number */
     position: relative;
     position: relative;
}
}


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

Revision as of 23:41, 11 March 2025

/* 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;
}