Skip to content

Commit d1669c8

Browse files
return42Jonathan Corbet
authored andcommitted
doc-rst: customize RTD theme, drop padding of inline literal
Remove the distracting (left/right) padding of inline literals. (HTML <code>). Requested and discussed in [1]. [1] http://www.spinics.net/lists/linux-media/msg103991.html Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent c2d5be1 commit d1669c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/sphinx-static/theme_overrides.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@
4242
caption a.headerlink { opacity: 0; }
4343
caption a.headerlink:hover { opacity: 1; }
4444

45-
/* inline literal: drop the borderbox and red color */
45+
/* inline literal: drop the borderbox, padding and red color */
4646

4747
code, .rst-content tt, .rst-content code {
4848
color: inherit;
4949
border: none;
50+
padding: unset;
5051
background: inherit;
5152
font-size: 85%;
5253
}

0 commit comments

Comments
 (0)