diff options
| author | Mark Otto <[email protected]> | 2016-05-15 12:29:56 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-05-15 12:29:56 -0700 |
| commit | dfa2536c3b7070207a2d1fb21873639b41ae405c (patch) | |
| tree | 034609e25d3544f3860416daad1951f7b1b2c777 /docs/components | |
| parent | 5a5ca44a3b3a73c38c56764e4174385dbb80574c (diff) | |
| download | bootstrap-dfa2536c3b7070207a2d1fb21873639b41ae405c.tar.xz bootstrap-dfa2536c3b7070207a2d1fb21873639b41ae405c.zip | |
Restore .navbar-text and add some basic examples to the docs /cc #18049
Diffstat (limited to 'docs/components')
| -rw-r--r-- | docs/components/navbar.md | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 10d6547d0..086d49bcb 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -68,7 +68,6 @@ The `.navbar-brand` can be applied to most elements, but an anchor works best as <nav class="navbar navbar-light bg-faded"> <h1 class="navbar-brand m-b-0">Navbar</h1> </nav> - {% endexample %} ### Nav @@ -137,6 +136,24 @@ You may also utilize dropdowns in your navbar nav. Dropdown menus require a wrap </nav> {% endexample %} +### Text + +Navbars may contain bits of text with the help of `.navbar-text`. This class adjusts vertical alignment and horizontal spacing for strings of text. + +{% example html %} +<nav class="navbar navbar-light bg-faded"> + <span class="navbar-text">Navbar text with an inline element</span> +</nav> +{% endexample %} + +Using our utility classes, you can change the alignment of your navbar text. + +{% example html %} +<nav class="navbar navbar-light bg-faded"> + <span class="navbar-text pull-xs-right">Navbar text that's floated right</span> +</nav> +{% endexample %} + ## Color schemes |
