Skip to content

Instantly share code, notes, and snippets.

@nunoh
Last active September 14, 2017 15:10
Show Gist options
  • Save nunoh/bd7fe06a2986b170a1c96131d0a6830f to your computer and use it in GitHub Desktop.
Save nunoh/bd7fe06a2986b170a1c96131d0a6830f to your computer and use it in GitHub Desktop.
// 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