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


/* Custom styles for referenced citations */
/* Reset the reference counter */
.mw-cite-backlink {
.mw-cite-backlink {
     counter-reset: cite-ref-counter;
     counter-reset: cite-ref-counter;
}
}


/* Change numeric references to letters (a, b, c, etc.) */
/* Display lowercase letters (a, b, c, ...) for each superscript reference */
.mw-cite-backlink sup a {
.mw-cite-backlink sup a {
     counter-increment: cite-ref-counter;
     counter-increment: cite-ref-counter;
     content: counter(cite-ref-counter, lower-alpha);
     content: counter(cite-ref-counter, lower-alpha);
     font-size: 100%; /* Size of superscript */
     font-size: 100%; /* Adjust the size of the superscript */
     font-weight: bold; /* Make the letter bold */
     font-weight: bold; /* Make the letter bold */
     font-style: normal; /* Remove italic styling if any */
     font-style: normal; /* Remove italic styling */
}
}


/* Display the caret (^) symbol in the backlink */
/* Replace the up arrow with a caret (^) */
.mw-cite-backlink::before {
.mw-cite-backlink::before {
     content: "^";
     content: "^";
     font-weight: bold;
     font-weight: bold; /* Ensure the caret is bold */
     font-size: 100%; /* Adjust size of caret if needed */
     font-size: 100%; /* Adjust size as needed */
    margin-right: 0.2em; /* Slight space between the caret and the superscript */
}
}

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

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

/* Display lowercase letters (a, b, c, ...) for each superscript reference */
.mw-cite-backlink sup a {
    counter-increment: cite-ref-counter;
    content: counter(cite-ref-counter, lower-alpha);
    font-size: 100%; /* Adjust the size of the superscript */
    font-weight: bold; /* Make the letter bold */
    font-style: normal; /* Remove italic styling */
}

/* Replace the up arrow with a caret (^) */
.mw-cite-backlink::before {
    content: "^";
    font-weight: bold; /* Ensure the caret is bold */
    font-size: 100%; /* Adjust size as needed */
    margin-right: 0.2em; /* Slight space between the caret and the superscript */
}