Last active
April 24, 2022 08:09
-
-
Save Codennnn/175875a0ba17aaffeb02a548c6a3f5bc to your computer and use it in GitHub Desktop.
浏览器滚动条样式
This file contains 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
/** ========== 滚动条样式 ========== */ | |
::-webkit-scrollbar { | |
width: 12px !important; | |
height: 12px !important; | |
background-color: transparent; | |
} | |
::-webkit-scrollbar-thumb { | |
background-color: rgba(116 120 141 / 0.22) !important; | |
background-clip: content-box; | |
border: 3px solid transparent !important; | |
border-radius: 6px !important; | |
&:hover { | |
background-color: rgba(116 120 141 / 0.3) !important; | |
} | |
} | |
::-webkit-scrollbar-track { | |
background-color: transparent !important; | |
&:hover { | |
background-color: rgb(243 244 246) !important; | |
} | |
} | |
/** ========== END ========== */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment