diff --git a/resources/css/app.css b/resources/css/app.css index 4e70dc7..f4a17a9 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -2,6 +2,47 @@ @tailwind components; @tailwind utilities; +@layer base { + /* Custom Scrollbar */ + ::-webkit-scrollbar { + width: 8px; + height: 8px; + } + + ::-webkit-scrollbar-track { + background: transparent; + } + + ::-webkit-scrollbar-thumb { + background-color: theme('colors.gray.300'); + border-radius: 20px; + border: 2px solid transparent; + background-clip: content-box; + } + + .dark ::-webkit-scrollbar-thumb { + background-color: theme('colors.gray.600'); + } + + ::-webkit-scrollbar-thumb:hover { + background-color: theme('colors.gray.400'); + } + + .dark ::-webkit-scrollbar-thumb:hover { + background-color: theme('colors.gray.500'); + } + + /* Firefox */ + * { + scrollbar-width: thin; + scrollbar-color: theme('colors.gray.300') transparent; + } + + .dark * { + scrollbar-color: theme('colors.gray.600') transparent; + } +} + @layer utilities { [x-cloak] { display: none !important;