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; } | ||
/* | /* Replace the up arrow (↑) in unnamed references with a caret (^) */ | ||
.mw-cite-backlink a { | .mw-cite-backlink a { | ||
text-decoration: none; /* Ensures the link remains but without underline */ | |||
position: relative; | position: relative; | ||
} | } | ||
.mw-cite-backlink a:: | .mw-cite-backlink a::before { | ||
content: " ^"; /* | content: "^"; /* Replaces arrow with caret */ | ||
font-size: 90%; | font-size: 90%; | ||
font-weight: bold; | 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 { | .mw-cite-backlink sup a { | ||
font-size: 0; /* | 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); /* | content: counter(mw-ref-linkback, lower-alpha); /* Converts numbers to letters */ | ||
font-size: 100%; | font-size: 100%; | ||
font-style: italic; | 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;
}