]> git.lizzy.rs Git - rust.git/commitdiff
Only add a border for the rust logo
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 7 Aug 2020 09:19:07 +0000 (11:19 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 7 Aug 2020 09:19:07 +0000 (11:19 +0200)
src/librustdoc/html/layout.rs
src/librustdoc/html/static/themes/ayu.css
src/librustdoc/html/static/themes/dark.css
src/librustdoc/html/static/themes/light.css

index cc6b38ebcdb7fb26b929b7485724add16d254f3c..03011ce4ab30449e02083e9e305b5e0aadcf1b57 100644 (file)
@@ -138,7 +138,7 @@ pub fn render<T: Print, S: Print>(
             if layout.logo.is_empty() {
                 format!(
                     "<a href='{path}index.html'>\
-                     <div class='logo-container'>\
+                     <div class='logo-container rust-logo'>\
                      <img src='{static_root_path}rust-logo{suffix}.png' alt='logo'></div></a>",
                     path = p,
                     static_root_path = static_root_path,
index f4710f6ae873aef882d6387c255e0553ca75f5e8..d07661e91dbab5ff6daebdef6bd3fd6700870ccc 100644 (file)
@@ -62,8 +62,11 @@ pre {
        background-color: #14191f;
 }
 
-.logo-container > img {
-       filter: drop-shadow(0 0 5px #fff);
+.logo-container.rust-logo > img {
+       filter: drop-shadow(1px 0 0px #fff)
+               drop-shadow(0 1px 0 #fff)
+               drop-shadow(-1px 0 0 #fff)
+               drop-shadow(0 -1px 0 #fff);
 }
 
 /* Improve the scrollbar display on firefox */
index b3b586ba362fa475b9f7c5c392bcf126305527c8..1e723d31fc8b5f4cb29f668fdd7d51e0d6509263 100644 (file)
@@ -34,8 +34,11 @@ pre {
        background-color: #505050;
 }
 
-.logo-container > img {
-       filter: drop-shadow(0 0 5px #fff);
+.logo-container.rust-logo > img {
+       filter: drop-shadow(1px 0 0px #fff)
+               drop-shadow(0 1px 0 #fff)
+               drop-shadow(-1px 0 0 #fff)
+               drop-shadow(0 -1px 0 #fff)
 }
 
 /* Improve the scrollbar display on firefox */
index b0c5715604baab86ea5d29eab697f5b3b6a0701f..793c68042ff599819f5b649272651e0a6d40dca5 100644 (file)
@@ -45,8 +45,8 @@ pre {
        scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9;
 }
 
-.logo-container > img {
-       filter: drop-shadow(0 0 5px #aaa);
+.logo-container.rust-logo > img {
+       /* No need for a border in here! */
 }
 
 /* Improve the scrollbar display on webkit-based browsers */