Last active
September 14, 2017 15:10
-
-
Save nunoh/bd7fe06a2986b170a1c96131d0a6830f 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
// don't allow highlting on double click | |
*:not(.allow-select) { | |
-webkit-touch-callout: none; /* iOS Safari */ | |
-webkit-user-select: none; /* Safari */ | |
-khtml-user-select: none; /* Konqueror HTML */ | |
-moz-user-select: none; /* Firefox */ | |
-ms-user-select: none; /* Internet Explorer/Edge */ | |
user-select: none; /* Non-prefixed version, currently | |
supported by Chrome and Opera */ | |
} | |
// don't allow drag | |
* { | |
-webkit-user-drag: none; | |
user-drag: none; | |
} | |
// makes sure that no outline gets left after clicking buttons | |
*:focus { | |
outline: 0 !important; | |
} | |
// use proper pointer (hand) instead of default (arrow) | |
body { | |
cursor: default; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment