From 2d0329574d20b65ad002a6494bc24db1fa8f73c8 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Mon, 21 Sep 2026 09:32:52 +0900 Subject: astro.config.mjs, custom.css: サイドバーにホームを戻す MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - astro.config.mjs: トップレベルの先頭に「ホーム」を追加した - custom.css: 並びが1つずれたため、セクション名と区切り線の nth-child の番号を 更新した。ホームと最初のセクションの間にも区切り線を入れた --- src/styles/custom.css | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/styles/custom.css') diff --git a/src/styles/custom.css b/src/styles/custom.css index ca9c910..e5d198a 100644 --- a/src/styles/custom.css +++ b/src/styles/custom.css @@ -344,13 +344,14 @@ p, /* * 左サイドバーのトップレベルを、セクションごとに小見出しと横線で区切る。 * 番号は astro.config.mjs の sidebar の並び順。 - * 1 実績 / 2 一般質問 / 3 委員会・請願 / 4 メディア掲載 | - * 5 ディスレクシアについて / 6 活動を支えるツール | - * 7 ご支援 / 8 コンタクト / 9 私の方針 + * 1 ホーム | + * 2 実績 / 3 一般質問 / 4 委員会・請願 / 5 メディア掲載 | + * 6 ディスレクシアについて / 7 活動を支えるツール | + * 8 ご支援 / 9 コンタクト / 10 私の方針 * サイドバーを並べ替えたときは、ここも見直すこと。 */ -#starlight__sidebar ul.top-level > li:nth-child(1)::before, -#starlight__sidebar ul.top-level > li:nth-child(5)::before { +#starlight__sidebar ul.top-level > li:nth-child(2)::before, +#starlight__sidebar ul.top-level > li:nth-child(6)::before { display: block; margin-bottom: 0.15rem; padding-inline: var(--sl-sidebar-item-padding-inline, 0.5rem); @@ -360,14 +361,15 @@ p, letter-spacing: 0.04em; color: var(--sl-color-gray-3); } -#starlight__sidebar ul.top-level > li:nth-child(1)::before { +#starlight__sidebar ul.top-level > li:nth-child(2)::before { content: "議会での活動"; } -#starlight__sidebar ul.top-level > li:nth-child(5)::before { +#starlight__sidebar ul.top-level > li:nth-child(6)::before { content: "調べたことのまとめ"; } -#starlight__sidebar ul.top-level > li:nth-child(5), -#starlight__sidebar ul.top-level > li:nth-child(7) { +#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); -- cgit v1.3.1