Last active
January 28, 2021 17:49
-
-
Save amattn/40bf2391dba1f195cf73ff7ee0adb9fe to your computer and use it in GitHub Desktop.
input.css to get custom scroll bar colors. see https://amattn.com/p/brief_history_of_and_advanced_tricks_with_tailwind_css.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "tailwindcss/base"; | |
@import "tailwindcss/components"; | |
@import "tailwindcss/utilities"; | |
/* Works on Firefox */ | |
pre { | |
scrollbar-color: #6B7280 #1f2937; | |
} | |
/* Works on Chrome, Edge, and Safari */ | |
pre::-webkit-scrollbar { | |
width: 12px; | |
} | |
pre::-webkit-scrollbar-track { | |
background: #1f2937; | |
} | |
pre::-webkit-scrollbar-thumb { | |
background-color: #6B7280; | |
border-radius: 20px; | |
border: 3px solid #1f2937; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment