Skip to content

Commit 906bdd3

Browse files
Improve display of logo on very small screens
1 parent 8aef0c7 commit 906bdd3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
3. Copy the filenames with updated suffixes from the directory.
77
*/
88

9+
:root {
10+
--nav-sub-mobile-padding: 8px;
11+
}
12+
913
/* See FiraSans-LICENSE.txt for the Fira Sans license. */
1014
@font-face {
1115
font-family: 'Fira Sans';
@@ -1726,7 +1730,7 @@ in main.js
17261730

17271731
.source nav.sub {
17281732
margin: 0;
1729-
padding: 8px;
1733+
padding: var(--nav-sub-mobile-padding);
17301734
}
17311735
}
17321736

@@ -1783,6 +1787,7 @@ in main.js
17831787
.sub-logo-container > img {
17841788
height: 35px;
17851789
width: 35px;
1790+
margin-bottom: var(--nav-sub-mobile-padding);
17861791
}
17871792
}
17881793

0 commit comments

Comments
 (0)