mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add a helper for the user-select vendor prefix CSS
This commit is contained in:
@@ -88,10 +88,14 @@
|
|||||||
|
|
||||||
// Unselectable (avoids unwanted selections with iPad, touch laptops, etc)
|
// 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 {
|
@mixin unselectable {
|
||||||
-webkit-user-select: none;
|
@include user-select(none);
|
||||||
-moz-user-select: none;
|
|
||||||
-ms-user-select: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user