diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-08-11 01:56:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-11 01:56:32 +0200 |
| commit | 2ad7c1687fcc09d5e72ddb22c926e86a078ec2e6 (patch) | |
| tree | 207599d9cbe5aecd21b156199ffe88bf76d6d859 /src | |
| parent | 63d1e372a617217e8fc04b8363d662db1300175b (diff) | |
| parent | 48a6c2125b5313f5d0f6d713d72033dbe559588e (diff) | |
| download | rust-2ad7c1687fcc09d5e72ddb22c926e86a078ec2e6.tar.gz rust-2ad7c1687fcc09d5e72ddb22c926e86a078ec2e6.zip | |
Rollup merge of #75249 - GuillaumeGomez:rust-logo-border, r=Manishearth
Only add a border for the rust logo    I didn't add a border for the light theme though, as I felt it as unnecessary. r? @Manishearth
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/layout.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/static/themes/ayu.css | 7 | ||||
| -rw-r--r-- | src/librustdoc/html/static/themes/dark.css | 7 | ||||
| -rw-r--r-- | src/librustdoc/html/static/themes/light.css | 4 |
4 files changed, 13 insertions, 7 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index cc6b38ebcdb..03011ce4ab3 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -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, diff --git a/src/librustdoc/html/static/themes/ayu.css b/src/librustdoc/html/static/themes/ayu.css index 60f0d25b219..8d176bb3526 100644 --- a/src/librustdoc/html/static/themes/ayu.css +++ b/src/librustdoc/html/static/themes/ayu.css @@ -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 */ diff --git a/src/librustdoc/html/static/themes/dark.css b/src/librustdoc/html/static/themes/dark.css index 34c6cbbf4fa..1c14ab364b3 100644 --- a/src/librustdoc/html/static/themes/dark.css +++ b/src/librustdoc/html/static/themes/dark.css @@ -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 */ diff --git a/src/librustdoc/html/static/themes/light.css b/src/librustdoc/html/static/themes/light.css index 137aad4ed43..4aafb6c9f94 100644 --- a/src/librustdoc/html/static/themes/light.css +++ b/src/librustdoc/html/static/themes/light.css @@ -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 */ |
