]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: Fix a few missing colors in the CSS
authorOliver Middleton <olliemail27@gmail.com>
Sat, 4 Jun 2016 22:43:24 +0000 (23:43 +0100)
committerOliver Middleton <olliemail27@gmail.com>
Sat, 4 Jun 2016 22:43:24 +0000 (23:43 +0100)
This adds color to some of the search results and sidebar items which were missing.

src/librustdoc/html/static/rustdoc.css
src/librustdoc/html/static/styles/main.css

index bfe3f7b8dd69d9bc55440b8cea402d11a34ce51f..45dacb68e91a6d69ce6268f8a0b86abf09e9e057 100644 (file)
@@ -409,8 +409,8 @@ a {
 
 .content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
 .content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
 
 .content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
 .content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
-.content a.type { color: #e57300; }
-.content a.macro { color: #068000; }
+.content span.type, .content a.type, .block a.current.type { color: #e57300; }
+.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
 .block a.current.crate { font-weight: 500; }
 
 .search-input {
 .block a.current.crate { font-weight: 500; }
 
 .search-input {
@@ -453,7 +453,7 @@ a {
 .content .search-results td:first-child { padding-right: 0; }
 .content .search-results td:first-child a { padding-right: 10px; }
 
 .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; }
+tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black}
 
 body.blur > :not(#help) {
     filter: blur(8px);
 
 body.blur > :not(#help) {
     filter: blur(8px);
index aa08cee13ef72dfe1c17ad9ec675932407023fb5..aee6d15b7ca37084fb45d70b45efae85b3d5bdc2 100644 (file)
@@ -88,8 +88,9 @@ pre {
     border-bottom-color: #ddd;
 }
 
     border-bottom-color: #ddd;
 }
 
-.content a.primitive { color: #39a7bf; }
-.content span.externcrate, span.mod, .content a.mod, block a.current.mod { color: #4d76ae; }
+.content span.primitive, .content a.primitive, .block a.current.primitive { color: #39a7bf; }
+.content span.externcrate,
+.content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
 .content span.fn, .content a.fn, .block a.current.fn,
 .content span.method, .content a.method, .block a.current.method,
 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
 .content span.fn, .content a.fn, .block a.current.fn,
 .content span.method, .content a.method, .block a.current.method,
 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,