aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-09-21 09:32:52 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-09-21 09:32:52 +0900
commit2d0329574d20b65ad002a6494bc24db1fa8f73c8 (patch)
tree55cf4b6ef0c46c75a39136aa85e5c207ba5342b5 /src
parent3128e26c87d23a6a977942054a0dfe87415deab9 (diff)
astro.config.mjs, custom.css: サイドバーにホームを戻す
- astro.config.mjs: トップレベルの先頭に「ホーム」を追加した - custom.css: 並びが1つずれたため、セクション名と区切り線の nth-child の番号を 更新した。ホームと最初のセクションの間にも区切り線を入れた
Diffstat (limited to 'src')
-rw-r--r--src/styles/custom.css20
1 files changed, 11 insertions, 9 deletions
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);