Skip to content

Commit aced3c5

Browse files
fix: banner logo visible — use padding-bottom for aspect ratio on empty div
1 parent 2a6aa6e commit aced3c5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/_sass/custom/custom.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@
2424
}
2525
}
2626

27-
// Banner logo — scale to sidebar width, auto height
27+
// Banner logo — rendered as background-image on an empty div,
28+
// so we must set an explicit height via aspect-ratio (1246x389 image).
2829
.site-logo {
2930
width: 100%;
30-
height: auto;
31-
max-height: 5rem;
31+
height: 0;
32+
padding-bottom: 31.2%; // 389/1246 ≈ 31.2% — preserves aspect ratio
3233
background-size: contain;
3334
background-position: center center;
3435
background-repeat: no-repeat;

0 commit comments

Comments
 (0)