1
Fork 0

Only add a border for the rust logo

This commit is contained in:
Guillaume Gomez 2020-08-07 11:19:07 +02:00
parent 3a92b9987a
commit 48a6c2125b
4 changed files with 13 additions and 7 deletions

View file

@ -138,7 +138,7 @@ pub fn render<T: Print, S: Print>(
if layout.logo.is_empty() { if layout.logo.is_empty() {
format!( format!(
"<a href='{path}index.html'>\ "<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>", <img src='{static_root_path}rust-logo{suffix}.png' alt='logo'></div></a>",
path = p, path = p,
static_root_path = static_root_path, static_root_path = static_root_path,

View file

@ -62,8 +62,11 @@ pre {
background-color: #14191f; background-color: #14191f;
} }
.logo-container > img { .logo-container.rust-logo > img {
filter: drop-shadow(0 0 5px #fff); 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 */ /* Improve the scrollbar display on firefox */

View file

@ -34,8 +34,11 @@ pre {
background-color: #505050; background-color: #505050;
} }
.logo-container > img { .logo-container.rust-logo > img {
filter: drop-shadow(0 0 5px #fff); 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 */ /* Improve the scrollbar display on firefox */

View file

@ -45,8 +45,8 @@ pre {
scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9; scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9;
} }
.logo-container > img { .logo-container.rust-logo > img {
filter: drop-shadow(0 0 5px #aaa); /* No need for a border in here! */
} }
/* Improve the scrollbar display on webkit-based browsers */ /* Improve the scrollbar display on webkit-based browsers */