mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-15 10:59:56 +00:00
aa8fed3a3d
* Add a new module ext.cite.style to load the new CSS. * Add a ResourceLoaderFileModule that adds the correct CSS file depending on the content language, so that the visual style of citations can be changed per-language. The main ext.cite.style.css file renders similarly to MediaWiki's default Cite style. Also, an example CSS for Farsi numbering is included. Bug: T86782 Change-Id: I487095df8a7c4241a14f7b4480360f6774130bec
16 lines
393 B
CSS
16 lines
393 B
CSS
/* Farsi Cite CSS */
|
||
/* <ref>s with a group */
|
||
span.mw-ref a[data-mw-group]::after {
|
||
content: "[" attr(data-mw-group) " " counter(mw-Ref, persian) "]";
|
||
}
|
||
|
||
/* <ref>s without a group */
|
||
span.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);
|
||
}
|