]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Adds button styles to `.list-group-item`
authorZac Echola <zac.echola@so.mnscu.edu>
Thu, 2 Apr 2015 19:07:53 +0000 (14:07 -0500)
committerZac Echola <zac.echola@so.mnscu.edu>
Thu, 2 Apr 2015 19:07:53 +0000 (14:07 -0500)
Includes buttons with anchor sytles and modifies buttons to match width
and text alignment.

less/list-group.less
less/mixins/list-group.less

index 1462ce16b325082f98f78d8e28535fe96e86f1da..216b91230ab6fa786b0a8d53bc2e60004baec147 100644 (file)
 }
 
 
-// Linked list items
+// Interactive list items
 //
-// Use anchor elements instead of `li`s or `div`s to create linked list items.
+// Use anchor or button elements instead of `li`s or `div`s to create interactive items.
 // Includes an extra `.active` modifier class for showing selected items.
 
-a.list-group-item {
+a.list-group-item,
+button.list-group-item {
   color: @list-group-link-color;
 
   .list-group-item-heading {
@@ -59,6 +60,11 @@ a.list-group-item {
   }
 }
 
+button.list-group-item {
+  width: 100%;
+  text-align: left;
+}
+
 .list-group-item {
   // Disabled state
   &.disabled,
index 8b5b065cb84cec3364d028e046b3fd24878f20b1..03aa19069d954a3db712462f17d073eca6a9498f 100644 (file)
@@ -5,7 +5,8 @@
     color: @color;
     background-color: @background;
 
-    a& {
+    a&,
+    button& {
       color: @color;
 
       .list-group-item-heading {