Update .with-sidebar composition

This commit is contained in:
Timothée Goguely 2024-10-09 16:05:53 +02:00
parent 82580c1db8
commit cccd74cc11

View file

@ -6,13 +6,15 @@
gap: var(--space-32);
}
.with-sidebar > :first-child {
flex-basis: var(--sidebar-width);
.with-sidebar > :first-child,
.with-sidebar[data-side="right"] > :last-child {
flex-basis: var(--sidebar-width);
flex-grow: 1;
}
.with-sidebar > :last-child {
.with-sidebar > :last-child,
.with-sidebar[data-side="right"] > :first-child {
flex-basis: 0;
flex-grow: 999;
min-inline-size: 50%;
}
min-inline-size: min(50%, var(--sidebar-width));
}