Add custom scrollbar styles for code blocks

This commit is contained in:
interlope committed 2026-05-29 18:12:31 +02:00
1 parent c0ea6c53e5
commit 7fa4d7a51e
1 file changed
+19
+19
View File
@@ -393,6 +393,25 @@ pre code {
border: none;
}
/* Always-visible scrollbar on code blocks */
pre {
scrollbar-width: thin; /* Firefox */
scrollbar-color: var(--border-color) transparent;
}
pre::-webkit-scrollbar {
height: 6px;
}
pre::-webkit-scrollbar-track {
background: transparent;
}
pre::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
}
pre::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* ========================================
TABLES
======================================== */