From dfbb16521c9d10cd491429874660bfdde3e19e1d Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 23 Jun 2017 07:28:04 +0500 Subject: 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 --- webapp/sass/utils/_functions.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'webapp/sass/utils/_functions.scss') 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; +} -- cgit v1.2.3-1-g7c22