0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

finesse the docs layout

This commit is contained in:
Mark Otto 2017-05-27 18:47:45 -07:00
parent 3c838067a6
commit f6b7c38c9b
2 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,7 @@
.bd-content { .bd-content {
@include media-breakpoint-up(xl) { @include media-breakpoint-up(xl) {
max-width: calc(100% - 320px); flex: 1;
padding-right: 20%; padding-right: 20%;
#contents { #contents {
@ -99,7 +99,7 @@
margin-bottom: .25rem; margin-bottom: .25rem;
} }
@include media-breakpoint-up(sm) { @include media-breakpoint-up(lg) {
> ul, > ul,
> ol, > ol,
> p { > p {

View File

@ -11,10 +11,13 @@
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
position: sticky; position: sticky;
top: 4rem; top: 4rem;
max-width: 320px;
max-height: calc(100vh - 4rem); max-height: calc(100vh - 4rem);
overflow-y: auto; overflow-y: auto;
} }
@include media-breakpoint-up(xl) {
max-width: 320px;
}
} }
.bd-links { .bd-links {