From 99bdf332365528ed13733fcccdb97778dadcc8d2 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 27 Mar 2025 15:41:24 +0200 Subject: [PATCH] style(next): fix scrollbar appearance in code blocks --- src/public/stylesheets/theme-next/notes/text.css | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/public/stylesheets/theme-next/notes/text.css b/src/public/stylesheets/theme-next/notes/text.css index cf8aa4760..ac712c251 100644 --- a/src/public/stylesheets/theme-next/notes/text.css +++ b/src/public/stylesheets/theme-next/notes/text.css @@ -42,14 +42,9 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child { overflow: auto; } -.ck-content pre code::-webkit-scrollbar { - height: 6px; -} - -.ck-content pre code::-webkit-scrollbar-thumb { - height: 4px; - border: none !important; - background: gray !important; +.ck-content pre code { + --scrollbar-thumb-color: gray; + --scrollbar-thumb-color-hover: gray; } .ck-content pre code::-webkit-scrollbar-track,