From cca70412c6b68acf6ae93db3da604fc526d21b5d Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 7 Aug 2024 01:18:49 +0100 Subject: [PATCH] Add chrome scrollbar style --- static/css/style.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/static/css/style.css b/static/css/style.css index a6ec45b..4be41c7 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -396,6 +396,26 @@ pre { overflow-x: auto; } +.highlight pre { + background: none !important; +} + +/* Style for WebKit browsers (Chrome, Safari, etc.) */ +*::-webkit-scrollbar { + height: 5px; + border-radius: 6px; + background: #1f1f28; +} + +*::-webkit-scrollbar-thumb { + border-radius: 6px; + background: #585653; +} + +*::-webkit-scrollbar-thumb:hover { + background: #454445; /* Background color on hover */ +} + .codeblock { position: relative; background-color: var(--codeblock-bg-color);