Skip to content

Commit 3559b2b

Browse files
committed
base.css: Unselectable code-listing line numbers
Prevent accidental inclusion of the line numbers, when copy-pasting from syntaxhighlighter code blocks. Also use -webkit-user-select for Safari (desktop & mobile). Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
1 parent 36e2a27 commit 3559b2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

themes/jquery/css/base.css

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

0 commit comments

Comments
 (0)