diff options
Diffstat (limited to 'src/styles')
| -rw-r--r-- | src/styles/custom.css | 17 |
1 files changed, 8 insertions, 9 deletions
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, |
