Noto フォント導入と GitHub 風スタイルへの調整#31
Merged
Merged
Conversation
- Google Fonts から Noto Sans JP / Noto Sans Mono / Noto Color Emoji を読み込み、 本文・見出し・コードに適用。絵文字はどの環境でもカラー表示に - 表を GitHub 風に(1px ボーダー+外周復元、偶数行ストライプ、横スクロール対応) - h1/h2 の下線、インラインコードの角丸背景、引用のグレー文字化など GitHub 寄せ (ページ背景色はテーマのまま) - static/css/custom.css を assets/css/custom.css に統合。テーマの customCSS は assets 側しか読み込まないため、callout スタイルが本番で適用されていなかった 問題の修正を兼ねる - ダークモード対応: テーマが body.colorscheme-* 配下で table/code/blockquote を 再定義しているため、specificity を揃えて上書き。callout のボーダー色が ダークモードでテーマに負ける問題も修正 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
テーマの p { margin: 2rem 0 } が callout 先頭のタイトルに残り、
上 28px・下 8px と偏っていた。GitHub と同様に先頭要素の上マージンを
打ち消し、パディング(0.8rem)で上下対称にした。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <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.
変更内容
フォント(layouts/partials/head/extensions.html)
GitHub 風スタイル(assets/css/custom.css)※ページ背景色はテーマのまま
#d0d7de/#444c56)バグ修正
static/css/custom.cssにあったが、テーマのcustomCSSはassets/側しか読まないため本番 CSS に含まれていなかった。assets/css/custom.cssに統合して解消(feat: GitHub スタイルの Markdown アラート(callout)を実装 #30 のフォローアップ)body.colorscheme-dark blockquote(0,1,2) に specificity で負けていたため、セレクタを調整p上マージンが残り上 28px・下 8px だったのを、先頭マージンを打ち消してパディング 1.8rem で上下対称にレビューポイント
body.colorscheme-*配下で table / code / blockquote を再定義しているため、競合する宣言はbody:is(.colorscheme-light, .colorscheme-dark, .colorscheme-auto)で specificity を揃えて上書きしています🤖 Generated with Claude Code