diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-20 01:10:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 01:10:15 +0900 |
commit | ff02add8ef59126f98ccab5148d71805e743a0d9 (patch) | |
tree | 880d0fa7424136fc5b69f1c125c35006624ddad0 | |
parent | 9105635389e917804897e743fa639cbcbb394453 (diff) | |
parent | 75e8862f73a09a269ef3a7ec7e06764a03ab6078 (diff) | |
download | sphinx-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.rst | 2 | ||||
-rw-r--r-- | sphinx/themes/basic/static/basic.css_t | 6 |
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 { |