From fba4f265754008bac186d60c8cf9dac09aaf545c Mon Sep 17 00:00:00 2001 From: sky121113 Date: Mon, 9 Mar 2026 09:59:34 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=87=AA=E5=AE=9A=E7=BE=A9=E5=85=A8?= =?UTF-8?q?=E5=9F=9F=E8=88=87=E6=B7=B1=E8=89=B2=E6=A8=A1=E5=BC=8F=E6=BB=BE?= =?UTF-8?q?=E5=8B=95=E6=A2=9D=E6=A8=A3=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/css/app.css | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) 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;