We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a6aa6e commit aced3c5Copy full SHA for aced3c5
docs/_sass/custom/custom.scss
@@ -24,11 +24,12 @@
24
}
25
26
27
- // Banner logo — scale to sidebar width, auto height
+ // Banner logo — rendered as background-image on an empty div,
28
+ // so we must set an explicit height via aspect-ratio (1246x389 image).
29
.site-logo {
30
width: 100%;
- height: auto;
31
- max-height: 5rem;
+ height: 0;
32
+ padding-bottom: 31.2%; // 389/1246 ≈ 31.2% — preserves aspect ratio
33
background-size: contain;
34
background-position: center center;
35
background-repeat: no-repeat;
0 commit comments