aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/styles/custom.css
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-15 00:14:00 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-15 00:14:00 +0900
commitf6df78408ea1a0fbf60e90da81f049a544bd8c9c (patch)
tree396f805defefb74070402e20af7f812bbb7714f1 /src/styles/custom.css
parent5183b2e6e80c9c7e8d66063766d2feef35c12a94 (diff)
hp-archive.mdx, custom.css: 下位の詳細ページを分野別に折りたたんで復元
各分野のアーカイブ表に、下位の詳細ページ約1,400件を戻し、合計約1,650件とした。分野ごとに details で折りたたみ(既定は閉じる)。注意書きに折りたたみとページ内検索の挙動を追記し、折りたたみのスタイルを追加した。
Diffstat (limited to 'src/styles/custom.css')
-rw-r--r--src/styles/custom.css28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/styles/custom.css b/src/styles/custom.css
index 740e000..556f128 100644
--- a/src/styles/custom.css
+++ b/src/styles/custom.css
@@ -150,6 +150,34 @@
background: var(--sl-color-gray-5);
}
+/* ── 折りたたみ(アーカイブのリンク一覧など) ── */
+.sl-markdown-content details {
+ margin: 1rem 0;
+ border: 1px solid var(--sl-color-gray-5);
+ border-radius: 8px;
+ overflow: hidden;
+}
+.sl-markdown-content details > summary {
+ cursor: pointer;
+ padding: 0.7rem 1rem;
+ font-weight: 600;
+ background: var(--sl-color-accent-low);
+ color: var(--sl-color-accent-high);
+}
+.sl-markdown-content details[open] > summary {
+ border-bottom: 1px solid var(--sl-color-gray-5);
+}
+.sl-markdown-content details > table {
+ margin: 0;
+ border-radius: 0;
+ box-shadow: none;
+}
+.sl-markdown-content details > table th:nth-child(2),
+.sl-markdown-content details > table td:nth-child(2) {
+ white-space: nowrap;
+ width: 1%;
+}
+
/* Tables inside bubbles */
.bln table {
display: table !important;