Update .with-sidebar composition
This commit is contained in:
parent
82580c1db8
commit
cccd74cc11
1 changed files with 7 additions and 5 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue