Skip to content

Commit 3b41f32

Browse files
committed
Rustdoc: Add padding on <code>
… to separate text from the edge of the newly added background.
1 parent 7f38806 commit 3b41f32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/html/static/main.css

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ code, pre {
123123
.docblock code {
124124
background-color: #F5F5F5;
125125
border-radius: 3px;
126+
padding: 0 0.2em;
126127
}
127128
pre {
128129
background-color: #F5F5F5;

0 commit comments

Comments
 (0)