From 70ee22288631ef4521633adced3087e69b66d064 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Thu, 14 Apr 2022 19:47:50 +0100 Subject: [PATCH] custom scrollbar code --- base.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/base.css b/base.css index cae2759..23dabac 100644 --- a/base.css +++ b/base.css @@ -102,3 +102,24 @@ kbd { margin-left: 0.2em; margin-right: 0.2em; } + +/* scrollbar */ + +::-webkit-scrollbar { + width: 1em; +} + +::-webkit-scrollbar-track { + box-shadow: none; + border-radius: 0px; + background-color: var(--bg); +} + +::-webkit-scrollbar-thumb { + background: var(--fg-lc); + border-radius: 0px; +} + +::-webkit-scrollbar-thumb:hover { + background: var(--fg); +}