Mercurial > agora-palash
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 Tue Sep 11 21:09:04 2012 -0400 +++ b/static/css/code.less Wed Sep 12 13:48:07 2012 -0400 @@ -3,6 +3,7 @@ text-align: right; font-weight: bold; padding-right: 10px; + .disable-select; } .highlight {
--- a/static/css/mixins.less Tue Sep 11 21:09:04 2012 -0400 +++ b/static/css/mixins.less Wed Sep 12 13:48:07 2012 -0400 @@ -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; +}