changeset 111:5f5f838c1e32

Prevent selection of line numbers in snippet view So that when you highlight the snippet and copy + paste, you don't get the line numbers as well.
author dellsystem <ilostwaldo@gmail.com>
date Wed, 12 Sep 2012 13:48:07 -0400
parents 0fd8fb20033e
children 4d5f23285bc2
files static/css/code.less static/css/mixins.less
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/static/css/code.less
+++ b/static/css/code.less
@@ -3,6 +3,7 @@
     text-align: right;
     font-weight: bold;
     padding-right: 10px;
+    .disable-select;
 }
 
 .highlight {
--- a/static/css/mixins.less
+++ b/static/css/mixins.less
@@ -97,3 +97,12 @@
 .hidden {
     display: none;
 }
+
+.disable-select {
+    -webkit-touch-callout: noone;
+    -webkit-user-select: none;
+    -khtml-user-select: none;
+    -moz-user-select: none;
+    -ms-user-select: none;
+    user-select: none;
+}