2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

set width to auto for default navbar container, then override it later for fixed navbars (done all via the #gridSystem mixins)

This commit is contained in:
Mark Otto
2012-02-21 23:15:43 -08:00
parent 9b524a16e9
commit a139167489
7 changed files with 21 additions and 7 deletions
+7 -2
View File
@@ -173,8 +173,13 @@
#gridSystem > .gridColumn(@gridGutterWidth);
}
// Fixed container
.container { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, @gridColumns); }
// Fixed containers
// Default container and reset for fixed navbars
.container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
#gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, @gridColumns);
}
// Default columns
.span1 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 1); }
+6
View File
@@ -20,6 +20,12 @@
.box-shadow(@shadow);
}
// Set width to auto for default container
// We then reset it for fixed navbars in the #gridSystem mixin
.navbar .container {
width: auto;
}
// Navbar button for toggling navbar items in responsive layouts
.btn-navbar {
display: none;