diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-07-24 18:56:22 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-24 18:56:22 +0900 |
| commit | 38b295699f891d05d7b3dfefca3ee4a50e63d759 (patch) | |
| tree | b3f8abaf023b92707dafdbae30e32627a6016e80 | |
| parent | 0820e54a8ad7795d7b555b37994f43cfe62356d4 (diff) | |
| parent | 839216a57c841c5cdd099cdecf8bd6dbf5808ae4 (diff) | |
| download | rust-38b295699f891d05d7b3dfefca3ee4a50e63d759.tar.gz rust-38b295699f891d05d7b3dfefca3ee4a50e63d759.zip | |
Rollup merge of #74361 - GuillaumeGomez:theme-logo, r=Manishearth
Improve doc theme logo display Fixes #74350. The first commit cleans up the whitespaces and converts them to tabs. We should definitely write a tidy check for this (will do it in another PR). Screenshots:    r? @lzutao cc @Cldfire
| -rw-r--r-- | src/librustdoc/html/static/themes/ayu.css | 4 | ||||
| -rw-r--r-- | src/librustdoc/html/static/themes/dark.css | 4 | ||||
| -rw-r--r-- | src/librustdoc/html/static/themes/light.css | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/themes/ayu.css b/src/librustdoc/html/static/themes/ayu.css index 96ba5c46a3c..4c0ff4e7842 100644 --- a/src/librustdoc/html/static/themes/ayu.css +++ b/src/librustdoc/html/static/themes/ayu.css @@ -62,6 +62,10 @@ pre { background-color: #14191f; } +.logo-container > img { + filter: drop-shadow(0 0 5px #fff); +} + /* Improve the scrollbar display on firefox */ * { scrollbar-color: #5c6773 transparent; diff --git a/src/librustdoc/html/static/themes/dark.css b/src/librustdoc/html/static/themes/dark.css index 33c0f885fa9..ebc8476f3b1 100644 --- a/src/librustdoc/html/static/themes/dark.css +++ b/src/librustdoc/html/static/themes/dark.css @@ -34,6 +34,10 @@ pre { background-color: #505050; } +.logo-container > img { + filter: drop-shadow(0 0 5px #fff); +} + /* Improve the scrollbar display on firefox */ * { scrollbar-color: rgb(64, 65, 67) #717171; diff --git a/src/librustdoc/html/static/themes/light.css b/src/librustdoc/html/static/themes/light.css index 569ce7da209..848424dd1c3 100644 --- a/src/librustdoc/html/static/themes/light.css +++ b/src/librustdoc/html/static/themes/light.css @@ -45,6 +45,10 @@ pre { scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9; } +.logo-container > img { + filter: drop-shadow(0 0 5px #aaa); +} + /* Improve the scrollbar display on webkit-based browsers */ ::-webkit-scrollbar-track { background-color: #ecebeb; |
