From 0b54a53b837f3fbae0b81bf19500d6d87ff7b68f Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Mon, 14 Dec 2015 10:32:12 -0500 Subject: [PATCH] Disable prompt number selection --- notebook/static/notebook/less/cell.less | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/notebook/static/notebook/less/cell.less b/notebook/static/notebook/less/cell.less index 393626caa..8a3db7b85 100644 --- a/notebook/static/notebook/less/cell.less +++ b/notebook/static/notebook/less/cell.less @@ -63,13 +63,26 @@ div.cell { .prompt { /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */ min-width: 14ex; + /* This padding is tuned to match the padding on the CodeMirror editor. */ padding: @code_padding; margin: 0px; font-family: @font-family-monospace; text-align: right; - /* This has to match that of the the CodeMirror class line-height below */ + + /* This has to match that of the the CodeMirror class line-height below */ line-height: @code_line_height; + + /* Don't highlight prompt number selection */ + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + + /* Use default cursor */ + cursor: default; } @media (max-width: @screen-xs-min) {