Skip to content

Commit

Permalink
Enhance scrollbar styling for Firefox and Zen Browser compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
adhirajcs committed Jan 12, 2025
1 parent f781022 commit 70a154e
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,23 @@
background-color: rgb(30 41 59);
}

/* Firefox */
body {
scrollbar-width: thin; /* Match width */
scrollbar-color: rgb(71 85 105) rgb(2 6 23); /* Handle color and track background */
}



/* For Firefox and Zen Browser */

* {
scrollbar-width: auto;
}

html, body {
scrollbar-width: auto;
scrollbar-color: rgb(51 65 85) rgb(2 6 23);
}

/* For Firefox compatibility on different OS */
@-moz-document url-prefix() {
* {
scrollbar-width: auto;
scrollbar-color: rgb(51 65 85) rgb(2 6 23);
}
}

0 comments on commit 70a154e

Please sign in to comment.