Skip to content

Commit

Permalink
added scroll bar (#151)
Browse files Browse the repository at this point in the history
* added hover card effect

* aligned footer to center

* modified tablet view of the footer

* add scroollToTop button

---------

Co-authored-by: Shubhadip Bhowmik <[email protected]>

### Add Issue No
<!-- Add Issue No Ex.#1234 -->

### Description
<!-- ✍️ Summarize your changes in one or two sentences -->

### Motivation
<!-- ❓ Why are you making these changes and how do they help readers? -->

### Additional details
<!-- 🔗 Link to Screenshot, Changes or other for more context -->

<!-- 👷‍♀️ After submitting, go to the "Checks" tab of your PR for the build status -->
  • Loading branch information
Ketanop321 authored Jun 4, 2024
1 parent 4174db0 commit de04098
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,36 @@ h1.center {
.form-container a:hover {
text-decoration: underline;
}

/* Basic styles for the body */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
height: 200vh; /* Set height to make scrollbar visible */
/* Additional styling as needed */
}

/* Custom scrollbar styles for the entire page */
html, body {
scrollbar-width: thin; /* For Firefox */
scrollbar-color: linear-gradient(180deg, #ff7f50, #ff6347) #f1f1f1; /* For Firefox */
}

/* Webkit-based browsers (Chrome, Safari) */
html::-webkit-scrollbar, body::-webkit-scrollbar {
width: 12px; /* Width of the entire scrollbar */
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
background: #f1f1f1; /* Color of the track */
}

html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #ff7f50, #ff6347); /* Linear gradient color for the thumb */
border-radius: 6px; /* Rounded corners for the thumb */
}

html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #ff6347, #ff4500); /* Darker gradient on hover */
}

0 comments on commit de04098

Please sign in to comment.