Skip to content

Commit

Permalink
Merge pull request #150 from aslams2020/StyleScrollbar
Browse files Browse the repository at this point in the history
✔️ Styled the Vertical Scrollbar of Website
  • Loading branch information
sanjay-kv authored Aug 7, 2024
2 parents 989f1be + 1fe334c commit 2ff6b4f
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,68 @@ body {
transition: background-color 0.3s ease, color 0.3s ease;
}

/* Styling for Vertical Scrollbar */

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

::-webkit-scrollbar-track {
background: #ebebeb;
border-radius: 6px;
}

::-webkit-scrollbar-thumb {
background-color: #383838;
border-radius: 6px;
border: 0.4px solid #eaeaeb;
transition: background 0.6s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
background-color: #545454;
}

::-webkit-scrollbar-button {
background-color: #f1f1f1;
background-repeat: no-repeat;
background-size: 120%;
}

::-webkit-scrollbar-button:decrement {
background-image: url("https://omjsblog.wordpress.com/wp-content/uploads/2024/05/rocket-up.png");
}

::-webkit-scrollbar-button:increment {
background-image: url("https://omjsblog.wordpress.com/wp-content/uploads/2024/05/rocket-down.png");
}

/* Styling for Dark Mode */

body.dark-mode ::-webkit-scrollbar {
width: 12px;
}

body.dark-mode::-webkit-scrollbar-track {
background: #646464;
border-radius: 6px;
}

body.dark-mode::-webkit-scrollbar-thumb {
background-color: #ffffff;
border-radius: 6px;
border: 0.4px solid #555;
transition: background 0.6s ease-in-out;
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
background-color: #edfbff;
}

body.dark-mode ::-webkit-scrollbar-button {
background-color: #444;
}

.container {
max-width: 1200px;
margin: 0 auto;
Expand Down

0 comments on commit 2ff6b4f

Please sign in to comment.