mediawiki-extensions-Cite/modules/ext.cite.style.nqo.css
Subramanya Sastry d044c0c166 Parsoid CSS counters: Use child selectors instead of descendent selectors
In both cases:
(a) ref counter display for .mw-ref sups
(b) backlink labels in the references section for multiple named refs
the a-tags are direct children of the <sup>/<span> tag.

The child selectors are more precise. I am not really sure why we
went with descendant selectors in the first place.

Bug: T156350
Change-Id: If5be7cd14de40c2372f27ae5e2f32671c0a4e20c
2023-01-09 01:28:34 +00:00

29 lines
583 B
CSS
Raw Permalink 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:after {
content: '[' counter( mw-Ref, nqo-counter ) ']';
}
.mw-ref > a[ 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 );
}