Skip to content

Commit

Permalink
fix navbar container for default 940px grid per #2194
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Feb 28, 2012
1 parent 6c9547f commit fbebb04
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Binary file modified docs/assets/bootstrap.zip
Binary file not shown.
3 changes: 3 additions & 0 deletions docs/assets/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2740,6 +2740,9 @@ button.btn.btn-small, input[type="submit"].btn.btn-small {
-moz-border-radius: 0;
border-radius: 0;
}
.navbar-fixed-top .container, .navbar-fixed-bottom .container {
width: 940px;
}
.navbar-fixed-top {
top: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@
margin-left: @gridGutterWidth;
}

// Set the container width, and reset it for fixed navbars
// Set the container width, and override it for fixed navbars in media queries
.container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container { .span(12); }
Expand Down
5 changes: 5 additions & 0 deletions less/navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@
.border-radius(0);
}

.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
#grid > .core > .span(@gridColumns);
}

// Fixed to top
.navbar-fixed-top {
top: 0;
Expand Down

0 comments on commit fbebb04

Please sign in to comment.