diff options
author | Etienne Massip <etienne.massip@gmail.com> | 2012-01-07 19:05:13 +0000 |
---|---|---|
committer | Etienne Massip <etienne.massip@gmail.com> | 2012-01-07 19:05:13 +0000 |
commit | 48fecd6285130cfbcdf93f21f5ec4670031e3d77 (patch) | |
tree | a12d0bb9e4dabe8b86a3dbd5d7ebe3f561c504b8 /public | |
parent | 59789c799761bfd928d0a4d7d1d1e492951fe55a (diff) | |
download | redmine-48fecd6285130cfbcdf93f21f5ec4670031e3d77.tar.gz redmine-48fecd6285130cfbcdf93f21f5ec4670031e3d77.zip |
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
Diffstat (limited to 'public')
-rw-r--r-- | public/stylesheets/scm.css | 14 |
1 files changed, 13 insertions, 1 deletions
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; } |