From 552b66a2ff4a372d565335c7ca86cc8b688f5ad7 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 19 Oct 2017 15:54:05 -0400 Subject: [PATCH] Add a helper for the `user-select` vendor prefix CSS --- app/assets/stylesheets/common/foundation/mixins.scss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/common/foundation/mixins.scss b/app/assets/stylesheets/common/foundation/mixins.scss index ed55c8f5227..60942e808ba 100644 --- a/app/assets/stylesheets/common/foundation/mixins.scss +++ b/app/assets/stylesheets/common/foundation/mixins.scss @@ -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); }