diff options
| author | Mark Otto <[email protected]> | 2015-05-13 21:35:39 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-05-13 21:35:39 -0700 |
| commit | c5babda02f7fc2143394bb3b11c5c4d2f9881341 (patch) | |
| tree | a6d9cb5ae8cfdef754f89489e5bcf26ca61bf610 /less | |
| parent | 82279a8eb28fcddf24ecdf524686583e408b5191 (diff) | |
| parent | fa2cdd44bc0f0d739bcf91683f0288b0adc2bed1 (diff) | |
| download | bootstrap-c5babda02f7fc2143394bb3b11c5c4d2f9881341.tar.xz bootstrap-c5babda02f7fc2143394bb3b11c5c4d2f9881341.zip | |
Merge pull request #16215 from zacechola/list_group_buttons
Adds button styles to `.list-group-item`
Diffstat (limited to 'less')
| -rw-r--r-- | less/list-group.less | 12 | ||||
| -rw-r--r-- | less/mixins/list-group.less | 3 |
2 files changed, 11 insertions, 4 deletions
diff --git a/less/list-group.less b/less/list-group.less index 1462ce16b..216b91230 100644 --- a/less/list-group.less +++ b/less/list-group.less @@ -38,12 +38,13 @@ } -// 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, diff --git a/less/mixins/list-group.less b/less/mixins/list-group.less index 8b5b065cb..03aa19069 100644 --- a/less/mixins/list-group.less +++ b/less/mixins/list-group.less @@ -5,7 +5,8 @@ color: @color; background-color: @background; - a& { + a&, + button& { color: @color; .list-group-item-heading { |
