From 2f52c45214674f8bbdb4755c31ead9a698dda335 Mon Sep 17 00:00:00 2001 From: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> Date: Sat, 24 May 2025 04:25:55 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=82=A4=E3=83=B3=E3=83=A9=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=82=B3=E3=83=BC=E3=83=89=E3=81=AE=E3=82=B9=E3=82=BF?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E3=82=92GitHub=E9=A2=A8=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/src/globals.css | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/website/src/globals.css b/website/src/globals.css index 1552eb70b9..69b3f923cc 100644 --- a/website/src/globals.css +++ b/website/src/globals.css @@ -4,7 +4,8 @@ /* Global font family */ @font-face { font-family: "HK Grotesk"; - src: url("/assets/fonts/hanken-grotesk/HKGrotesk-Regular.woff2") format("woff2"); + src: url("/assets/fonts/hanken-grotesk/HKGrotesk-Regular.woff2") + format("woff2"); font-weight: 400; font-style: normal; font-display: swap; @@ -12,7 +13,8 @@ @font-face { font-family: "HK Grotesk"; - src: url("/assets/fonts/hanken-grotesk/HKGrotesk-SemiBold.woff2") format("woff2"); + src: url("/assets/fonts/hanken-grotesk/HKGrotesk-SemiBold.woff2") + format("woff2"); font-weight: 600; font-style: normal; font-display: swap; @@ -28,7 +30,8 @@ @font-face { font-family: "Cascadia Mono"; - src: url("/assets/fonts/cascadia-code/CascadiaMono-Regular-Sub.woff2") format("woff2"); + src: url("/assets/fonts/cascadia-code/CascadiaMono-Regular-Sub.woff2") + format("woff2"); font-weight: 400; font-style: normal; font-display: swap; @@ -72,3 +75,20 @@ samp { display: none !important; visibility: hidden; } + +/* Inline codeのスタイルをGitHub風にする */ +.prose :not(pre) > code { + background-color: rgba(175, 184, 193, 0.2); + font-size: 0.875em; + font-weight: 400; + padding: 0.125rem 0.25rem; + border-radius: 6px; + border: 1px solid rgba(175, 184, 193, 0.25); +} + +.prose code { + &::before, + &::after { + content: none; + } +}