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 arrow */
/* Hide the default arrow in unnamed references and replace it with a caret */
.mw-cite-backlink a {
.mw-cite-backlink a {
     visibility: hidden;
     visibility: hidden; /* Hide the arrow */
}
}


/* Display only the caret (^) symbol instead of the arrow */
.mw-cite-backlink a::after {
.mw-cite-backlink a::after {
     content: "^"; /* Caret symbol */
     content: "^"; /* Add caret */
    visibility: visible; /* Make caret visible */
     font-size: 90%; /* Adjust size if needed */
     font-size: 90%; /* Adjust size if needed */
    visibility: visible;
}
}


/* Ensure that the numbers (1.0, 1.1, etc.) remain unchanged */
/* For named references (superscripts), change numbers to letters */
.mw-cite-backlink sup a {
.mw-cite-backlink sup a {
     visibility: visible; /* Make sure the superscript numbers stay visible */
    visibility: hidden; /* Hide the numbers */
     font-size: 100%; /* Adjust size if needed */
}
     font-weight: normal; /* You can adjust the style if needed */
 
.mw-cite-backlink sup a::after {
    content: counter(mw-ref-linkback, lower-alpha); /* Change numbers to letters (a, b, c) */
     visibility: visible; /* Make letters visible */
     font-size: 90%; /* Adjust size if needed */
     font-weight: bold; /* Make letters bold */
}
 
/* Reset the counter for each reference */
.mw-cite-backlink {
    counter-reset: mw-ref-linkback; /* Reset the counter for each reference */
}
}

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

/* Hide the default arrow in unnamed references and replace it with a caret */
.mw-cite-backlink a {
    visibility: hidden; /* Hide the arrow */
}

.mw-cite-backlink a::after {
    content: "^"; /* Add caret */
    visibility: visible; /* Make caret visible */
    font-size: 90%; /* Adjust size if needed */
}

/* For named references (superscripts), change numbers to letters */
.mw-cite-backlink sup a {
    visibility: hidden; /* Hide the numbers */
}

.mw-cite-backlink sup a::after {
    content: counter(mw-ref-linkback, lower-alpha); /* Change numbers to letters (a, b, c) */
    visibility: visible; /* Make letters visible */
    font-size: 90%; /* Adjust size if needed */
    font-weight: bold; /* Make letters bold */
}

/* Reset the counter for each reference */
.mw-cite-backlink {
    counter-reset: mw-ref-linkback; /* Reset the counter for each reference */
}