3 // --------------------------------------------------
7 // Easily usable on <ul>, <ol>, or <div>.
10 // No need to set list-style: none; since .list-group-item is block level
12 padding-left: 0; // reset padding because ul and ol
15 // Individual list items
17 // Use on `li`s or `div`s within the `.list-group` parent.
23 // Place the border on the list items and negative margin up for better styling
25 background-color: $list-group-bg;
26 border: 1px solid $list-group-border;
28 // Round the first and last items
30 @include border-top-radius($list-group-border-radius);
34 @include border-bottom-radius($list-group-border-radius);
38 // Interactive list items
40 // Use anchor or button elements instead of `li`s or `div`s to create interactive items.
41 // Includes an extra `.active` modifier class for showing selected items.
44 button.list-group-item {
45 color: $list-group-link-color;
47 .list-group-item-heading {
48 color: $list-group-link-heading-color;
54 text-decoration: none;
55 color: $list-group-link-hover-color;
56 background-color: $list-group-hover-bg;
60 button.list-group-item {
70 background-color: $list-group-disabled-bg;
71 color: $list-group-disabled-color;
72 cursor: $cursor-disabled;
74 // Force color to inherit for custom content
75 .list-group-item-heading {
78 .list-group-item-text {
79 color: $list-group-disabled-text-color;
83 // Active class on item itself, not parent
87 z-index: 2; // Place active items above their siblings for proper border styling
88 color: $list-group-active-color;
89 background-color: $list-group-active-bg;
90 border-color: $list-group-active-border;
92 // Force color to inherit for custom content
93 .list-group-item-heading,
94 .list-group-item-heading > small,
95 .list-group-item-heading > .small {
98 .list-group-item-text {
99 color: $list-group-active-text-color;
104 // Contextual variants
106 // Add modifier classes to change text and background color on individual items.
107 // Organizationally, this must come after the `:hover` states.
109 @include list-group-item-variant(success, $state-success-bg, $state-success-text);
110 @include list-group-item-variant(info, $state-info-bg, $state-info-text);
111 @include list-group-item-variant(warning, $state-warning-bg, $state-warning-text);
112 @include list-group-item-variant(danger, $state-danger-bg, $state-danger-text);
114 // Custom content options
116 // Extra classes for creating well-formatted content within `.list-group-item`s.
118 .list-group-item-heading {
123 .list-group-item-text {