mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Merge "Add language specific CSS overrides for a few languages"
This commit is contained in:
commit
ba468aaf14
|
@ -1,8 +1,5 @@
|
|||
/* 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 ) ']';
|
||||
|
|
24
modules/ext.cite.style.fr.css
Normal file
24
modules/ext.cite.style.fr.css
Normal file
|
@ -0,0 +1,24 @@
|
|||
/* French (These styles favor wikipedia usage. Other projects may need overrides if they care.) */
|
||||
|
||||
/* <ref>s with a group */
|
||||
.mw-ref a[ data-mw-group ]:after {
|
||||
content: attr( data-mw-group ) ' ' counter( mw-Ref, decimal );
|
||||
}
|
||||
|
||||
/* <ref>s without a group */
|
||||
.mw-ref a:after {
|
||||
content: counter( mw-Ref, decimal );
|
||||
}
|
||||
|
||||
/* Linkbacks from <references> to <ref>s */
|
||||
span[ rel='mw:referencedBy' ] a:before {
|
||||
content: counter( mw-ref-linkback, lower-alpha ) ' ';
|
||||
}
|
||||
|
||||
span[ rel='mw:referencedBy' ] a:last-child:before {
|
||||
content: ' et ' counter( mw-ref-linkback, lower-alpha );
|
||||
}
|
||||
|
||||
span[ rel='mw:referencedBy' ] a:nth-last-child( 2 ):before {
|
||||
content: counter( mw-ref-linkback, lower-alpha ) ' ';
|
||||
}
|
32
modules/ext.cite.style.kn.css
Normal file
32
modules/ext.cite.style.kn.css
Normal file
|
@ -0,0 +1,32 @@
|
|||
/* Kannada (These styles favor wikipedia usage. Other projects may need overrides if they care.) */
|
||||
|
||||
/* <ref>s with a group */
|
||||
.mw-ref a[ data-mw-group ]:after {
|
||||
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, kannada ) ']';
|
||||
}
|
||||
|
||||
/* <ref>s without a group */
|
||||
.mw-ref a:after {
|
||||
content: '[' counter( mw-Ref, kannada ) ']';
|
||||
}
|
||||
|
||||
[ rel='mw:referencedBy' ] {
|
||||
counter-reset: mw-ref-linkback -1;
|
||||
}
|
||||
|
||||
ol.mw-references {
|
||||
counter-reset: mw-references list-item 0;
|
||||
}
|
||||
|
||||
ol.mw-references > li {
|
||||
counter-increment: mw-references;
|
||||
}
|
||||
|
||||
/* 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%;
|
||||
}
|
6
modules/ext.cite.style.nb.css
Normal file
6
modules/ext.cite.style.nb.css
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* Norwegian Bokmål (These styles favor wikipedia usage. Other projects may need overrides if they care.) */
|
||||
|
||||
[ rel='mw:referencedBy' ]:before {
|
||||
content: '^ ';
|
||||
font-weight: bold;
|
||||
}
|
Loading…
Reference in a new issue