From f770d164fed8d3eed193cc003eb5db5f1a05e182 Mon Sep 17 00:00:00 2001 From: EmptyWork <22065214+EmptyWork@users.noreply.github.com> Date: Thu, 12 Jun 2025 11:35:12 +0900 Subject: [PATCH 1/2] =?UTF-8?q?create:=20`=5Ftypography.scss`=20=E2=80=94?= =?UTF-8?q?=20support=20custom=20fonts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/abstracts/_typography.scss | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/assets/scss/abstracts/_typography.scss diff --git a/src/assets/scss/abstracts/_typography.scss b/src/assets/scss/abstracts/_typography.scss new file mode 100644 index 0000000..3133e47 --- /dev/null +++ b/src/assets/scss/abstracts/_typography.scss @@ -0,0 +1,7 @@ +.font-montserrat { + font-family: 'Montserrat', sans-serif; +} + +.font-monospace { + font-family: monospace, "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif; +} \ No newline at end of file From aa6caf0cf02d64d0b5f1e73f1f0d0a61d97d5484 Mon Sep 17 00:00:00 2001 From: EmptyWork <22065214+EmptyWork@users.noreply.github.com> Date: Thu, 12 Jun 2025 11:36:42 +0900 Subject: [PATCH 2/2] =?UTF-8?q?update:=20`=5Farticle.scss`=20=E2=80=94=20e?= =?UTF-8?q?xtend=20typography=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/pages/_article.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/scss/pages/_article.scss b/src/assets/scss/pages/_article.scss index 4f8f154..7384724 100644 --- a/src/assets/scss/pages/_article.scss +++ b/src/assets/scss/pages/_article.scss @@ -1,4 +1,5 @@ @use "../abstracts/mixin" as mix; +@use "../abstracts/typography"; .article { --_l: 20%; @@ -169,8 +170,8 @@ code, kbd, samp { + @extend .font-monospace; padding: 0 0.3em; - font-family: monospace, "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif; // font-size: 0.8rem; line-height: 1.4; }