Skip to content

Commit

Permalink
fix(css): update user-select none (#4678)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocoten1992 authored and gkatsev committed Oct 30, 2017
1 parent cb638d0 commit 43ddc72
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/css/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,19 @@
}

// https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
// https://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css (version: January, 2017)
@mixin user-select($string: none) {
/* iOS Safari */
-webkit-touch-callout: $string;
/* Safari */
-webkit-user-select: $string;
/* Konqueror HTML */
-khtml-user-select: $string;
/* Firefox */
-moz-user-select: $string;
/* Internet Explorer/Edge */
-ms-user-select: $string;
/* Non-prefixed version, currently supported by Chrome and Opera */
user-select: $string;
}

Expand Down

0 comments on commit 43ddc72

Please sign in to comment.