From e509d2fee8dda00e19bedf36ba0ab25ea6c67fd8 Mon Sep 17 00:00:00 2001 From: ma91n Date: Thu, 17 Sep 2026 17:21:15 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A6=8B=E5=87=BA=E3=81=97=E3=81=AE=E3=82=A2?= =?UTF-8?q?=E3=83=B3=E3=82=AB=E3=83=BC=E3=81=AE=E8=89=B2=E3=82=92=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E3=81=97=E3=80=81=E3=82=AD=E3=83=A3=E3=83=97=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=81=AE=E3=82=A2=E3=83=B3=E3=82=AB=E3=83=BC?= =?UTF-8?q?=E3=82=92=E9=9A=A0=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit テーマの水色をブログのネイビーにし、visited / hover / focus も同じ色に する。行き先ではなく位置を指す印なので、訪問済みで色が変わると意味が 読めない。 キャプションのパーマリンク(コード181・画像18)は出さない。:name: を 書いていないので行き先が自動連番の id で、前に1つ増えると番号がずれる。 Co-Authored-By: Claude Opus 5 (1M context) --- _static/custom.css | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/_static/custom.css b/_static/custom.css index f672184..f3f34e5 100644 --- a/_static/custom.css +++ b/_static/custom.css @@ -116,6 +116,46 @@ html.writer-html5 .rst-content dl.footnote code { /* ---------------------------------------------------------------- 見出し */ +/* 見出しのアンカー。テーマは水色(#2980b9)で、押すと訪問済みの色に変わる。 + ブログと同じネイビーにし、4つの状態で同じ色にする——これは「行き先」ではなく + その見出しの位置を指す印なので、訪問済みで色が変わると意味が読めなくなる */ +.rst-content h1 .headerlink, +.rst-content h2 .headerlink, +.rst-content h3 .headerlink, +.rst-content h4 .headerlink, +.rst-content h5 .headerlink, +.rst-content h6 .headerlink, +.rst-content h1 .headerlink:visited, +.rst-content h2 .headerlink:visited, +.rst-content h3 .headerlink:visited, +.rst-content h4 .headerlink:visited, +.rst-content h5 .headerlink:visited, +.rst-content h6 .headerlink:visited, +.rst-content h1 .headerlink:hover, +.rst-content h2 .headerlink:hover, +.rst-content h3 .headerlink:hover, +.rst-content h4 .headerlink:hover, +.rst-content h5 .headerlink:hover, +.rst-content h6 .headerlink:hover, +.rst-content h1 .headerlink:focus, +.rst-content h2 .headerlink:focus, +.rst-content h3 .headerlink:focus, +.rst-content h4 .headerlink:focus, +.rst-content h5 .headerlink:focus, +.rst-content h6 .headerlink:focus { + color: #0a1461; +} + +/* キャプションのアンカーは出さない。:name: を書いていないので行き先が + #id11 のような自動連番で、前にコードや図が1つ増えると番号がずれる。 + 共有したリンクが別のブロックを指すので、アンカーとして働いていない + (見出しは見出し名の id なので安定している)*/ +.rst-content .code-block-caption .headerlink, +.rst-content figure figcaption .headerlink, +.rst-content table > caption .headerlink { + display: none; +} + /* 見出しは 直前の空き・太さ・罫線 で階層を作る。テーマは margin-top が 0 で、 前の段落の下の空き(24px)しか無く、h2 も h6 も同じ間隔で始まる */ .rst-content h1,