Skip to content

Instantly share code, notes, and snippets.

@proteye
Created May 30, 2019 08:23
Show Gist options
  • Save proteye/f85bb38190ffc6d69a982f76fc8823f8 to your computer and use it in GitHub Desktop.
Save proteye/f85bb38190ffc6d69a982f76fc8823f8 to your computer and use it in GitHub Desktop.
Always display the scrollbar - both on mobile devices and macOS
#customScroll::-webkit-scrollbar { width: 4px; height: 4px;}
#customScroll::-webkit-scrollbar-track { background-color: #999;}
#customScroll::-webkit-scrollbar-track-piece { background-color: #ffffff;}
#customScroll::-webkit-scrollbar-thumb { height: 50px; background-color: #666; border-radius: 3px;}
#customScroll::-webkit-scrollbar-corner { background-color: #999;}
#customScroll::-webkit-resizer { background-color: #666;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment