1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Update docs for new XXL grid tier

- Updates mentions of number and exact tiers
- Updates grid example to include xxl container
- Adds some scss-docs references
- Cleans up other grid mentions and docs
- Updates navbar example to include an expand at XXL variant
This commit is contained in:
Mark Otto
2020-04-13 14:40:47 -07:00
parent e3583115c6
commit 7dedccfb9a
18 changed files with 183 additions and 146 deletions

View File

@@ -0,0 +1,35 @@
.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;
}
@include media-breakpoint-up(lg) {
grid-template-areas:
"sidebar intro toc"
"sidebar content toc";
grid-template-columns: 1fr 4fr 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
}

View File

@@ -1,6 +1,6 @@
// stylelint-disable selector-max-type, selector-max-compound-selectors
// stylelint-disable selector-max-type
.bd-toc-wrap {
.bd-toc {
@include media-breakpoint-up(lg) {
@supports (position: sticky) {
position: sticky;
@@ -11,34 +11,34 @@
overflow-y: auto;
}
}
}
.bd-toc nav {
@include font-size(.875rem);
ul {
padding-left: 0;
list-style: none;
nav {
@include font-size(.875rem);
ul {
padding-left: 1rem;
margin-top: .25rem;
padding-left: 0;
list-style: none;
ul {
padding-left: 1rem;
margin-top: .25rem;
}
}
li {
margin-bottom: .25rem;
}
a {
color: inherit;
&:not(:hover) {
text-decoration: none;
}
code {
font: inherit;
}
}
}
li {
margin-bottom: .25rem;
}
a {
color: inherit;
}
a:not(:hover) {
text-decoration: none;
}
a code {
font: inherit;
}
}

View File

@@ -37,6 +37,7 @@
@import "content";
@import "skippy";
@import "sidebar";
@import "layout";
@import "toc";
@import "footer";
@import "component-examples";