mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Adds button styles to .list-group-item
Includes buttons with anchor sytles and modifies buttons to match width and text alignment.
This commit is contained in:
parent
38f48d6471
commit
e46c998316
@ -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.
|
// 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;
|
color: @list-group-link-color;
|
||||||
|
|
||||||
.list-group-item-heading {
|
.list-group-item-heading {
|
||||||
@ -59,6 +60,11 @@ a.list-group-item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button.list-group-item {
|
||||||
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.list-group-item {
|
.list-group-item {
|
||||||
// Disabled state
|
// Disabled state
|
||||||
&.disabled,
|
&.disabled,
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
color: @color;
|
color: @color;
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
|
|
||||||
a& {
|
a&,
|
||||||
|
button& {
|
||||||
color: @color;
|
color: @color;
|
||||||
|
|
||||||
.list-group-item-heading {
|
.list-group-item-heading {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user