Merge "Add language specific CSS overrides for a few languages"

This commit is contained in:
jenkins-bot 2022-10-22 03:27:48 +00:00 committed by Gerrit Code Review
commit ba468aaf14
4 changed files with 62 additions and 3 deletions

View file

@ -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 ) ']';

View 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 ) ' ';
}

View 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%;
}

View 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;
}