| 1 |
/* |
| 2 |
* ### Language specific height correction for titles.### |
| 3 |
* Ref T31405 and T32809. |
| 4 |
* |
| 5 |
* NOTE: THIS FILE SHOULD ONLY INCLUDE LANGUAGES WRITTEN IN BRAHMIC SCRIPTS. If adding a language that |
| 6 |
* uses a different script, it should be discussed and this comment should be expanded. |
| 7 |
* In these scripts, the writing systems require slightly more vertical space to show diacritics properly |
| 8 |
* as by default will be truncated by line-height. |
| 9 |
*/ |
| 10 |
:lang( anp ), |
| 11 |
:lang( as ), |
| 12 |
:lang( awa ), |
| 13 |
:lang( bgc ), |
| 14 |
:lang( bh ), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */ |
| 15 |
:lang( bho ), |
| 16 |
:lang( blk ), |
| 17 |
:lang( bn ), |
| 18 |
:lang( bo ), |
| 19 |
:lang( bpy ), |
| 20 |
:lang( ccp ), |
| 21 |
:lang( dty ), |
| 22 |
:lang( dz ), |
| 23 |
:lang( gom ), |
| 24 |
:lang( gu ), |
| 25 |
:lang( hi ), |
| 26 |
:lang( kjp ), |
| 27 |
:lang( km ), |
| 28 |
:lang( kn ), |
| 29 |
:lang( ks ), |
| 30 |
:lang( ksw ), |
| 31 |
:lang( mag ), |
| 32 |
:lang( mai ), |
| 33 |
:lang( ml ), |
| 34 |
:lang( mnw ), |
| 35 |
:lang( mr ), |
| 36 |
:lang( my ), |
| 37 |
:lang( new ), |
| 38 |
:lang( nit ), |
| 39 |
:lang( nod ), |
| 40 |
:lang( or ), |
| 41 |
:lang( pa ), |
| 42 |
:lang( pi ), |
| 43 |
:lang( rki ), |
| 44 |
:lang( sa ), |
| 45 |
:lang( shn ), |
| 46 |
:lang( si ), |
| 47 |
:lang( syl ), |
| 48 |
:lang( ta ), |
| 49 |
:lang( tcy ), |
| 50 |
:lang( tdd ), |
| 51 |
:lang( te ) { |
| 52 |
.mw-heading1&, |
| 53 |
h1& { |
| 54 |
line-height: 1.6em !important; /* stylelint-disable-line declaration-no-important */ |
| 55 |
} |
| 56 |
|
| 57 |
.mw-heading&, |
| 58 |
h2&, |
| 59 |
h3&, |
| 60 |
h4&, |
| 61 |
h5&, |
| 62 |
h6& { |
| 63 |
line-height: 1.4em; |
| 64 |
} |
| 65 |
} |
| 66 |
|
| 67 |
// Increase for Nepalese on `h1`, See T333938. |
| 68 |
:lang( ne ) { |
| 69 |
.mw-heading1&, |
| 70 |
h1& { |
| 71 |
line-height: 1.9; |
| 72 |
} |
| 73 |
} |
| 74 |
|
| 75 |
// Increase `line-height` for Thai top vowel + top tone combination on `h2`, |
| 76 |
// for example on `ตั้`. See T285972. |
| 77 |
// Increase for Nepalese on `h2`, for example on `ि`. See T333938. |
| 78 |
:lang( th ), |
| 79 |
:lang( ne ) { |
| 80 |
.mw-heading2&, |
| 81 |
h2& { |
| 82 |
line-height: 1.6; |
| 83 |
} |
| 84 |
} |