見出しのアンカーの色を固定し、キャプションのアンカーを隠す - #176
Merged
Merged
Conversation
テーマの水色をブログのネイビーにし、visited / hover / focus も同じ色に する。行き先ではなく位置を指す印なので、訪問済みで色が変わると意味が 読めない。 キャプションのパーマリンク(コード181・画像18)は出さない。:name: を 書いていないので行き先が自動連番の id で、前に1つ増えると番号がずれる。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
見出しのアンカーの色を固定し、キャプションのアンカーは出さないようにします。
見出しのアンカー
テーマは水色(
#2980b9)で、押すと訪問済みの色に変わります。ブログと同じネイビー(#0a1461)にし、:visited/:hover/:focusも同じ色にします。これは「行き先」ではなくその見出しの位置を指す印なので、訪問済みで色が変わると意味が読めなくなります。ブログも4つの状態で同じ色です。
キャプションのアンカー
コードブロック 181 個・画像 18 個のキャプションに付いているパーマリンクを出さないようにします(
display: none)。リンク先が使い物になっていません。
:name:を1つも書いていないので id が#id11のような自動連番で、前にコードや図が1つ増えると番号がずれます。共有したリンクが別のブロックを指すので、アンカーとして働いていません。見出しのほうは#jestのように見出し名から作られるので安定しています。ブログも見出しにだけアンカーを置いています。
🤖 Generated with Claude Code