Add a helper for the `user-select` vendor prefix CSS
This commit is contained in:
parent
ae1743c61f
commit
552b66a2ff
|
@ -88,10 +88,14 @@
|
|||
|
||||
// Unselectable (avoids unwanted selections with iPad, touch laptops, etc)
|
||||
|
||||
@mixin user-select($mode) {
|
||||
-webkit-user-select: $mode;
|
||||
-moz-user-select: $mode;
|
||||
-ms-user-select: $mode;
|
||||
}
|
||||
|
||||
@mixin unselectable {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
@include user-select(none);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue