summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-10-25 18:19:27 +0900
committerGitHub <noreply@github.com>2020-10-25 18:19:27 +0900
commitbb6ee31232e06f366f1b06f74e67b9a40635ad21 (patch)
treed0ecb6d31de800e7cddd131b5e01dca50f291a9f
parente78df3a5fca0623af749a815be2a30725a3a1996 (diff)
parent38a6838119744e3ce147d244c46ccd7eadec4403 (diff)
downloadsphinx-git-bb6ee31232e06f366f1b06f74e67b9a40635ad21.tar.gz
Merge pull request #8320 from mgeier/linenos-user-select
basic CSS: disable "user-select" on span.linenos
-rw-r--r--CHANGES1
-rw-r--r--sphinx/themes/basic/static/basic.css_t1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 4031d2bcc..718579663 100644
--- a/CHANGES
+++ b/CHANGES
@@ -60,6 +60,7 @@ Bugs fixed
* #8268: linkcheck: Report HTTP errors when ``linkcheck_anchors`` is ``True``
* #8245: linkcheck: take source directory into account for local files
* #6914: figure numbers are unexpectedly assigned to uncaptioned items
+* #8320: make "inline" line numbers un-selectable
Testing
--------
diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t
index 0a71a7a91..38b9fb553 100644
--- a/sphinx/themes/basic/static/basic.css_t
+++ b/sphinx/themes/basic/static/basic.css_t
@@ -764,6 +764,7 @@ div.code-block-caption code {
}
table.highlighttable td.linenos,
+span.linenos,
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
user-select: none;
}