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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/fonts.scss')
-rw-r--r--app/assets/stylesheets/fonts.scss30
1 files changed, 25 insertions, 5 deletions
diff --git a/app/assets/stylesheets/fonts.scss b/app/assets/stylesheets/fonts.scss
index a023b41083d..bc49d17fcbb 100644
--- a/app/assets/stylesheets/fonts.scss
+++ b/app/assets/stylesheets/fonts.scss
@@ -14,8 +14,33 @@ Usage:
}
/* -------------------------------------------------------
+Monospaced font: GitLab Mono.
+
+Usage:
+ html { font-family: 'GitLab Mono', sans-serif; }
+*/
+@font-face {
+ font-family: 'GitLab Mono';
+ font-weight: 100 900;
+ font-display: optional;
+ font-style: normal;
+ src: font-url('gitlab-mono/GitLabMono.woff2') format('woff2');
+}
+
+@font-face {
+ font-family: 'GitLab Mono';
+ font-weight: 100 900;
+ font-display: optional;
+ font-style: italic;
+ src: font-url('gitlab-mono/GitLabMono-Italic.woff2') format('woff2');
+}
+
+/* -------------------------------------------------------
Monospaced font: JetBrains Mono.
+All of the definitions below can be removed once
+`GitLab Mono` is properly rolled out.
+
Usage:
html { font-family: 'JetBrains Mono', sans-serif; }
*/
@@ -49,11 +74,6 @@ Usage:
src: font-url('jetbrains-mono/JetBrainsMono-BoldItalic.woff2') format('woff2');
}
-:root {
- --default-mono-font: 'JetBrains Mono', 'Menlo';
- --default-regular-font: 'GitLab Sans', -apple-system;
-}
-
// This isn't the best solution, but we needed a quick fix
// https://gitlab.com/gitlab-org/gitlab/-/merge_requests/107592/
* {