Skip to content

Commit 48a6c21

Browse files
Only add a border for the rust logo
1 parent 3a92b99 commit 48a6c21

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

src/librustdoc/html/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub fn render<T: Print, S: Print>(
138138
if layout.logo.is_empty() {
139139
format!(
140140
"<a href='{path}index.html'>\
141-
<div class='logo-container'>\
141+
<div class='logo-container rust-logo'>\
142142
<img src='{static_root_path}rust-logo{suffix}.png' alt='logo'></div></a>",
143143
path = p,
144144
static_root_path = static_root_path,

src/librustdoc/html/static/themes/ayu.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ pre {
6262
background-color: #14191f;
6363
}
6464

65-
.logo-container > img {
66-
filter: drop-shadow(0 0 5px #fff);
65+
.logo-container.rust-logo > img {
66+
filter: drop-shadow(1px 0 0px #fff)
67+
drop-shadow(0 1px 0 #fff)
68+
drop-shadow(-1px 0 0 #fff)
69+
drop-shadow(0 -1px 0 #fff);
6770
}
6871

6972
/* Improve the scrollbar display on firefox */

src/librustdoc/html/static/themes/dark.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ pre {
3434
background-color: #505050;
3535
}
3636

37-
.logo-container > img {
38-
filter: drop-shadow(0 0 5px #fff);
37+
.logo-container.rust-logo > img {
38+
filter: drop-shadow(1px 0 0px #fff)
39+
drop-shadow(0 1px 0 #fff)
40+
drop-shadow(-1px 0 0 #fff)
41+
drop-shadow(0 -1px 0 #fff)
3942
}
4043

4144
/* Improve the scrollbar display on firefox */

src/librustdoc/html/static/themes/light.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ pre {
4545
scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9;
4646
}
4747

48-
.logo-container > img {
49-
filter: drop-shadow(0 0 5px #aaa);
48+
.logo-container.rust-logo > img {
49+
/* No need for a border in here! */
5050
}
5151

5252
/* Improve the scrollbar display on webkit-based browsers */

0 commit comments

Comments
 (0)