From a82569fdce6bbc370220ac330db9694e7beccedb Mon Sep 17 00:00:00 2001 From: Phil-Ah Date: Thu, 6 Jan 2022 11:50:34 +0100 Subject: [PATCH] Unify and improve mono-fontstack. (#1912) Unify and enhance font stack for mono-fonts. The updated font stack should provide a better UX on diverse platforms by using standard fonts. Fallbacks are more diverse. The amount of similar but not equal fonts in relation to 3rd-party plugins should be reduced. --- gradle/changelog/unify_fontstack.yaml | 2 ++ scm-ui/ui-styles/src/variables/_commons.scss | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 gradle/changelog/unify_fontstack.yaml diff --git a/gradle/changelog/unify_fontstack.yaml b/gradle/changelog/unify_fontstack.yaml new file mode 100644 index 0000000000..508ab1f7a0 --- /dev/null +++ b/gradle/changelog/unify_fontstack.yaml @@ -0,0 +1,2 @@ +- type: changed + description: Change mono-font-stack to provide better ux on modern platforms by using later os-fonts. Reduces amount of similar but not equal fonts used. diff --git a/scm-ui/ui-styles/src/variables/_commons.scss b/scm-ui/ui-styles/src/variables/_commons.scss index c8a8476e10..8b4f156d4b 100644 --- a/scm-ui/ui-styles/src/variables/_commons.scss +++ b/scm-ui/ui-styles/src/variables/_commons.scss @@ -31,6 +31,6 @@ $warning: #ffdd57; $blue-light: #98d8f3; $danger: #ff3860; -$family-monospace: "Courier New", Monaco, Menlo, "Ubuntu Mono", "source-code-pro", monospace; +$family-monospace: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; $input-border-color: $blue-light;