123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- .list-group {
-
- margin-bottom: 20px;
- padding-left: 0;
- }
- .list-group-item {
- position: relative;
- display: block;
- padding: 10px 15px;
-
- margin-bottom: -1px;
- background-color: $list-group-bg;
- border: 1px solid $list-group-border;
-
- &:first-child {
- @include border-top-radius($list-group-border-radius);
- }
- &:last-child {
- margin-bottom: 0;
- @include border-bottom-radius($list-group-border-radius);
- }
-
- > .badge {
- float: right;
- }
- > .badge + .badge {
- margin-right: 5px;
- }
- }
- a.list-group-item {
- color: $list-group-link-color;
- .list-group-item-heading {
- color: $list-group-link-heading-color;
- }
-
- &:hover,
- &:focus {
- text-decoration: none;
- background-color: $list-group-hover-bg;
- }
-
- &.active,
- &.active:hover,
- &.active:focus {
- z-index: 2;
- color: $list-group-active-color;
- background-color: $list-group-active-bg;
- border-color: $list-group-active-border;
-
- .list-group-item-heading {
- color: inherit;
- }
- .list-group-item-text {
- color: $list-group-active-text-color;
- }
- }
- }
- @include list-group-item-variant(success, $state-success-bg, $state-success-text);
- @include list-group-item-variant(info, $state-info-bg, $state-info-text);
- @include list-group-item-variant(warning, $state-warning-bg, $state-warning-text);
- @include list-group-item-variant(danger, $state-danger-bg, $state-danger-text);
- .list-group-item-heading {
- margin-top: 0;
- margin-bottom: 5px;
- }
- .list-group-item-text {
- margin-bottom: 0;
- line-height: 1.3;
- }
|