Skip to content

Commit

Permalink
docs: fix double-clicking on member names
Browse files Browse the repository at this point in the history
In the rendered html docs, double-clicking a name, such as a class name,
would select both the keyword "class" as well as the class name. This
happens because there is no whitespace between the two HTML elements.
We can patch this by injecting a space using CSS.

Issue: readthedocs/sphinx_rtd_theme#1154
  • Loading branch information
dlech committed May 27, 2021
1 parent fafa12e commit 09dbe55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/_static/css/custom.css
@@ -1,3 +1,9 @@
/* Fix coloring to be like older versions of Sphinx + RTD theme. */
.descname {
color: black;
}

/* Fix double-click to select single word. */
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .property::after {
content: " ";
}

0 comments on commit 09dbe55

Please sign in to comment.