]> git.lizzy.rs Git - rust.git/commitdiff
Improve alias rendering
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 26 Apr 2018 19:14:10 +0000 (21:14 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 12 May 2018 17:16:37 +0000 (19:16 +0200)
src/librustdoc/html/static/main.js
src/librustdoc/html/static/rustdoc.css
src/librustdoc/html/static/themes/dark.css
src/librustdoc/html/static/themes/light.css

index ba92ac7bd306e9e561e2669ea0ce9e1d3d118286..8c4dac9238ce9e2d132aa546a4f2d56503fa85bc 100644 (file)
                     output += '<tr class="' + type + ' result"><td>' +
                               '<a href="' + item.href + '">' +
                               (item.is_alias === true ?
-                               ('<span><b>' + item.alias + ' </b></span><span ' +
+                               ('<span class="alias"><b>' + item.alias + ' </b></span><span ' +
                                   'class="grey"><i>&nbsp;- see&nbsp;</i></span>') : '') +
                               item.displayPath + '<span class="' + type + '">' +
                               name + '</span></a></td><td>' +
index 08df4adf57d34273f8866638ae81d417abb17ee3..d6b3ab26af8aebf5b7075eb81063744ce95ce744 100644 (file)
@@ -1326,8 +1326,4 @@ kbd {
 }
 #all-types > p {
        margin: 5px 0;
-}
-
-.search-results td span.grey {
-       color: #ccc;
 }
\ No newline at end of file
index da4be7db5aa92b43088abbc4db36cba6ffc39431..493a75e25211df925b16ddbd700a3aadc3ff5e42 100644 (file)
@@ -382,7 +382,7 @@ kbd {
 }
 
 #theme-choices > button:hover, #theme-choices > button:focus {
-       background-color: #444;
+       background-color: #4e4e4e;
 }
 
 @media (max-width: 700px) {
@@ -397,3 +397,10 @@ kbd {
 #all-types:hover {
        background-color: #606060;
 }
+
+.search-results td span.alias {
+       color: #fff;
+}
+.search-results td span.grey {
+       color: #ccc;
+}
\ No newline at end of file
index 12af01d2e249809e7cde52f89116c3db8839b1fc..22f4635fb02e13ac5f23554f505503a08e46728a 100644 (file)
@@ -390,4 +390,11 @@ kbd {
 }
 #all-types:hover {
        background-color: #f9f9f9;
+}
+
+.search-results td span.alias {
+       color: #000;
+}
+.search-results td span.grey {
+       color: #999;
 }
\ No newline at end of file