Kris
2025-04-24 14:04:06 -04:00
committed by GitHub
parent 806b800f1f
commit 45cc99a2e0
+18 -2
View File
@@ -13,12 +13,28 @@ $sidebar-width: 17em;
} }
.d-header #site-logo { .d-header #site-logo {
// constraining the logo to fit its grid container
// this prevents the logo from shifting header content // this prevents the logo from shifting header content
// when the sidebar is opened // when the sidebar is opened
max-height: 100%; max-height: 100%;
max-width: 100%; max-width: 100%;
object-fit: contain; // contains logo without squishing/stretching object-fit: contain; // contains logo without squishing/stretching
// allows some flexibility for wide logos
body:not(.has-sidebar-page) & {
max-width: unset;
@include breakpoint("mobile-extra-large") {
max-width: 25vw;
}
}
}
.d-header #site-text-logo {
font-size: clamp(var(--font-0), 2.5vw, var(--font-up-2));
.has-sidebar-page & {
white-space: wrap;
line-height: var(--line-height-small);
@include line-clamp(2);
}
} }
#main-outlet-wrapper { #main-outlet-wrapper {
@@ -150,7 +166,7 @@ $sidebar-width: 17em;
overflow: visible; overflow: visible;
.title { .title {
flex: 1 0 auto; flex: 1 1 auto;
} }
} }