summaryrefslogtreecommitdiffstats
path: root/webapp/sass/utils/_functions.scss
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2017-06-23 07:28:04 +0500
committerJoram Wilander <jwawilander@gmail.com>2017-06-22 22:28:04 -0400
commitdfbb16521c9d10cd491429874660bfdde3e19e1d (patch)
treec83559476382e2d2b600f49a2575c2f8896552fe /webapp/sass/utils/_functions.scss
parentd8cd38f4831ea2cd6a42e1d8aa68c0b24c3a4bd1 (diff)
downloadchat-dfbb16521c9d10cd491429874660bfdde3e19e1d.tar.gz
chat-dfbb16521c9d10cd491429874660bfdde3e19e1d.tar.bz2
chat-dfbb16521c9d10cd491429874660bfdde3e19e1d.zip
Minor bug and UI fixes (#6729)
* PLT-6797 - Code block language tag not selectable * PLT-6771 - Aligning search box with RHS * PLT-6827 - Fixing link color in error bar * PLT-6241 - Adding edge detection
Diffstat (limited to 'webapp/sass/utils/_functions.scss')
-rw-r--r--webapp/sass/utils/_functions.scss10
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/sass/utils/_functions.scss b/webapp/sass/utils/_functions.scss
index f399060cc..26e3c6147 100644
--- a/webapp/sass/utils/_functions.scss
+++ b/webapp/sass/utils/_functions.scss
@@ -21,3 +21,13 @@
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
}
+
+@mixin unselectable {
+ -webkit-user-select: none; /* Chrome/Safari */
+ -moz-user-select: none; /* Firefox */
+ -ms-user-select: none; /* IE10+ */
+
+ /* Rules below not implemented in browsers yet */
+ -o-user-select: none;
+ user-select: none;
+}