From fd0ea26b0a4031b0059bc908c23c0130679c8faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ant=C3=B4nio=20Ribeiro=20de=20Toledo?= Date: Sat, 5 Sep 2020 09:11:02 -0300 Subject: [PATCH] Minimal scrollbar + README.md update (#34) * Minimal scrollbar * Removes (now) unnecessary note about scrollbar --- README.md | 5 ----- userContent.css | 14 ++++++++------ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5f87745..dd326aa 100644 --- a/README.md +++ b/README.md @@ -111,11 +111,6 @@ 3. Go to `System Settings > KWin Scripts > Enable Force Blur`. 4. Change its settings. If there's no settings/settings icon, Logout. Re-login. -### Where is the scrollbar? - -1. You can adjust the value of `scrollbar-width` in `userContent.css`. -2. Restart Firefox. - ### How can I set or change the colors for the Default color mode? 1. The default mode are from Firefox and it uses the system colors. Although I only tried and tested it with `GTK3`, it should work with any platforms or environment as long as Firefox can detect your system colors. diff --git a/userContent.css b/userContent.css index e46a12d..97ff294 100644 --- a/userContent.css +++ b/userContent.css @@ -8,14 +8,16 @@ } } -/* Hide scrollbar */ -:root{ - scrollbar-width: none !important; +/* Sets up minimal scrollbar */ +:root { + scrollbar-width: thin !important; + scrollbar-color: rgb(161, 161, 161) transparent !important; } -/* Hide incognito scrollbar */ +/* Sets up minimal incognito scrollbar */ @-moz-document url(about:privatebrowsing) { :root{ - scrollbar-width: none !important; + scrollbar-width: thin !important; + scrollbar-color: rgb(161, 161, 161) transparent !important; } -} +}