]> source.dussan.org Git - redmine.git/commitdiff
Prevent selection of line numbers when selecting file/code contents (#3382).
authorEtienne Massip <etienne.massip@gmail.com>
Sat, 7 Jan 2012 19:05:13 +0000 (19:05 +0000)
committerEtienne Massip <etienne.massip@gmail.com>
Sat, 7 Jan 2012 19:05:13 +0000 (19:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8541 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/stylesheets/scm.css

index b32abff6845698e4654b393719ec11960d82ca50..7b5481663f39d874567f1f0621fa3aa8c6074d63 100644 (file)
@@ -44,6 +44,11 @@ table.filecontent th.line-num {
     width: 2%;
     padding-right: 3px;
     color: #999;
+       user-select: none;
+       -moz-user-select: none;
+       -o-user-select: none;
+       -ms-user-select: none;
+       -webkit-user-select: none;
 }
 table.filecontent th.line-num a {
     text-decoration: none;
@@ -94,7 +99,14 @@ div.action_A { background: #bfb }
 
 /************* CodeRay styles *************/
 .syntaxhl div {display: inline;}
-.syntaxhl .line-numbers { padding: 2px 4px 2px 4px; background-color: #eee; margin:0px 5px 0px 0px; }
+.syntaxhl .line-numbers {
+       padding: 2px 4px 2px 4px; background-color: #eee; margin:0px 5px 0px 0px;
+       user-select: none;
+       -moz-user-select: none;
+       -o-user-select: none;
+       -ms-user-select: none;
+       -webkit-user-select: none;
+}
 .syntaxhl .code pre { overflow: auto }
 .syntaxhl .debug { color:white ! important; background:blue ! important; }