mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-18 01:30:32 +00:00
b21aca1d06
This patch is probably not necessary per se, because Cite creates and controls the mw:referencedBy rel attributes, but it popped up in my code search, it is technically more correct and it doesn't hurt. Bug: T315209 Change-Id: Ie796c8a69988c6a546a15d998028c0e6f4c5b2e9
32 lines
663 B
CSS
32 lines
663 B
CSS
/* Farsi Cite CSS */
|
||
|
||
/* Upstream bug in stylelint makes it complain aboout the case of 'mw-Ref' */
|
||
/* stylelint-disable value-keyword-case */
|
||
|
||
/* <ref>s with a group */
|
||
.mw-ref a[ data-mw-group ]:after {
|
||
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, persian ) ']';
|
||
}
|
||
|
||
/* <ref>s without a group */
|
||
.mw-ref a:after {
|
||
content: '[' counter( mw-Ref, persian ) ']';
|
||
}
|
||
|
||
/* Linkbacks from <references> to <ref>s */
|
||
span[ rel~='mw:referencedBy' ] a:before {
|
||
content: counters( mw-ref-linkback, '٫', persian );
|
||
}
|
||
|
||
/* @noflip */
|
||
.mw-cite-dir-ltr {
|
||
direction: ltr;
|
||
text-align: left;
|
||
}
|
||
|
||
/* @noflip */
|
||
.mw-cite-dir-rtl {
|
||
direction: rtl;
|
||
text-align: right;
|
||
}
|