From bf73b4fc60aaabe47fa041539995e6dd60055541 Mon Sep 17 00:00:00 2001 From: Divyam Date: Tue, 3 Oct 2023 12:36:01 +0530 Subject: [PATCH] updated scrollbar and line numbers --- styles/Viewer.module.css | 2 ++ styles/globals.css | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/styles/Viewer.module.css b/styles/Viewer.module.css index 8271f7b..27ce673 100644 --- a/styles/Viewer.module.css +++ b/styles/Viewer.module.css @@ -21,6 +21,8 @@ padding-top: 3px; padding-left: 10px; padding-right: 10px; + user-select: none; + pointer-events: none; } .code { diff --git a/styles/globals.css b/styles/globals.css index 5450c21..1587911 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -24,3 +24,32 @@ a { text-decoration: none; } +* { + scrollbar-width: thin; + scrollbar-color: var(--bg-color) white; +} + +*::-webkit-scrollbar { + width: 12px; + height: 12px; + cursor: default; +} + +*::-webkit-scrollbar-track { + background: var(--bg-color); +} + +*::-webkit-scrollbar-button { + display: none; + background: var(--bg-color); +} + +*::-webkit-scrollbar-corner { + background: var(--bg-color); +} + +*::-webkit-scrollbar-thumb { + border: 3px solid black; + border-radius: 6px; + background: rgb(255, 255, 255); +} \ No newline at end of file