TheDJ has uploaded a new change for review. https://gerrit.wikimedia.org/r/282681
Change subject: Prevent selecting line numbers in syntaxhighlight ...................................................................... Prevent selecting line numbers in syntaxhighlight This works most of the time in modern browsers. Bug: T131227 Change-Id: Iaad1568f55556c8dd0f465b555ce868498d71828 --- M modules/pygments.wrapper.css 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SyntaxHighlight_GeSHi refs/changes/81/282681/1 diff --git a/modules/pygments.wrapper.css b/modules/pygments.wrapper.css index f57a815..5a55bc0 100644 --- a/modules/pygments.wrapper.css +++ b/modules/pygments.wrapper.css @@ -38,6 +38,13 @@ display: block; } +/* Make line numbers non copyable */ +.mw-highlight .lineno { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} + /* To interact better with the 'display: block' above, doesn't affect other uses */ /* @noflip */ .mw-highlight.mw-content-ltr .lineno { -- To view, visit https://gerrit.wikimedia.org/r/282681 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iaad1568f55556c8dd0f465b555ce868498d71828 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SyntaxHighlight_GeSHi Gerrit-Branch: master Gerrit-Owner: TheDJ <hartman.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits