From 54a8123b07d9536ce0c9a4b06b376f8cb8b79fb0 Mon Sep 17 00:00:00 2001 From: vuillaume Date: Sun, 13 Oct 2024 23:00:45 +0200 Subject: [PATCH] scroll bar for webkit --- styles/styles.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/styles/styles.css b/styles/styles.css index 1b4b619..817ddcd 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -46,4 +46,20 @@ img { display: flex; justify-content: center; align-items: center; +} + +::-webkit-scrollbar { + width: 0.5vw; + background-color: var(--primary-color); +} + +::-webkit-scrollbar-thumb { + background-color: var(--secondary-color); + border-radius: 6vh; + height: 16.5vh; + border: solid 1px var(--primary-color); +} + +::-webkit-scrollbar-thumb:hover { + background-color: #555; } \ No newline at end of file