Improve buttons in navbars
* Add top margin, calculated by subtracting height of an input from height of a navbar, and dividing by two * Uses the same method as .navbar-form * To use, add .navbar-btn to any button outside a form element * Also add section to docs detailing buttons in navbars, and add more ids for the other unlinked and unmentioned sections in the side nav
This commit is contained in:
parent
23ae6405f5
commit
94792b9dae
3 changed files with 23 additions and 18 deletions
|
|
@ -3522,13 +3522,19 @@ For example, <code><section></code> should be wrapped as inline.
|
|||
</form>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Component alignment</h3>
|
||||
<h3 id="navbar-buttons">Buttons</h3>
|
||||
<p>For buttons not residing in a <code><form></code>, add this class to vertically center buttons within a navbar.</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="navbar">
|
||||
<a href="#" class="navbar-brand">Derp</a>
|
||||
<button type="button" class="btn">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 id="navbar-component-alignment">Component alignment</h3>
|
||||
<p>Align nav links, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>
|
||||
|
||||
<h3>Using dropdowns</h3>
|
||||
<p>Add dropdowns and dropups to the nav with a bit of markup and the <a href="./javascript.html#dropdowns">dropdowns JavaScript plugin</a>.</p>
|
||||
|
||||
<h3>Text</h3>
|
||||
<h3 id="navbar-text">Text</h3>
|
||||
<p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code><p></code> tag for proper leading and color.</p>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue