From 1accf08133a2e3c447e5e85933b53eb87a2e3524 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 10 Jun 2024 09:17:54 -0300 Subject: [PATCH] Fixed scrollbar colors --- src/frontend/src/App.css | 39 +++---------------- .../profilePictureChooserComponent/index.tsx | 2 +- src/frontend/src/style/ag-theme-shadcn.css | 35 +++++++++++++++++ src/frontend/src/style/classes.css | 14 ++----- src/frontend/tailwind.config.js | 6 +-- 5 files changed, 48 insertions(+), 48 deletions(-) diff --git a/src/frontend/src/App.css b/src/frontend/src/App.css index 5a97d371e..5564ca084 100644 --- a/src/frontend/src/App.css +++ b/src/frontend/src/App.css @@ -90,31 +90,31 @@ body { } ::-webkit-scrollbar-track { - background-color: #f1f1f1 !important; + background-color: hsl(var(--muted)) !important; border-radius: 10px; } ::-webkit-scrollbar-thumb { - background-color: #ccc !important; + background-color: hsl(var(--border)) !important; border-radius: 999px !important; } ::-webkit-scrollbar-thumb:hover { - background-color: #bbb !important; + background-color: hsl(var(--ring)) !important; } .jv-indent::-webkit-scrollbar-track { - background-color: #f1f1f1 !important; + background-color: hsl(var(--muted)) !important; border-radius: 10px; } .jv-indent::-webkit-scrollbar-thumb { - background-color: #ccc !important; + background-color: hsl(var(--border)) !important; border-radius: 999px !important; } .jv-indent::-webkit-scrollbar-thumb:hover { - background-color: #bbb !important; + background-color: hsl(var(--ring)) !important; } .custom-hover { @@ -138,33 +138,6 @@ body { background-color: #bbb !important; } -.ag-body-horizontal-scroll-viewport, -.ag-body-vertical-scroll-viewport { - cursor: auto; -} - -.ag-body-horizontal-scroll-viewport::-webkit-scrollbar, -.ag-body-vertical-scroll-viewport::-webkit-scrollbar { - width: 8px; - height: 8px; -} - -.ag-body-horizontal-scroll-viewport::-webkit-scrollbar-track, -.ag-body-vertical-scroll-viewport::-webkit-scrollbar-track { - background-color: #f1f1f1; -} - -.ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb, -.ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb { - background-color: #ccc; - border-radius: 999px; -} - -.ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb:hover, -.ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb:hover { - background-color: #bbb; -} - /* This CSS is to not apply the border for the column having 'no-border' class */ .no-border.ag-cell:focus { border: none !important; diff --git a/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/index.tsx b/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/index.tsx index c02c6a560..2fc21bedd 100644 --- a/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/index.tsx @@ -47,7 +47,7 @@ export default function ProfilePictureChooserComponent({ {folder}
-
+
{profilePictures[folder].map((path, idx) => (