mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
Adding contextual styles to list-items
This commit is contained in:
@@ -448,6 +448,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
// List Groups
|
||||
// -------------------------
|
||||
.list-group-item-variant(@state; @background; @border) {
|
||||
.list-group > .list-group-item.@{state} {
|
||||
background-color: @background;
|
||||
border-color: @border;
|
||||
}
|
||||
|
||||
// Hover states
|
||||
.list-group > .list-group-item.@{state}:hover {
|
||||
background-color: darken(@background, 5%);
|
||||
border-color: darken(@border, 5%);
|
||||
}
|
||||
}
|
||||
|
||||
// Button variants
|
||||
// -------------------------
|
||||
// Easily pump out default styles, as well as :hover, :focus, :active,
|
||||
|
||||
Reference in New Issue
Block a user