diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-10-17 13:11:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-17 13:11:07 +0200 |
| commit | 81ea72b38e0749b5c462840cac7989078a4648a8 (patch) | |
| tree | 80ce1fbd40010d2b5a0405291156a45c435ca855 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 9a615fd4e4ffbf9e58c56d15454ccfebff549f7c (diff) | |
| parent | bcf4cfe7903f9becd6e28205ecc87f4815101977 (diff) | |
| download | rust-81ea72b38e0749b5c462840cac7989078a4648a8.tar.gz rust-81ea72b38e0749b5c462840cac7989078a4648a8.zip | |
Rollup merge of #103129 - notriddle:notriddle/sub-logo-container, r=GuillaumeGomez
rustdoc: remove unused `.sub-logo-container` DOM on non-source pages
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 271dd177a4b..4bfc8ada280 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -372,15 +372,11 @@ img { } .sub-logo-container { - display: none; - margin-right: 20px; -} - -.source .sub-logo-container { display: block; + margin-right: 20px; } -.source .sub-logo-container > img { +.sub-logo-container > img { height: 60px; width: 60px; object-fit: contain; @@ -1716,12 +1712,6 @@ in storage.js plus the media query with (max-width: 700px) margin-top: 16px; } - /* When we expand the sidebar on the source code page, we hide the logo on the left of the - search bar to have more space. */ - .source-sidebar-expanded .source .sidebar + main .width-limiter .sub-logo-container.rust-logo { - display: none; - } - .source-sidebar-expanded .source .sidebar { width: 300px; } @@ -2025,7 +2015,7 @@ in storage.js plus the media query with (min-width: 701px) align-self: center; } - .source .sub-logo-container > img { + .sub-logo-container > img { height: 35px; width: 35px; } |
