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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2023-06-28 14:14:25 +0300
committerLukas Eipert <leipert@gitlab.com>2023-06-28 14:16:31 +0300
commit82acd159fdf67796d194f7f8934bf4d4194f8c80 (patch)
tree97112b0ba80cadf3cb8ba0535e4cd54f7cefe303 /content/assets
parentcbde5ea78f3554586cb6b7b5e6361eca79681a0b (diff)
Render proper Italics for GitLab Sans
See also: - https://gitlab.com/gitlab-org/gitlab/-/merge_requests/123936 - https://gitlab.com/gitlab-org/frontend/fonts/-/issues/11
Diffstat (limited to 'content/assets')
-rw-r--r--content/assets/stylesheets/_typography.scss13
1 files changed, 12 insertions, 1 deletions
diff --git a/content/assets/stylesheets/_typography.scss b/content/assets/stylesheets/_typography.scss
index dc7c0a4e..fb47a238 100644
--- a/content/assets/stylesheets/_typography.scss
+++ b/content/assets/stylesheets/_typography.scss
@@ -11,9 +11,20 @@
font-family: 'GitLab Sans';
font-weight: 100 900;
font-style: normal;
- font-named-instance: 'Regular'; /* stylelint-disable property-no-unknown */
+ /* stylelint-disable-next-line property-no-unknown */
+ font-named-instance: 'Regular';
src: url('../vendor/GitLabSans.woff2') format('woff2');
}
+
+@font-face {
+ font-family: 'GitLab Sans';
+ font-weight: 100 900;
+ font-style: italic;
+ /* stylelint-disable-next-line property-no-unknown */
+ font-named-instance: 'Regular';
+ src: url('../vendor/GitLabSans-Italic.woff2') format('woff2');
+}
+
@font-face {
font-family: 'GitLab Mono';
font-weight: 100 900;