# HG changeset patch # User dellsystem # Date 1347472087 14400 # Node ID 5f5f838c1e323225281d3e347fce6ea125c422e6 # Parent 0fd8fb20033ea41536e7a7d098b11805dead49db 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. diff --git a/static/css/code.less b/static/css/code.less --- 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 { diff --git a/static/css/mixins.less b/static/css/mixins.less --- 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; +}