mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-16 03:23:22 +00:00
1ca27aa0d8
Adding option for dir attribute in ref tags. The value must be a valid direction ('ltr' or 'rtl', case insensitive) or the direction will be stripped out. The directionality of the li element is set using a css class accordingly. Bug: T15673 Change-Id: Iff480bc8cc4f81403b310e8efecd43e29d1d4449
32 lines
662 B
CSS
32 lines
662 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;
|
||
}
|