Skip to content

Commit

Permalink
CSS: avoid multiple borders with compound "kbd" role
Browse files Browse the repository at this point in the history
This needs Sphinx >= 3.5.0, see
sphinx-doc/sphinx#8620.
  • Loading branch information
mgeier committed Feb 11, 2021
1 parent 9a79bbb commit c765745
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/showcase/basic-formatting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ command: :command:`rm` --
dfn: :dfn:`term` --
file: :file:`name.{ext}` --
guilabel: :guilabel:`&Cancel` --
kbd: :kbd:`Control` + :kbd:`x` :kbd:`Control` + :kbd:`f` --
kbd (separate): :kbd:`Control` + :kbd:`x` :kbd:`Control` + :kbd:`f` --
kbd (combined, needs Sphinx >= 3.5.0): :kbd:`Control+x Control+f` --
mailheader: :mailheader:`Content-Type` --
makevar: :makevar:`AM_CFLAGS` --
manpage: :manpage:`ls(1)`, :manpage:`man` --
Expand Down
2 changes: 1 addition & 1 deletion src/insipid_sphinx_theme/insipid/static/insipid.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ table.highlighttable td.linenos {
margin: 0 -0.5em;
}

kbd.docutils {
kbd.docutils:not(.compound) {
padding: 0.15em;
border-radius: 3px;
border: 1px solid #333;
Expand Down

0 comments on commit c765745

Please sign in to comment.