mediawiki-extensions-Cite/modules/ext.cite.style.fa.css
Marc Ordinas i Llopis aa8fed3a3d Use CSS to style Parsoid's Cite HTML
* 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
2015-06-08 21:58:15 +01:00

16 lines
393 B
CSS
Raw 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.

/* 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);
}