mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-16 11:29:55 +00:00
47a622c001
* Some wikis need a X.Y style numbering where X is the counter for the reference number in the list (mw-references), and Y is the named-ref counter (mw-ref-linkback). * Rather than have the mw-references counter be defined for specific languages, it is useful to have defined for all wikis and use it where needed. * Not sure why the ol.mw-references reset the mw-ref-linkback counter. It needed to be reset for every item. * While at it, made a couple CSS rules in kn and fa be more specific so it is clearly what they are used for. Change-Id: I6dd35303f134cc4996e134867ecc2c0db7a5411f
25 lines
725 B
CSS
25 lines
725 B
CSS
/* Kannada (These styles favor wikipedia usage. Other projects may need overrides if they care.) */
|
|
|
|
/* <ref>s with a group */
|
|
.reference a[ data-mw-group ]:after {
|
|
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, kannada ) ']';
|
|
}
|
|
|
|
/* <ref>s without a group */
|
|
.reference a:after {
|
|
content: '[' counter( mw-Ref, kannada ) ']';
|
|
}
|
|
|
|
span[ rel='mw:referencedBy' ] {
|
|
counter-reset: mw-ref-linkback -1;
|
|
}
|
|
|
|
/* Linkbacks from <references> to <ref>s */
|
|
span[ rel='mw:referencedBy' ] a:before {
|
|
content: counter( mw-references, kannada ) '.' counter( mw-ref-linkback, kannada );
|
|
/* knwiki:Common.css has a font-size:80% rule
|
|
* for sub & sup and this is the equivalent selector
|
|
* for that in Parsoid */
|
|
font-size: 80%;
|
|
}
|