]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
redo and make sticky 21693/head 22030/head 22547/head
authorMark Otto <markdotto@gmail.com>
Thu, 29 Dec 2016 21:22:45 +0000 (13:22 -0800)
committerMark Otto <markdotto@gmail.com>
Thu, 29 Dec 2016 21:22:45 +0000 (13:22 -0800)
docs/assets/scss/_nav.scss
docs/assets/scss/_sidebar.scss

index 303d1dad758215cfff54cb35817ef3b74b419806..c59c31c25661b415c123eb75aa3264d8597aaf5d 100644 (file)
@@ -1,11 +1,22 @@
+// scss-lint:disable VendorPrefix
+
 //
 // Main 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-left: 0;
-  margin-bottom: 2rem;
+  // margin-bottom: 2rem;
+  background-color: #fff;
   border-bottom: 1px solid rgba(0,0,0,.1);
   box-shadow: 0 6px 12px rgba(0,0,0,.05);
 
   }
 
   .dropdown-menu {
-    font-size: inherit;
+    font-size: .875rem;
+  }
+
+  .navbar-brand {
+    color: $bd-purple;
   }
 }
index 3986bc65eb07d253f2f67535ae39b8b59a1fee5e..974f7676d2c6ed0cd6996ad1a0f10aaea514e947 100644 (file)
@@ -1,11 +1,14 @@
+// scss-lint:disable VendorPrefix
+
 //
 // Side navigation
 //
 
 .bd-sidebar {
   @include media-breakpoint-up(md) {
+    position: -webkit-sticky;
     position: sticky;
-    top: 2rem;
+    top: 5rem;
     max-height: calc(100vh - 4rem);
     overflow-y: auto;
   }
@@ -26,7 +29,7 @@
   }
 
   @include media-breakpoint-up(md) {
-    padding-right: 1rem;
+    // padding-right: 1rem;
   }
 }