1 |
|
2 |
|
3 |
|
4 |
|
5 | .list-group {
|
6 | display: flex;
|
7 | flex-direction: column;
|
8 |
|
9 |
|
10 | padding-left: 0;
|
11 | margin-bottom: 0;
|
12 | @include border-radius($list-group-border-radius);
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | .list-group-item-action {
|
22 | width: 100%;
|
23 | color: $list-group-action-color;
|
24 | text-align: inherit;
|
25 |
|
26 |
|
27 | @include hover-focus() {
|
28 | z-index: 1;
|
29 | color: $list-group-action-hover-color;
|
30 | text-decoration: none;
|
31 | background-color: $list-group-hover-bg;
|
32 | }
|
33 |
|
34 | &:active {
|
35 | color: $list-group-action-active-color;
|
36 | background-color: $list-group-action-active-bg;
|
37 | }
|
38 | }
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | .list-group-item {
|
46 | position: relative;
|
47 | display: block;
|
48 | padding: $list-group-item-padding-y $list-group-item-padding-x;
|
49 | color: $list-group-color;
|
50 | text-decoration: if($link-decoration == none, null, none);
|
51 | background-color: $list-group-bg;
|
52 | border: $list-group-border-width solid $list-group-border-color;
|
53 |
|
54 | &:first-child {
|
55 | @include border-top-radius(inherit);
|
56 | }
|
57 |
|
58 | &:last-child {
|
59 | @include border-bottom-radius(inherit);
|
60 | }
|
61 |
|
62 | &.disabled,
|
63 | &:disabled {
|
64 | color: $list-group-disabled-color;
|
65 | pointer-events: none;
|
66 | background-color: $list-group-disabled-bg;
|
67 | }
|
68 |
|
69 |
|
70 | &.active {
|
71 | z-index: 2;
|
72 | color: $list-group-active-color;
|
73 | background-color: $list-group-active-bg;
|
74 | border-color: $list-group-active-border-color;
|
75 | }
|
76 |
|
77 | & + & {
|
78 | border-top-width: 0;
|
79 |
|
80 | &.active {
|
81 | margin-top: -$list-group-border-width;
|
82 | border-top-width: $list-group-border-width;
|
83 | }
|
84 | }
|
85 | }
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | @each $breakpoint in map-keys($grid-breakpoints) {
|
93 | @include media-breakpoint-up($breakpoint) {
|
94 | $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
95 |
|
96 | .list-group-horizontal#{$infix} {
|
97 | flex-direction: row;
|
98 |
|
99 | > .list-group-item {
|
100 | &:first-child {
|
101 | @include border-bottom-left-radius($list-group-border-radius);
|
102 | @include border-top-right-radius(0);
|
103 | }
|
104 |
|
105 | &:last-child {
|
106 | @include border-top-right-radius($list-group-border-radius);
|
107 | @include border-bottom-left-radius(0);
|
108 | }
|
109 |
|
110 | &.active {
|
111 | margin-top: 0;
|
112 | }
|
113 |
|
114 | & + .list-group-item {
|
115 | border-top-width: $list-group-border-width;
|
116 | border-left-width: 0;
|
117 |
|
118 | &.active {
|
119 | margin-left: -$list-group-border-width;
|
120 | border-left-width: $list-group-border-width;
|
121 | }
|
122 | }
|
123 | }
|
124 | }
|
125 | }
|
126 | }
|
127 |
|
128 |
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 | .list-group-flush {
|
135 | @include border-radius(0);
|
136 |
|
137 | > .list-group-item {
|
138 | border-width: 0 0 $list-group-border-width;
|
139 |
|
140 | &:last-child {
|
141 | border-bottom-width: 0;
|
142 | }
|
143 | }
|
144 | }
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 | @each $color, $value in $theme-colors {
|
153 | @include list-group-item-variant($color, theme-color-level($color, -9), theme-color-level($color, 6));
|
154 | }
|