Skip to content

Commit b3725a6

Browse files
committed
doc: improve code rendering in table with RTD sphinx theme
Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent c9fabd4 commit b3725a6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/source/_static/rtd_literal_block.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@
55
background-color: #1e1e1e;
66
color: #ffffff;
77
}
8+
9+
/* Render inline literal in table: drop the borderbox, padding and
10+
* background */
11+
.rst-content td tt.literal, .rst-content td code.literal {
12+
border: none;
13+
padding: unset;
14+
background: inherit;
15+
font-size: 90%;
16+
}

0 commit comments

Comments
 (0)