diff --git a/css/style.css b/css/style.css index 0bcd41f..ab57c64 100644 --- a/css/style.css +++ b/css/style.css @@ -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 ======================================== */