]> git.lizzy.rs Git - rust.git/commitdiff
Fix title heading overlap in rust doc
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 22 Oct 2017 14:08:31 +0000 (16:08 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 22 Oct 2017 14:08:31 +0000 (16:08 +0200)
src/librustdoc/html/static/rustdoc.css

index 18270654aa93c5f7ee67e36031012ef1a01d90c6..1d6f60b481a1f61b54891dc2c1e587ff886faa1f 100644 (file)
@@ -529,7 +529,8 @@ a {
 .content .search-results td:first-child { padding-right: 0; }
 .content .search-results td:first-child a { padding-right: 10px; }
 
-tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black;
+tr.result span.primitive::after {
+       content: ' (primitive type)'; font-style: italic; color: black;
 }
 
 body.blur > :not(#help) {
@@ -745,6 +746,14 @@ span.since {
        margin-top: 5px;
 }
 
+.docblock > .section-header:first-child {
+       margin-left: 15px;
+}
+
+.docblock > .section-header:first-child:hover > a:before {
+       left: -10px;
+}
+
 .enum > .collapsed, .struct > .collapsed {
        margin-bottom: 25px;
 }