mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
d044c0c166
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
28 lines
529 B
CSS
28 lines
529 B
CSS
/* @noflip */
|
||
.mw-cite-dir-ltr {
|
||
direction: ltr;
|
||
text-align: left;
|
||
}
|
||
|
||
/* @noflip */
|
||
.mw-cite-dir-rtl {
|
||
direction: rtl;
|
||
text-align: right;
|
||
}
|
||
|
||
span[ rel~='mw:referencedBy' ] {
|
||
counter-reset: mw-ref-linkback -1;
|
||
}
|
||
|
||
.mw-ref > a:after {
|
||
content: '[' counter( mw-Ref, persian ) ']';
|
||
}
|
||
|
||
.mw-ref > a[ data-mw-group ]:after {
|
||
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, persian ) ']';
|
||
}
|
||
|
||
span[ rel='mw:referencedBy' ] > a:before {
|
||
content: counter( mw-references, persian ) '٫' counter( mw-ref-linkback, persian );
|
||
}
|