summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-04-20 01:10:15 +0900
committerGitHub <noreply@github.com>2021-04-20 01:10:15 +0900
commitff02add8ef59126f98ccab5148d71805e743a0d9 (patch)
tree880d0fa7424136fc5b69f1c125c35006624ddad0
parent9105635389e917804897e743fa639cbcbb394453 (diff)
parent75e8862f73a09a269ef3a7ec7e06764a03ab6078 (diff)
downloadsphinx-git-ff02add8ef59126f98ccab5148d71805e743a0d9.tar.gz
Merge pull request #9101 from V0lantis/fix/fix_user_selection
Fix `user-selection` in Safari and Internet Explorer
-rw-r--r--doc/usage/extensions/autodoc.rst2
-rw-r--r--sphinx/themes/basic/static/basic.css_t6
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/usage/extensions/autodoc.rst b/doc/usage/extensions/autodoc.rst
index 1bfa8086c..da0ff7c99 100644
--- a/doc/usage/extensions/autodoc.rst
+++ b/doc/usage/extensions/autodoc.rst
@@ -563,7 +563,7 @@ There are also config values that you can set:
.. confval:: autodoc_typehints
- This value controls how to represents typehints. The setting takes the
+ This value controls how to represent typehints. The setting takes the
following values:
* ``'signature'`` -- Show typehints as its signature (default)
diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t
index 25ab688e4..db43499ad 100644
--- a/sphinx/themes/basic/static/basic.css_t
+++ b/sphinx/themes/basic/static/basic.css_t
@@ -820,7 +820,11 @@ div.code-block-caption code {
table.highlighttable td.linenos,
span.linenos,
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
- user-select: none;
+ user-select: none;
+ -webkit-user-select: text; /* Safari fallback only */
+ -webkit-user-select: none; /* Chrome/Safari */
+ -moz-user-select: none; /* Firefox */
+ -ms-user-select: none; /* IE10+ */
}
div.code-block-caption span.caption-number {