mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 04:11:10 +01:00
3993b8cda2
In the non-latin font fallback styles, languages using the Devanagari alphabet were initially committed in a comma-separated list in the `:lang()` selector, which isn't fully supported. This update separates those languages into their own `:lang()` selectors. Props mako09. Fixes #45731. Built from https://develop.svn.wordpress.org/trunk@44657 git-svn-id: http://core.svn.wordpress.org/trunk@44488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
83 lines
6.3 KiB
SCSS
83 lines
6.3 KiB
SCSS
/*
|
|
* Chrome renders extra-wide characters for the Hoefler Text font.
|
|
* This results in a jumping cursor when typing in both the Classic and block
|
|
* editors. The following font-face override fixes the issue by manually inserting
|
|
* a custom font that includes just a Hoefler Text space replacement for that
|
|
* character instead.
|
|
*/
|
|
@font-face {
|
|
font-family: 'NonBreakingSpaceOverride';
|
|
src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMoAA0AAAAACDQAAALTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCahEICjx3CywAATYCJANUBCAFhiEHgWwbXQfILgpsY+rQRRARwyAs6uL7pxzYhxEE+32b3aeHmifR6tklkS9hiZA0ewkqGRJE+H7/+6378ASViK/PGeavqJyOzsceKi1s3BCiQsiOdn1r/RBgIJYEgCUhbm/8/8/h4saPssnTNkkiWUBrTRtjmQSajw3Ui3pZ3LYDPD+XG2C3JA/yKAS8/rU5eNfuGqRf4eNNgV4YAlIIgxglEkWe6FYpq10+wi3g+/nUgvgPFczNrz/RsTgVm/zfbPuHZlsuQECxuyqBcQwKFBjFgKO8AqP4bAN9tFJtnM9xPcbNjeXS/x1wY/xU52f5W/X1+9cnH4YwKIaoRRAkUkj/YlAAeF/624foiIDBgBmgQBeGAyhBljUPZUm/l2dTvmpqcBDUOHdbPZWd8JsBAsGr4w8/EDn82/bUPx4eh0YNrQTBuHO2FjQEAGBwK0DeI37DpQVqdERS4gZBhpeUhWCfLFz7J99aEBgsJCHvUGAdAPp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AAAAQAB//8AD3jaY2BkYGDgAWIxIGZiYARCESBmAfMYAAR6AEMAAAABAAAAANXtRbgAAAAA2AhRFAAAAADYCNuG) format('woff');
|
|
|
|
}
|
|
|
|
// Font and typographic variables
|
|
|
|
$font__body: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
|
$font__heading: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
$font__fallbacks: (
|
|
/* Arabic */
|
|
ar: 'Tahoma, Arial, sans-serif',
|
|
ary: 'Tahoma, Arial, sans-serif',
|
|
azb: 'Tahoma, Arial, sans-serif',
|
|
ckb: 'Tahoma, Arial, sans-serif',
|
|
fa-IR: 'Tahoma, Arial, sans-serif',
|
|
haz: 'Tahoma, Arial, sans-serif',
|
|
ps: 'Tahoma, Arial, sans-serif',
|
|
/* Cyrillic */
|
|
be: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
bg-BG: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
kk: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
mk-MK: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
mn: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
ru-RU: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
sah: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
sr-RS: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
tt-RU: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
uk: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
|
|
/* Chinese (Hong Kong) */
|
|
zh-HK: '-apple-system, BlinkMacSystemFont, "PingFang HK", "Helvetica Neue", "Microsoft YaHei New", STHeiti Light, sans-serif',
|
|
/* Chinese (Taiwan) */
|
|
zh-TW: '-apple-system, BlinkMacSystemFont, "PingFang TC", "Helvetica Neue", "Microsoft YaHei New", STHeiti Light, sans-serif',
|
|
/* Chinese (China) */
|
|
zh-CN: '-apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei New", STHeiti Light, sans-serif',
|
|
/* Devanagari */
|
|
bn-BD: 'Arial, sans-serif',
|
|
hi-IN: 'Arial, sans-serif',
|
|
mr: 'Arial, sans-serif',
|
|
ne-NP: 'Arial, sans-serif',
|
|
/* Greek */
|
|
el: '"Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
/* Gujarati */
|
|
gu: 'Arial, sans-serif',
|
|
/* Hebrew */
|
|
he-IL: '"Arial Hebrew", Arial, sans-serif',
|
|
/* Japanese */
|
|
ja: '-apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, "Helvetica Neue", sans-serif',
|
|
/* Korean */
|
|
ko-KR: '"Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", Dotum, sans-serif',
|
|
/* Thai */
|
|
th: '"Sukhumvit Set", "Helvetica Neue", helvetica, arial, sans-serif',
|
|
/* Vietnamese */
|
|
vi: '"Libre Franklin", sans-serif',
|
|
);
|
|
$font__code: Menlo, monaco, Consolas, Lucida Console, monospace;
|
|
$font__pre: "Courier 10 Pitch", Courier, monospace;
|
|
|
|
$font__size_base: 22px;
|
|
$font__size-ratio: 1.125;
|
|
|
|
$font__size-xxs: 1em / (1.5 * $font__size-ratio);
|
|
$font__size-xs: 1em / (1.25 * $font__size-ratio);
|
|
$font__size-sm: 1em / (1 * $font__size-ratio);
|
|
$font__size-md: 1em * (1 * $font__size-ratio);
|
|
$font__size-lg: 1em * (1.5 * $font__size-ratio);
|
|
$font__size-xl: 1em * (2 * $font__size-ratio);
|
|
$font__size-xxl: 1em * (2.5 * $font__size-ratio);
|
|
$font__size-xxxl: 1em * (3 * $font__size-ratio);
|
|
|
|
$font__line-height-body: 1.8;
|
|
$font__line-height-pre: 1.6;
|
|
$font__line-height-heading: 1.2;
|
|
$font__line-height-double: 2 * $font__line-height-heading; |