fix: isoler le style du code inline pour ne pas affecter les blocs pre
.content code dans les thèmes ciblait aussi le <code> dans <pre>, écrasant les couleurs syntect par héritage et ajoutant une bordure indésirable. Changé en .content :not(pre) > code + reset explicite dans style.css (border: none, color: inherit). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ body { background: #f1f5f9; }
|
||||
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 { color: #0f172a; }
|
||||
.content p { color: #1e293b; }
|
||||
.content ul li, .content ol li { color: #1e293b; }
|
||||
.content code { background: #f1f5f9; color: #4f46e5; border: 1px solid #e2e8f0; }
|
||||
.content :not(pre) > code { background: #f1f5f9; color: #4f46e5; border: 1px solid #e2e8f0; }
|
||||
.content pre:not(.syntax-highlighting) { background: #0f172a; border: 1px solid #1e293b; border-radius: 10px; }
|
||||
.content .syntax-highlighting { border: 1px solid #1e293b; border-radius: 10px; }
|
||||
.content pre:not(.syntax-highlighting) code { background: none; color: #e2e8f0; }
|
||||
|
||||
Reference in New Issue
Block a user