From e71bbc97a503da701883f3b4e65108cb8968b7d1 Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Mon, 3 Oct 2022 12:07:50 +0200 Subject: [PATCH] Scrollbar --- index.html | 3 ++- scrollbar.css | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 scrollbar.css diff --git a/index.html b/index.html index dd1f417..bd5b6f0 100644 --- a/index.html +++ b/index.html @@ -37,6 +37,7 @@ + @@ -156,7 +157,7 @@
-
+
diff --git a/scrollbar.css b/scrollbar.css new file mode 100644 index 0000000..830e292 --- /dev/null +++ b/scrollbar.css @@ -0,0 +1,21 @@ +.scrollbar { + scrollbar-color: #777 #0000; +} + +.scrollbar *::-webkit-scrollbar { + height: 6px; + width: 6px; + background-color: #0000; +} + +/* Add a thumb */ +.scrollbar *::-webkit-scrollbar-thumb { + border-radius: 3px; + height: 6px; + width: 6px; + background: #777; +} + +.scrollbar *::-webkit-scrollbar-thumb:hover { + background: #555; +}