aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-09-21 09:37:49 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-09-21 09:37:49 +0900
commit7e03c7110c9bdf664b1111213d884686591482fd (patch)
treec4a64e65da6d15dcc003974a57b0305f92a2d2f1 /src
parenta9fa94b2fbb9b14ef7182d52cb40dc3663d19c01 (diff)
custom.css: サイドバーの区切り線を外す
セクションの小見出しを入れたため横線は不要とした。セクションの区切りは、 見出しの上の余白(1rem、通常の行間は0.5rem)だけで示す。
Diffstat (limited to 'src')
-rw-r--r--src/styles/custom.css17
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,