Skip to content

Commit 28276ae

Browse files
authored
UX: adjust to improve issues with wide logos (#49)
1 parent 6b108be commit 28276ae

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

desktop/desktop.scss

+20-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,25 @@ $sidebar-width: #{$sidebar_width}em;
1111
max-height: 100%;
1212
max-width: 100%;
1313
object-fit: contain; // contains logo without squishing/stretching
14+
15+
body:not(.has-sidebar-page) & {
16+
max-width: unset;
17+
18+
@include breakpoint("mobile-extra-large") {
19+
max-width: 25vw;
20+
}
21+
}
22+
}
23+
24+
.d-header #site-text-logo {
25+
font-size: clamp(var(--font-0), 2.5vw, var(--font-up-2));
26+
27+
.has-sidebar-page & {
28+
white-space: wrap;
29+
line-height: var(--line-height-small);
30+
31+
@include line-clamp(2);
32+
}
1433
}
1534

1635
#main-outlet-wrapper {
@@ -147,7 +166,7 @@ $sidebar-width: #{$sidebar_width}em;
147166
overflow: visible;
148167

149168
.title {
150-
flex: 1 0 auto;
169+
flex: 1 1 auto;
151170
}
152171
}
153172

0 commit comments

Comments
 (0)