Skip to content

Commit

Permalink
Merge pull request #210 from SrijaVuppala295/scroll
Browse files Browse the repository at this point in the history
Added UI for the Scrollbar for all pages !!!
  • Loading branch information
Ojas-Arora authored Jan 30, 2025
2 parents e94aede + 7d8b257 commit 5f41768
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,49 @@ body {
background-color: var(--body-bg);
color: #333;
}

/* Style the scrollbar container */
::-webkit-scrollbar {
width: 12px; /* Width of the scrollbar */
height: 12px; /* Height for horizontal scrollbar */
}

/* Style the scrollbar track (background of the scrollbar) */
::-webkit-scrollbar-track {
background: #2d2d2d; /* Dark background */
border-radius: 10px;
}

/* Style the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #f7e8b6, #f0d48c); /* Gradient using different yellow shades */
border-radius: 10px; /* Rounded corners */
border: 3px solid #1a1a1a; /* Border around the thumb */
}

/* Hover effect for the thumb */
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #f0d48c, #e6c85b); /* Lighter gradient on hover */
}

/* Optional: Style for the scrollbar corner */
::-webkit-scrollbar-corner {
background: #2d2d2d; /* Dark background for corner */
}

/* Style for horizontal scrollbar */
::-webkit-scrollbar-horizontal {
height: 12px; /* Height for horizontal scrollbar */
}

::-webkit-scrollbar-thumb-horizontal {
background: linear-gradient(90deg, #f7e8b6, #f0d48c); /* Horizontal gradient */
border-radius: 10px;
}

::-webkit-scrollbar-thumb-horizontal:hover {
background: linear-gradient(90deg, #f0d48c, #e6c85b);
}

:root {
--body-bg: antiquewhite;
--primary-color: #fff;
Expand Down

0 comments on commit 5f41768

Please sign in to comment.