Skip to content

Commit bcf4cfe

Browse files
committed
rustdoc: clean up .sub-logo-container CSS
* Since it's used exclusively on source pages, no need to explicitly select. * No need to hide it when the sidebar is open, since it fills the whole page.
1 parent b979697 commit bcf4cfe

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/librustdoc/html/static/css/rustdoc.css

+3-13
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,11 @@ img {
372372
}
373373

374374
.sub-logo-container {
375-
display: none;
376-
margin-right: 20px;
377-
}
378-
379-
.source .sub-logo-container {
380375
display: block;
376+
margin-right: 20px;
381377
}
382378

383-
.source .sub-logo-container > img {
379+
.sub-logo-container > img {
384380
height: 60px;
385381
width: 60px;
386382
object-fit: contain;
@@ -1716,12 +1712,6 @@ in storage.js plus the media query with (max-width: 700px)
17161712
margin-top: 16px;
17171713
}
17181714

1719-
/* When we expand the sidebar on the source code page, we hide the logo on the left of the
1720-
search bar to have more space. */
1721-
.source-sidebar-expanded .source .sidebar + main .width-limiter .sub-logo-container.rust-logo {
1722-
display: none;
1723-
}
1724-
17251715
.source-sidebar-expanded .source .sidebar {
17261716
width: 300px;
17271717
}
@@ -2025,7 +2015,7 @@ in storage.js plus the media query with (min-width: 701px)
20252015
align-self: center;
20262016
}
20272017

2028-
.source .sub-logo-container > img {
2018+
.sub-logo-container > img {
20292019
height: 35px;
20302020
width: 35px;
20312021
}

0 commit comments

Comments
 (0)