From c5c476e3a44507207adc7789f3c65581b97aca92 Mon Sep 17 00:00:00 2001 From: FireIsGood Date: Thu, 9 May 2024 19:43:01 -0700 Subject: [PATCH 1/2] fix: dark mode scrollbar colors Adds the color-scheme correctly --- themes/coo/source/css/style.tailwindcss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/coo/source/css/style.tailwindcss b/themes/coo/source/css/style.tailwindcss index b92f6a3..054c71d 100644 --- a/themes/coo/source/css/style.tailwindcss +++ b/themes/coo/source/css/style.tailwindcss @@ -28,6 +28,11 @@ html.scrollbar { scroll-padding-top: 20px; } +/***Scrollbars***/ +:root.dark { + color-scheme: dark; +} + .max-container { max-width: 1320px; @apply mx-auto p-3; From c499186febcb969b67a5e05ad408715f2499707b Mon Sep 17 00:00:00 2001 From: FireIsGood Date: Thu, 9 May 2024 19:43:27 -0700 Subject: [PATCH 2/2] feat: style scrollbars Styles scrollbars for users with mouses who are on webkit browsers --- themes/coo/source/css/style.tailwindcss | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/themes/coo/source/css/style.tailwindcss b/themes/coo/source/css/style.tailwindcss index 054c71d..69e4ec9 100644 --- a/themes/coo/source/css/style.tailwindcss +++ b/themes/coo/source/css/style.tailwindcss @@ -33,6 +33,23 @@ html.scrollbar { color-scheme: dark; } +/* Restrict changes to mouse users */ +@media (pointer: fine) { + ::-webkit-scrollbar { + @apply bg-slate-200 w-2 h-2 rounded-lg + } + ::-webkit-scrollbar-thumb { + @apply bg-slate-300 rounded-lg + } + + :root.dark ::-webkit-scrollbar { + @apply bg-slate-700 + } + :root.dark ::-webkit-scrollbar-thumb { + @apply bg-slate-500 + } +} + .max-container { max-width: 1320px; @apply mx-auto p-3;