1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

fixes #9063: add var for navbar border radius

This commit is contained in:
Mark Otto 2013-08-05 00:47:23 -07:00
parent 52266cfdcd
commit 11e46845b2
3 changed files with 5 additions and 2 deletions

View file

@ -710,6 +710,8 @@ base_url: "../"
<input type="text" class="form-control" placeholder="#777"> <input type="text" class="form-control" placeholder="#777">
<label>@navbar-bg</label> <label>@navbar-bg</label>
<input type="text" class="form-control" placeholder="#eee"> <input type="text" class="form-control" placeholder="#eee">
<label>@navbar-border-radius</label>
<input type="text" class="form-control" placeholder="@border-radius-base">
<h4>Links</h4> <h4>Links</h4>
<label>@navbar-link-color</label> <label>@navbar-link-color</label>
<input type="text" class="form-control" placeholder="#777"> <input type="text" class="form-control" placeholder="#777">

View file

@ -10,7 +10,7 @@
padding-left: @navbar-padding-horizontal; padding-left: @navbar-padding-horizontal;
padding-right: @navbar-padding-horizontal; padding-right: @navbar-padding-horizontal;
background-color: @navbar-bg; background-color: @navbar-bg;
border-radius: @border-radius-base; border-radius: @navbar-border-radius;
// Prevent floats from breaking the navbar // Prevent floats from breaking the navbar
.clearfix(); .clearfix();

View file

@ -219,6 +219,7 @@
@navbar-height: 50px; @navbar-height: 50px;
@navbar-color: #777; @navbar-color: #777;
@navbar-bg: #eee; @navbar-bg: #eee;
@navbar-border-radius: @border-radius-base;
@navbar-padding-horizontal: floor(@grid-gutter-width / 2); // ~15px @navbar-padding-horizontal: floor(@grid-gutter-width / 2); // ~15px
@navbar-padding-vertical: ((@navbar-height - @line-height-computed) / 2); @navbar-padding-vertical: ((@navbar-height - @line-height-computed) / 2);