mediawiki-extensions-Cite/modules/parsoid-styles/ext.cite.style.nqo.css
Adam Wight 5b2cbc48bd Wire subref counting into the numbering renderer
Significant change is that footnote marker numbers are changed from
being a CSS-rendered marker to using the rendered "fallback" text.
This could be avoided using the same trick as is implemented for the
reflist: send an inline style variable with the marker content; but
let's only do this if really necessary for user experience.

Template-produced refs are still wrong, but this patch continues to
render them as they come from Parsoid, in the content script.

TODO in later patches:
* reuse of a subref is rendered as '3.2.1' in reader view but '3.0'
and '3.1' in the editor.
* subref numbering is backwards in RTL languages

Bug: T247921
Change-Id: Ieff73769f8ebbc3724f6a9b498487c4e7d09aa2e
2024-07-15 07:08:06 +00:00

29 lines
624 B
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* @noflip */
.mw-cite-dir-ltr {
direction: ltr;
text-align: left;
}
/* @noflip */
.mw-cite-dir-rtl {
direction: rtl;
text-align: right;
}
@counter-style nqo-counter {
system: numeric;
symbols: '߀' '߁' '߂' '߃' '߄' '߅' '߆' '߇' '߈' '߉';
}
.mw-ref > a[ style~='mw-Ref' ]::after {
content: '[' counter( mw-Ref, nqo-counter ) ']';
}
.mw-ref > a[ style~='mw-Ref' ][ data-mw-group ]::after {
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, nqo-counter ) ']';
}
span[ rel='mw:referencedBy' ] > a::before {
content: counter( mw-references, nqo-counter ) '.' counter( mw-ref-linkback, nqo-counter );
}