mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
407b4c3606
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
38 lines
724 B
SCSS
38 lines
724 B
SCSS
.bd-layout {
|
|
@include media-breakpoint-up(md) {
|
|
display: grid;
|
|
gap: $grid-gutter-width;
|
|
grid-template-areas:
|
|
"sidebar intro"
|
|
"sidebar toc"
|
|
"sidebar content";
|
|
grid-template-columns: 1fr 3fr;
|
|
grid-template-rows: auto auto 1fr;
|
|
}
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
grid-template-areas:
|
|
"sidebar intro toc"
|
|
"sidebar content toc";
|
|
grid-template-columns: 1fr 4fr 1fr;
|
|
grid-template-rows: auto 1fr;
|
|
}
|
|
}
|
|
|
|
.bd-sidebar {
|
|
grid-area: sidebar;
|
|
}
|
|
|
|
.bd-intro {
|
|
grid-area: intro;
|
|
}
|
|
|
|
.bd-toc {
|
|
grid-area: toc;
|
|
}
|
|
|
|
.bd-content {
|
|
grid-area: content;
|
|
min-width: 1px; // Fix width when bd-content contains a `<pre>` https://github.com/twbs/bootstrap/issues/25410
|
|
}
|