aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-04-13 19:00:59 -0700
committerMark Otto <[email protected]>2015-04-13 19:00:59 -0700
commit53a3ff74ca918805cbf7f9c673be666dc89d3449 (patch)
treeb1321d27e147c912ba6c429258bc7d700d2867bd /scss
parent982c255c28b88cce18eabd8c9aa34571dfb76484 (diff)
downloadbootstrap-53a3ff74ca918805cbf7f9c673be666dc89d3449.tar.xz
bootstrap-53a3ff74ca918805cbf7f9c673be666dc89d3449.zip
redo sidenav
Diffstat (limited to 'scss')
-rw-r--r--scss/_navbar.scss12
-rw-r--r--scss/_variables.scss1
2 files changed, 13 insertions, 0 deletions
diff --git a/scss/_navbar.scss b/scss/_navbar.scss
index 6907ae724..6520b51d7 100644
--- a/scss/_navbar.scss
+++ b/scss/_navbar.scss
@@ -58,6 +58,18 @@
bottom: 0;
}
+.navbar-sticky-top {
+ position: sticky;
+ top: 0;
+ width: 100%;
+ z-index: $zindex-navbar-sticky;
+
+ // Undo the rounded corners
+ @include media-breakpoint-up(sm) {
+ @include border-radius(0);
+ }
+}
+
// Brand/project name
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 4b78edb19..cc1e5d121 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -225,6 +225,7 @@ $zindex-dropdown: 1000 !default;
$zindex-popover: 1060 !default;
$zindex-tooltip: 1070 !default;
$zindex-navbar-fixed: 1030 !default;
+$zindex-navbar-sticky: 1030 !default;
$zindex-modal-bg: 1040 !default;
$zindex-modal: 1050 !default;