Skip to content

Commit d6d3f78

Browse files
fix: banner logo sizing — scale to sidebar width with auto height
1 parent 7771bcd commit d6d3f78

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

docs/_sass/custom/custom.scss

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
// SPECTRA — additional overrides on top of the spectra color scheme
33
// =============================================================
44

5-
// Sidebar header / logo area: the dashboard banner already has a navy
6-
// background, so let it sit flush on the navy sidebar — no backdrop,
7-
// no border, just a full-width banner that bleeds to the edges.
8-
95
.side-bar {
106
.site-header {
117
background-color: transparent;
12-
padding: 0;
8+
padding: 0.75rem 1rem;
139
height: auto;
1410
min-height: 0;
1511
border-bottom: none;
@@ -28,12 +24,11 @@
2824
}
2925
}
3026

31-
// The logo itself (Just the Docs renders it as a background image
32-
// on .site-logo). Force it to display as a block-level image and
33-
// bleed full-width so the banner reads as a proper header.
27+
// Banner logo — scale to sidebar width, auto height
3428
.site-logo {
3529
width: 100%;
36-
height: 9rem;
30+
height: auto;
31+
max-height: 5rem;
3732
background-size: contain;
3833
background-position: center center;
3934
background-repeat: no-repeat;
@@ -46,13 +41,6 @@
4641
}
4742
}
4843

49-
// Larger sidebar logo on bigger screens
50-
@media (min-width: 50rem) {
51-
.side-bar .site-logo {
52-
height: 11rem;
53-
}
54-
}
55-
5644
// Hide "Just the Docs" theme attribution in footer
5745
.site-footer .site-footer-credits {
5846
display: none;

0 commit comments

Comments
 (0)