Repository navigation
mermaid の図はダークでも紙ごと置く (#469) - #477
Merged
Merged
Conversation
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.
close #469
ダークで flowchart だけ線と矢印を塗り直していたのをやめ、全部の図を白い紙の上に置く形にした(技術ブログ #3271 と同じ)。
!important付きの 5 ルール(セレクタ 12 本)が消えて、規則は 1 つになる。なぜ種別で分けられないか
「箱が紙を持っているか」は図の種別では決まらない。
look: handDrawnの flowchart(forPerformanceTestに 4 枚)はハッチングで地を描くので箱が透ける。明るい箱を前提に焼き付いた黒い文字が、暗い地の上にそのまま残る。塗り直しの対象は線と矢印だけなので、この破れ方には手が届かない。紙を敷けば、線・箱・文字・札のどれにも触らずに済む。記事に貼った透過画像と同じ扱い(このサイトの #434 と同じ手)。
影響範囲(
.vitepress/mermaid/*.svg85 枚).cluster要素なし.cluster要素あり紙とページの地(
#1b1b1f)の差は 17.17。紙の上の線と文字は明るい側の見え方そのままになる。角丸は 8px から 4px に下げた。紙は「箱」ではなく貼った画像なので、小さな部品の段(技術ブログの角丸 3 段のうち、サムネイル・画像と同じ値)。
確認
ダークにして見る。塗り直しをやめた 29 枚が出るのは以下。
documents/forPerformanceTest/performance_test.html… handDrawn の 3 枚。before はノードの文字が暗い地に沈んでいたdocuments/forAsync/async_guidelines.html、documents/forWebAPI/web_api_guidelines.html、documents/forIF/if_guidelines.html… 素の flowchartdocuments/forDB/postgresql_guidelines.htmlなどの sequence 図(もともと紙).mermaid(キャッシュの無い図のクライアント描画)は mermaid.js 自身がテーマを切り替えるので触っていない。🤖 Generated with Claude Code