fix: Improve code/pre readability in both themes
- Dark Mode: Use soft light gray (#d4d4d4) instead of bright blue - Light Mode: Use dark gray (#404040) for good contrast - Add subtle border for better code block definition - Remove hacky bright blue color that was unreadable in light mode
This commit is contained in:
parent
2a9941f35f
commit
559eca4d61
1 changed files with 25 additions and 3 deletions
|
|
@ -27,6 +27,9 @@
|
|||
--shadow: 0 30px 60px rgba(0,0,0,.5);
|
||||
--shadow-sm: 0 2px 20px rgba(0,0,0,.3);
|
||||
|
||||
/* Code/Pre Text - Zartes helles Grau für Dark Mode */
|
||||
--code-text: #d4d4d4;
|
||||
|
||||
/* Subtle Radius */
|
||||
--radius: 20px;
|
||||
--radius-sm: 12px;
|
||||
|
|
@ -64,6 +67,9 @@
|
|||
--border-accent: rgba(239,68,68,.3);
|
||||
--shadow: 0 30px 60px rgba(0,0,0,.1);
|
||||
--shadow-sm: 0 2px 20px rgba(0,0,0,.05);
|
||||
|
||||
/* Code/Pre Text - Dunkles Grau für Light Mode */
|
||||
--code-text: #404040;
|
||||
}
|
||||
|
||||
/* ── Reset & Base ─────────────────────────────────────────────────────────── */
|
||||
|
|
@ -621,8 +627,24 @@ h4 { font-size: 16px; }
|
|||
.text-muted { color: var(--text-muted) !important; }
|
||||
.text-secondary { color: var(--text-secondary) !important; }
|
||||
.bg-light { background: var(--bg-elevated) !important; }
|
||||
pre, code { background: var(--bg-elevated); color: #64d2ff; border-radius: 8px; padding: .2em .5em; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
|
||||
pre { padding: 1.25rem; overflow-x: auto; line-height: 1.6; }
|
||||
|
||||
/* Code & Pre - Lesbar in beiden Modi */
|
||||
pre, code {
|
||||
background: var(--bg-elevated);
|
||||
color: var(--code-text);
|
||||
border-radius: 8px;
|
||||
padding: .2em .5em;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 13px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 1.25rem;
|
||||
overflow-x: auto;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
hr { border-color: var(--border); opacity: 1; }
|
||||
|
||||
.font-monospace { font-family: 'JetBrains Mono', monospace !important; font-size: 13px !important; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue