From 61c00ba8257cc518288a3d64742ad8bdd9c799ef Mon Sep 17 00:00:00 2001 From: Baku Hashimoto Date: Thu, 13 Jun 2024 20:50:28 +0900 Subject: [PATCH] Fix styles --- docs/.vuepress/config.ts | 1 + docs/.vuepress/styles/index.scss | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 3a182d5..9d64d23 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -13,6 +13,7 @@ export default defineUserConfig({ 'link', {rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: true}, ], + ['link', {rel: 'stylesheet', href: 'https://use.typekit.net/xhr6teg.css'}], [ 'link', { diff --git a/docs/.vuepress/styles/index.scss b/docs/.vuepress/styles/index.scss index a8bbe79..ca1b621 100644 --- a/docs/.vuepress/styles/index.scss +++ b/docs/.vuepress/styles/index.scss @@ -9,7 +9,8 @@ --c-border-dark: var(--c-border); --code-bg-color: black; --code-ln-color: white; - --font-family: 'Work Sans', sans-serif; + --font-family: 'aktiv-grotesk', '游ゴシック体', YuGothic, '游ゴシック', + 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Osaka, sans-serif; --font-family-code: 'IBM Plex Mono', monospace; --border-radius: 6px; @@ -39,9 +40,8 @@ h6 { font-weight: 500; } -#main-title, -.site-name { - letter-spacing: -0.06em; +h3 { + font-size: 1.15em; } .theme-default-content { @@ -102,7 +102,7 @@ h6 { height: 1.4em; background: currentColor; margin-bottom: 0.2em; - mask: url('/linearly/github-mark.svg') no-repeat; + mask: url('./github-mark.svg') no-repeat; mask-size: 100% 100%; vertical-align: middle; } @@ -177,6 +177,7 @@ main { // List li { list-style: none; + margin-bottom: 0.5em; &:before { content: '❊'; @@ -184,6 +185,7 @@ main { display: inline-block; width: 1em; margin-left: -1em; + margin-right: 0.2em; } } } @@ -205,9 +207,15 @@ main { font-weight: 500; } +.sidebar-item:not(.sidebar-heading) { + padding-left: 1.25rem; +} + // Code code { border-radius: var(--border-radius); + padding: 0.25em; + background: transparent; } p strong code {