Skip to content

Commit

Permalink
Only add a border for the rust logo
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 7, 2020
1 parent 3a92b99 commit 48a6c21
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/html/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 5 additions & 2 deletions src/librustdoc/html/static/themes/ayu.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
7 changes: 5 additions & 2 deletions src/librustdoc/html/static/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 48a6c21

Please sign in to comment.