Skip to content

Commit

Permalink
Added Custome Scrolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Shariq2003 committed Oct 19, 2024
1 parent 7a616e9 commit bb9e459
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/component/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function Navbar(props) {
onChange={props.toggleMode}
/>
<label htmlFor="darkmode-toggle">
<FaRegSun
<FaSun
// className="sun"
style={{
color: props.mode === "dark" ? "white" : "orange", // Change color for dark mode
Expand Down
41 changes: 41 additions & 0 deletions client/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,45 @@ html.dark-mode {

.modal-content button:hover {
background-color: #0056b3;
}

::-webkit-scrollbar {
width: 12px;
}

::-webkit-scrollbar-track {
background: #ffffff;
}

::-webkit-scrollbar-thumb {
background-color: #000000;
border-radius: 10px;
border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
background: #a2a2a2;
}

/* Dark Theme Scrollbar */
body.dark-mode ::-webkit-scrollbar {
width: 12px;
}

body.dark-mode ::-webkit-scrollbar-track {
background: #000000;
/* Black track */
}

body.dark-mode ::-webkit-scrollbar-thumb {
background-color: #ffffff;
/* White thumb */
border-radius: 10px;
border: 3px solid #1a1a1a;
/* Dark border for the thumb */
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
background: #e5e5e5;
/* Lighter color on hover */
}

0 comments on commit bb9e459

Please sign in to comment.