MediaWiki:Common.css: Difference between revisions
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 */ | ||
} | } | ||
.mw-cite-backlink a::after { | .mw-cite-backlink a::after { | ||
content: "^"; /* | content: "^"; /* Add caret */ | ||
visibility: visible; /* Make caret visible */ | |||
font-size: 90%; /* Adjust size if needed */ | font-size: 90%; /* Adjust size if needed */ | ||
} | } | ||
/* | /* For named references (superscripts), change numbers to letters */ | ||
.mw-cite-backlink sup a { | .mw-cite-backlink sup a { | ||
visibility: visible; /* Make | visibility: hidden; /* Hide the numbers */ | ||
font-size: | } | ||
font-weight: | |||
.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 */
}