Skip to content

Commit 46e11b5

Browse files
committed
Code-colors: Fix text selection in popup. See #95
1 parent f39cea7 commit 46e11b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

github-code-colors.user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name GitHub Code Colors
3-
// @version 2.0.1
3+
// @version 2.0.2
44
// @description A userscript that adds a color swatch next to the code color definition
55
// @license MIT
66
// @author Rob Garrison
@@ -27,7 +27,8 @@
2727
background-image:none; cursor:pointer; }
2828
.ghcc-popup { position:absolute; background:#333; color:#fff;
2929
min-width:350px; top:100%; left:0px; padding:10px; z-index:100;
30-
white-space:pre; cursor:text; text-align:left; }
30+
white-space:pre; cursor:text; text-align:left; -webkit-user-select:text;
31+
-moz-user-select:text; -ms-user-select:text; user-select:text; }
3132
.markdown-body .highlight pre, .markdown-body pre {
3233
overflow:visible !important; }`);
3334

0 commit comments

Comments
 (0)