Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2021-07-21 10:45:51 +0300
committerMark Otto <otto@github.com>2022-02-26 05:16:26 +0300
commit4ee1465acfd14ab633364b5581d1e9213d946686 (patch)
treea782e701b323b81030613edf38cd04f61aef50c7 /scss
parentd74870a749d694cb2859d300c24a0a49a0b52bce (diff)
Prefer Linux-specific fonts over Arial
Some Linux distributions (like Debian) have fontconfig aliases for Arial that picks specific fonts. But such generic aliases might be less desirable than the known-good Linux specific fonts. This fixes a problem on my setup where Liberation Sans is aliased as Arial, even when Noto Sans is available. Liberation Sans doesn't support a weight of 500, so we end up rendering headers at the normal weight of 400, which makes them stand out less. Reordering the Arial fallback makes us instead pick Noto Sans over Lieration Sans, which does support a weight of 500, and makes headers stand out again. While we're at it, fixup the reboot documentation to match, and change the comment about Helvetica Neue; that's not a "Basic web-fallback" font, it's the UI font on older iOS and macOS versions.
Diffstat (limited to 'scss')
-rw-r--r--scss/_variables.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_variables.scss b/scss/_variables.scss
index ccc925837a..56a81be7fd 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -534,7 +534,7 @@ $aspect-ratios: (
// scss-docs-start font-variables
// stylelint-disable value-keyword-case
-$font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
+$font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
// stylelint-enable value-keyword-case
$font-family-base: var(--#{$variable-prefix}font-sans-serif) !default;