Skip to content

Commit 09dbe55

Browse files
committed
docs: fix double-clicking on member names
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
1 parent fafa12e commit 09dbe55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/_static/css/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* Fix coloring to be like older versions of Sphinx + RTD theme. */
12
.descname {
23
color: black;
34
}
5+
6+
/* Fix double-click to select single word. */
7+
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .property::after {
8+
content: " ";
9+
}

0 commit comments

Comments
 (0)