Skip to content

Commit

Permalink
Merge pull request #40 from chingu-voyages/modal-scrollbar
Browse files Browse the repository at this point in the history
Style the modal scrollbar
  • Loading branch information
andreimaier authored Oct 27, 2023
2 parents 0476c4a + f993158 commit 95acee7
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion Food-Recipe/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,36 @@ button:hover {
width: 95%;
max-height: 90%;
overflow-y: auto;

border-radius: 1em;
padding: 1em 2em 2em 2em;
border: 0.2em solid var(--clr-black);
background-color: var(--clr-white);
z-index: 2;
}

.modal::-webkit-scrollbar {
width: 10px;
}

.modal::-webkit-scrollbar-track {
background: transparent;
}

.modal::-webkit-scrollbar-thumb {
background: rgb(58, 180, 170);
background: linear-gradient(
180deg,
rgba(58, 180, 170, 0) 1%,
rgba(215, 215, 215, 1) 10%,
rgba(215, 215, 215, 1) 90%,
rgba(124, 69, 252, 0) 100%
);
border-radius: 20px;
}
.modal::-webkit-scrollbar-button {
background-color: transparent; /*Set the background color of the buttons. Give some padding to the top and bottom of the scrollbar. */
}

.modal h3 {
font-size: var(--fs-3);
margin-bottom: 1rem;
Expand Down Expand Up @@ -376,6 +398,9 @@ footer {
.search-section form {
grid-template-columns: 2fr 1fr;
}
.modal::-webkit-scrollbar-thumb {
background: #b1b1b1;
}
}

/* Tablet screen size */
Expand Down

0 comments on commit 95acee7

Please sign in to comment.