]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update docs to use .mt-1 on floated labels; clarify docs for guidance
authorMark Otto <markdotto@gmail.com>
Tue, 20 Dec 2016 23:02:07 +0000 (15:02 -0800)
committerMark Otto <markd.otto@gmail.com>
Wed, 21 Dec 2016 06:55:01 +0000 (22:55 -0800)
docs/components/list-group.md

index 820470bbba4d2cc448e5982446bc5310ef48c691..8a02f986482b1fedc87a314dcd70bcba40712231 100644 (file)
@@ -27,26 +27,26 @@ The most basic list group is simply an unordered list with list items, and the p
 
 ## Badge
 
-Add badges to any list group item to show unread counts, activity, etc.
+Add badges to any list group item to show unread counts, activity, and more with the help of some utilities. Below we use `.float-right` and `.mt-1` to align the badge to this example's specific needs, but you may need different or additional utilities.
 
 {% example html %}
 <ul class="list-group">
   <li class="list-group-item">
-    <span class="badge badge-default badge-pill float-right">14</span>
+    <span class="badge badge-default badge-pill float-right mt-1">14</span>
     Cras justo odio
   </li>
   <li class="list-group-item">
-    <span class="badge badge-default badge-pill float-right">2</span>
+    <span class="badge badge-default badge-pill float-right mt-1">2</span>
     Dapibus ac facilisis in
   </li>
   <li class="list-group-item">
-    <span class="badge badge-default badge-pill float-right">1</span>
+    <span class="badge badge-default badge-pill float-right mt-1">1</span>
     Morbi leo risus
   </li>
 </ul>
 {% endexample %}
 
-When in flexbox mode, you'll need to rearrange the contents of your list group items. To replicate the right-aligned badges as shown above, use the following example's code. Note the [`flex-items-between` utility class]({{ site.baseurl }}/layout/flexbox-grid/#horizontal-alignment), the badge's placement, and the lack of a float utility on the badges.
+When in flexbox mode, you'll need to rearrange the contents of your list group items. To replicate the right-aligned badges as shown above, use the following example's code. Note the [`flex-items-between` utility class]({{ site.baseurl }}/layout/flexbox-grid/#horizontal-alignment), the badge's placement, and the lack of a float and margin utilities on the badges.
 
 {% highlight html %}
 <ul class="list-group">