3 // --------------------------------------------------
8 // Easily usable on <ul>, <ol>, or <div>.
11 // No need to set list-style: none; since .list-group-item is block level
13 padding-left: 0; // reset padding because ul and ol
17 // Individual list items
19 // Use on `li`s or `div`s within the `.list-group` parent.
25 // Place the border on the list items and negative margin up for better styling
27 background-color: @list-group-bg;
28 border: 1px solid @list-group-border;
30 // Round the first and last items
32 .border-top-radius(@list-group-border-radius);
36 .border-bottom-radius(@list-group-border-radius);
43 // Use anchor elements instead of `li`s or `div`s to create linked list items.
44 // Includes an extra `.active` modifier class for showing selected items.
47 color: @list-group-link-color;
49 .list-group-item-heading {
50 color: @list-group-link-heading-color;
56 text-decoration: none;
57 color: @list-group-link-hover-color;
58 background-color: @list-group-hover-bg;
67 background-color: @list-group-disabled-bg;
68 color: @list-group-disabled-color;
69 cursor: @cursor-disabled;
71 // Force color to inherit for custom content
72 .list-group-item-heading {
75 .list-group-item-text {
76 color: @list-group-disabled-text-color;
80 // Active class on item itself, not parent
84 z-index: 2; // Place active items above their siblings for proper border styling
85 color: @list-group-active-color;
86 background-color: @list-group-active-bg;
87 border-color: @list-group-active-border;
89 // Force color to inherit for custom content
90 .list-group-item-heading,
91 .list-group-item-heading > small,
92 .list-group-item-heading > .small {
95 .list-group-item-text {
96 color: @list-group-active-text-color;
102 // Contextual variants
104 // Add modifier classes to change text and background color on individual items.
105 // Organizationally, this must come after the `:hover` states.
107 .list-group-item-variant(success; @state-success-bg; @state-success-text);
108 .list-group-item-variant(info; @state-info-bg; @state-info-text);
109 .list-group-item-variant(warning; @state-warning-bg; @state-warning-text);
110 .list-group-item-variant(danger; @state-danger-bg; @state-danger-text);
113 // Custom content options
115 // Extra classes for creating well-formatted content within `.list-group-item`s.
117 .list-group-item-heading {
121 .list-group-item-text {