]> git.lizzy.rs Git - rust.git/commitdiff
Rustdoc: Add padding on <code>
authorSimon Sapin <simon.sapin@exyr.org>
Wed, 6 Aug 2014 10:07:35 +0000 (11:07 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Wed, 6 Aug 2014 10:07:35 +0000 (11:07 +0100)
… to separate text from the edge of the newly added background.

src/librustdoc/html/static/main.css

index 60932c9086d82ca43aeba2c6dd499a49695a7eaf..f579123fc462b8e913bdb6e5edbe2e9a34b08a02 100644 (file)
@@ -123,6 +123,7 @@ code, pre {
 .docblock code {
     background-color: #F5F5F5;
     border-radius: 3px;
+    padding: 0 0.2em;
 }
 pre {
     background-color: #F5F5F5;