mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
Add a helper for the user-select
vendor prefix CSS
This commit is contained in:
parent
ae1743c61f
commit
552b66a2ff
1 changed files with 7 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue