From 7e03c7110c9bdf664b1111213d884686591482fd Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Mon, 21 Sep 2026 09:37:49 +0900 Subject: custom.css: サイドバーの区切り線を外す MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit セクションの小見出しを入れたため横線は不要とした。セクションの区切りは、 見出しの上の余白(1rem、通常の行間は0.5rem)だけで示す。 --- src/styles/custom.css | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/styles/custom.css b/src/styles/custom.css index e5d198a..889023c 100644 --- a/src/styles/custom.css +++ b/src/styles/custom.css @@ -340,9 +340,9 @@ p, text-align: justify; } -/* ── Sidebar section dividers ── */ +/* ── Sidebar section headings ── */ /* - * 左サイドバーのトップレベルを、セクションごとに小見出しと横線で区切る。 + * 左サイドバーのトップレベルに、セクションの小見出しを付ける。 * 番号は astro.config.mjs の sidebar の並び順。 * 1 ホーム | * 2 実績 / 3 一般質問 / 4 委員会・請願 / 5 メディア掲載 | @@ -350,6 +350,12 @@ p, * 8 ご支援 / 9 コンタクト / 10 私の方針 * サイドバーを並べ替えたときは、ここも見直すこと。 */ +/* セクションの区切りは見出しの上の余白だけで示す(横線は使わない) */ +#starlight__sidebar ul.top-level > li:nth-child(2), +#starlight__sidebar ul.top-level > li:nth-child(6), +#starlight__sidebar ul.top-level > li:nth-child(8) { + margin-top: 1rem; +} #starlight__sidebar ul.top-level > li:nth-child(2)::before, #starlight__sidebar ul.top-level > li:nth-child(6)::before { display: block; @@ -367,13 +373,6 @@ p, #starlight__sidebar ul.top-level > li:nth-child(6)::before { content: "調べたことのまとめ"; } -#starlight__sidebar ul.top-level > li:nth-child(2), -#starlight__sidebar ul.top-level > li:nth-child(6), -#starlight__sidebar ul.top-level > li:nth-child(8) { - margin-top: 1.1rem; - padding-top: 0.7rem; - border-top: 1px solid var(--sl-color-gray-5); -} /* ── Admonition title inline ── */ .sl-banner .title, -- cgit v1.3.1