MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
/* Hide the default up arrow in unnamed references and replace it with a caret */ | /* Hide the default up arrow in unnamed references and replace it with a caret */ | ||
.mw-cite-backlink a { | .mw-cite-backlink a { | ||
font-size: 0; /* Hides the original arrow without removing the element */ | |||
position: relative; | |||
} | } | ||
.mw-cite-backlink a::after { | .mw-cite-backlink a::after { | ||
content: " ^"; /* Adds caret | content: " ^"; /* Adds 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 */ | /* Change numbered references to lowercase letters while keeping them as links */ | ||
.mw-cite-backlink sup a { | .mw-cite-backlink sup a { | ||
font-size: 0; /* Hides the original number but keeps the link */ | |||
position: relative; | |||
} | } | ||
.mw-cite-backlink sup::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); /* Change numbers to letters */ | ||
font-size: 100%; /* Keep desired size */ | |||
font-size: 100%; /* | |||
font-style: italic; /* Italicize letters */ | font-style: italic; /* Italicize letters */ | ||
font-weight: bold; | |||
visibility: visible; | |||
} | } | ||
Revision as of 23:39, 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 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;
}