2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Fixes #10433: Navbar z-index refactor

* Resets the default navbar z-index to auto at a certain breakpoint
* Adds fixed navbar z-index var to fixed bottom navbar (previously only on fixed top navbar)
This commit is contained in:
Mark Otto
2013-10-20 20:30:16 -07:00
parent 5aa4c5cb0c
commit e486bb4f39
4 changed files with 30 additions and 3 deletions
+3 -1
View File
@@ -19,6 +19,7 @@
.clearfix();
@media (min-width: @grid-float-breakpoint) {
z-index: auto;
border-radius: @navbar-border-radius;
}
}
@@ -128,6 +129,7 @@
position: fixed;
right: 0;
left: 0;
z-index: @zindex-navbar-fixed;
// Undo the rounded corners
@media (min-width: @grid-float-breakpoint) {
@@ -135,7 +137,6 @@
}
}
.navbar-fixed-top {
z-index: @zindex-navbar-fixed;
top: 0;
border-width: 0 0 1px;
}
@@ -153,6 +154,7 @@
padding: @navbar-padding-vertical @navbar-padding-horizontal;
font-size: @font-size-large;
line-height: @line-height-computed;
&:hover,
&:focus {
text-decoration: none;