File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -182,14 +182,16 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
182
182
let p = SlashChecker ( & p) ;
183
183
if layout. logo. is_empty( ) {
184
184
format!( "<a href='{path}index.html'>\
185
+ <div class='logo-container'>\
185
186
<img src='{static_root_path}rust-logo{suffix}.png' \
186
- alt='logo' width='100'></a>",
187
+ alt='logo' width='100'></div></ a>",
187
188
path=p,
188
189
static_root_path=static_root_path,
189
190
suffix=page. resource_suffix)
190
191
} else {
191
192
format!( "<a href='{}index.html'>\
192
- <img src='{}' alt='logo' width='100'></a>",
193
+ <div class='logo-container'>\
194
+ <img src='{}' alt='logo' width='100'></div></a>",
193
195
p,
194
196
layout. logo)
195
197
}
Original file line number Diff line number Diff line change @@ -182,6 +182,11 @@ nav.sub {
182
182
display : none !important ;
183
183
}
184
184
185
+ .logo-container {
186
+ height : 0 ;
187
+ padding-bottom : 50% ;
188
+ }
189
+
185
190
.sidebar img {
186
191
margin : 20px auto;
187
192
display : block;
You can’t perform that action at this time.
0 commit comments