From 2b48a05b3226f4af9d43556c54035bb15d803956 Mon Sep 17 00:00:00 2001 From: ma91n Date: Thu, 17 Sep 2026 17:27:08 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A0=85=E7=9B=AE=E3=81=AE=E4=B8=AD?= =?UTF-8?q?=E3=81=8C2=E6=AE=B5=E8=90=BD=E3=81=82=E3=82=8B=E7=AE=87?= =?UTF-8?q?=E6=9D=A1=E6=9B=B8=E3=81=8D=E3=81=AE=E3=81=BE=E3=81=A8=E3=81=BE?= =?UTF-8?q?=E3=82=8A=E3=82=92=E7=A9=BA=E3=81=8D=E3=81=A7=E7=A4=BA=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit テーマは項目の中の段落の空きと項目と項目の空きがどちらも 12px で、 どこまでが1つの項目か読めない。中を 8px に詰め、項目の間に 16px を置く。 空きは下だけで持つ。上下から挟むと大きいほうだけが効いて 8px が見えない。 項目の間を空けるのは2段落以上の項目がある箇条書きだけにする。 Co-Authored-By: Claude Opus 5 (1M context) --- _static/custom.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/_static/custom.css b/_static/custom.css index f3f34e5..1fe02c7 100644 --- a/_static/custom.css +++ b/_static/custom.css @@ -72,6 +72,32 @@ html.writer-html5 .rst-content dl.footnote code { padding-left: 0.15em; } +/* 項目の中が2段落以上ある箇条書きは、項目の切れ目を空きで示す。テーマは + 項目の中の段落の空きと項目と項目の空きがどちらも 12px で、どこまでが + 1つの項目か読めない。中を 8px に詰め、項目の間にその2倍を置く。 + 1段落の項目だけが並ぶ箇条書きは間隔を持たないまま(行として並ぶので詰めて読む)*/ +.rst-content section ul li > p, +.rst-content section ol li > p { + margin-bottom: 8px; +} + +.rst-content section ul li > p:last-child, +.rst-content section ol li > p:last-child { + margin-bottom: 0; +} + +/* テーマは2段落目に上の空き 12px を持たせている。上下から挟むと大きい方だけが + 効いて 8px が見えないので、空きは下だけで持つ */ +.rst-content section ul li > p + p, +.rst-content section ol li > p + p { + margin-top: 0; +} + +.rst-content section ul:has(li > p + p) > li + li, +.rst-content section ol:has(li > p + p) > li + li { + margin-top: 16px; +} + /* 入れ子の切れ目は「戻り」の空きが示す。子のリストが終わって同じ階層の項目に 戻るところに刻み1つぶんを置く。開き(親から子へ入るところ)は 0 のまま—— 字下げが1段深くなること自体が開きを示す */ From e7e5464e63d9b4c94d1b66ac1b652ab83d612e59 Mon Sep 17 00:00:00 2001 From: ma91n Date: Thu, 17 Sep 2026 17:33:10 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A0=85=E7=9B=AE=E3=81=AE=E4=B8=AD?= =?UTF-8?q?=E3=81=AE=E6=AE=B5=E8=90=BD=E3=81=AE=E7=A9=BA=E3=81=8D=E3=82=92?= =?UTF-8?q?=204px=20=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 8px では項目の中の切れ目がまだ広い。刻み1つぶんに詰めて、項目の間 (16px)との差を4倍にする。 Co-Authored-By: Claude Opus 5 (1M context) --- _static/custom.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_static/custom.css b/_static/custom.css index 1fe02c7..6a7130e 100644 --- a/_static/custom.css +++ b/_static/custom.css @@ -74,11 +74,11 @@ html.writer-html5 .rst-content dl.footnote code { /* 項目の中が2段落以上ある箇条書きは、項目の切れ目を空きで示す。テーマは 項目の中の段落の空きと項目と項目の空きがどちらも 12px で、どこまでが - 1つの項目か読めない。中を 8px に詰め、項目の間にその2倍を置く。 + 1つの項目か読めない。中を 4px に詰め、項目の間にその4倍を置く。 1段落の項目だけが並ぶ箇条書きは間隔を持たないまま(行として並ぶので詰めて読む)*/ .rst-content section ul li > p, .rst-content section ol li > p { - margin-bottom: 8px; + margin-bottom: 4px; } .rst-content section ul li > p:last-child, @@ -87,7 +87,7 @@ html.writer-html5 .rst-content dl.footnote code { } /* テーマは2段落目に上の空き 12px を持たせている。上下から挟むと大きい方だけが - 効いて 8px が見えないので、空きは下だけで持つ */ + 効いて 4px が見えないので、空きは下だけで持つ */ .rst-content section ul li > p + p, .rst-content section ol li > p + p { margin-top: 0;