Commit 5d7db507 authored by Mark Otto's avatar Mark Otto
Browse files

redo and make sticky

parent a7695428
10 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!22547Finished a new translation for bootstrap,!22030V4 docs streamlined,!21693V4 docs streamlined,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!22716Docs redesign,!17021v4
Showing with 22 additions and 4 deletions
+22 -4
// scss-lint:disable VendorPrefix
// //
// Main navbar // Main navbar
// //
.bd-navbar { .bd-navbar {
// @include media-breakpoint-up(md) {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 1030; // over everything in bootstrap
// max-height: calc(100vh - 4rem);
// overflow-y: auto;
// }
// padding-right: 0; // padding-right: 0;
// padding-left: 0; // padding-left: 0;
margin-bottom: 2rem; // margin-bottom: 2rem;
background-color: #fff;
border-bottom: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1);
box-shadow: 0 6px 12px rgba(0,0,0,.05); box-shadow: 0 6px 12px rgba(0,0,0,.05);
...@@ -28,6 +39,10 @@ ...@@ -28,6 +39,10 @@
} }
.dropdown-menu { .dropdown-menu {
font-size: inherit; font-size: .875rem;
}
.navbar-brand {
color: $bd-purple;
} }
} }
// scss-lint:disable VendorPrefix
// //
// Side navigation // Side navigation
// //
.bd-sidebar { .bd-sidebar {
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
position: -webkit-sticky;
position: sticky; position: sticky;
top: 2rem; top: 5rem;
max-height: calc(100vh - 4rem); max-height: calc(100vh - 4rem);
overflow-y: auto; overflow-y: auto;
} }
...@@ -26,7 +29,7 @@ ...@@ -26,7 +29,7 @@
} }
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
padding-right: 1rem; // padding-right: 1rem;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment