From: Etienne Massip Date: Sat, 7 Jan 2012 19:05:13 +0000 (+0000) Subject: Prevent selection of line numbers when selecting file/code contents (#3382). X-Git-Tag: 1.4.0~749 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=48fecd6285130cfbcdf93f21f5ec4670031e3d77;p=redmine.git Prevent selection of line numbers when selecting file/code contents (#3382). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8541 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/stylesheets/scm.css b/public/stylesheets/scm.css index b32abff68..7b5481663 100644 --- a/public/stylesheets/scm.css +++ b/public/stylesheets/scm.css @@ -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; }