MediaWiki:Common.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 22: | Line 22: | ||
.references { | .references { | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
} | |||
/* Parsoid Customizations for Reference Styling */ | |||
/* Reset the reference counter for each group */ | |||
span[rel="mw:referencedBy"] { | |||
counter-reset: mw-ref-linkback 0; | |||
} | |||
/* Set up the counter style for various reference groups */ | |||
.mw-ref > a[data-mw-group=lower-alpha]::after { | |||
content: '[' counter(mw-ref-linkback, lower-alpha) ']'; | |||
} | |||
.mw-ref > a[style~="mw-Ref"][data-mw-group=upper-alpha]::after { | |||
content: '[' counter(mw-Ref, upper-alpha) ']'; | |||
} | |||
.mw-ref > a[style~="mw-Ref"][data-mw-group=decimal]::after { | |||
content: '[' counter(mw-Ref, decimal) ']'; | |||
} | |||
.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-roman]::after { | |||
content: '[' counter(mw-Ref, lower-roman) ']'; | |||
} | |||
.mw-ref > a[style~="mw-Ref"][data-mw-group=upper-roman]::after { | |||
content: '[' counter(mw-Ref, upper-roman) ']'; | |||
} | |||
.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-greek]::after { | |||
content: '[' counter(mw-Ref, lower-greek) ']'; | |||
} | |||
/* Custom styling for each type of reference */ | |||
span[rel="mw:referencedBy"] > a::before { | |||
font-size: 80%; | |||
font-weight: bold; | |||
font-style: italic; | |||
content: counter(mw-ref-linkback, lower-alpha); | |||
} | |||
a[rel="mw:referencedBy"]::before { | |||
font-weight: bold; | |||
content: "^"; | |||
} | |||
span[rel="mw:referencedBy"]::before { | |||
content: "^ "; | |||
} | } | ||
Line 220: | Line 270: | ||
color: #202122; /* Text color for contrast */ | color: #202122; /* Text color for contrast */ | ||
line-height: 1.5; | line-height: 1.5; | ||
} | } |