]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Restore .navbar-text and add some basic examples to the docs /cc #18049
authorMark Otto <markdotto@gmail.com>
Sun, 15 May 2016 19:29:56 +0000 (12:29 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 15 May 2016 19:29:56 +0000 (12:29 -0700)
docs/components/navbar.md
scss/_navbar.scss

index 10d6547d0d547f00ad5983e0665efbc3196429c2..086d49bcba8c620b42c919dcc82c5a97daa798f6 100644 (file)
@@ -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
 
index 9d3db1b263c109f57539a114e58a392357479e3e..64409f715a224bec9701c1acca0ac3588f25ef31 100644 (file)
 }
 
 
+// Navbar text
+//
+//
+
+.navbar-text {
+  display: inline-block;
+  padding-top:    .425rem;
+  padding-bottom: .425rem;
+}
+
+
 // Navbar toggle
 //
 // Custom button for toggling the `.navbar-collapse`, powered by the collapse