Skip to content

Commit bde0bd7

Browse files
authored
jquery: Make code-listing line numbers unselectable
Prevent accidental inclusion of the line numbers when copy-pasting from syntax highlighter code blocks via `user-select: none`. Also use `-webkit-user-select` for Safari (desktop & mobile) and `-ms-user-select` for IE. Closes gh-436 Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
1 parent 36e2a27 commit bde0bd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

themes/jquery/css/base.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3793,6 +3793,9 @@ pre .diff .hljs-comment {
37933793
.syntaxhighlighter table td.gutter .line {
37943794
text-align: right !important;
37953795
padding: 0 0.5em 0 1em !important;
3796+
-webkit-user-select: none;
3797+
-ms-user-select: none;
3798+
user-select: none;
37963799
}
37973800
.syntaxhighlighter table td.code .line {
37983801
padding: 0 0.5em !important;

0 commit comments

Comments
 (0)