feat(chat): integrate marked.js with custom dark code blocks and clean typography

This commit is contained in:
2026-10-27 15:50:36 +03:00
parent 52db96a9dc
commit 4774c8f3e1
3 changed files with 154 additions and 7 deletions
+40
View File
@@ -18,3 +18,43 @@ body {
min-height: 100vh;
min-height: -webkit-fill-available;
}
/* Стилизация Markdown-контента ответов ассистента в стиле Gemini */
.chat-markdown-content h1,
.chat-markdown-content h2,
.chat-markdown-content h3,
.chat-markdown-content h4 {
font-weight: 700;
color: #0f172a;
margin-top: 0.85rem;
margin-bottom: 0.35rem;
font-size: 0.95rem;
}
.chat-markdown-content p {
margin-bottom: 0.45rem;
}
.chat-markdown-content p:last-child {
margin-bottom: 0;
}
.chat-markdown-content ul {
list-style-type: disc;
margin-left: 1.25rem;
margin-bottom: 0.5rem;
}
.chat-markdown-content ol {
list-style-type: decimal;
margin-left: 1.25rem;
margin-bottom: 0.5rem;
}
.chat-markdown-content li {
margin-bottom: 0.2rem;
}
.chat-markdown-content code:not([id^="code-block-"]) {
padding: 0.15rem 0.35rem;
border-radius: 0.375rem;
background-color: #f1f5f9;
color: #4338ca;
font-size: 0.825rem;
border: 1px solid #e2e8f0;
font-family: monospace;
}