From 146a5ae9bacfa08c943f2565c62036a29e51933d Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Mon, 21 Sep 2026 13:19:37 +0900 Subject: astro.config.mjs, custom.css: サイドバーの項目名短縮と本文の字下げ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - サイドバー: 「ディスレクシアについて」→「ディスレクシア」、「活動を支えるツール」→ 「活動のツール」に短縮。グループの中の見出し(年度・月など)を一段小さくした - custom.css: 本文の段落の1行目を1字下げした。吹き出しの中と、中央寄せ・右寄せの 段落(画像クレジットなど)は字下げしない --- src/styles/custom.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/styles/custom.css b/src/styles/custom.css index 783d309..38f7555 100644 --- a/src/styles/custom.css +++ b/src/styles/custom.css @@ -64,6 +64,13 @@ } .sl-markdown-content p { margin-bottom: 1em; + text-indent: 1em; +} +/* 吹き出しの中と、中央寄せ・右寄せの段落は字下げしない */ +.sl-markdown-content .bln p, +.sl-markdown-content p[style*="center"], +.sl-markdown-content p[style*="right"] { + text-indent: 0; } /* ── Stylish Headings ── */ @@ -421,6 +428,12 @@ p, font-weight: 500; } +/* グループの中の見出し(年度・月など)は一段小さく */ +#starlight__sidebar ul.top-level ul .group-label > .large { + font-size: var(--sl-text-sm); + font-weight: 500; +} + /* 現在地の下地は、アクセントの淡い色にする(既定の濃い塗りは主張が強いため) */ #starlight__sidebar ul.top-level [aria-current="page"], #starlight__sidebar ul.top-level [aria-current="page"]:hover, -- cgit v1.3.1