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 | }
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | .list-group-item-action {
|
21 | width: 100%;
|
22 | color: $list-group-action-color;
|
23 | text-align: inherit;
|
24 |
|
25 |
|
26 | @include hover-focus {
|
27 | color: $list-group-action-hover-color;
|
28 | text-decoration: none;
|
29 | background-color: $list-group-hover-bg;
|
30 | }
|
31 |
|
32 | &:active {
|
33 | color: $list-group-action-active-color;
|
34 | background-color: $list-group-action-active-bg;
|
35 | }
|
36 | }
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | .list-group-item {
|
44 | position: relative;
|
45 | display: block;
|
46 | padding: $list-group-item-padding-y $list-group-item-padding-x;
|
47 |
|
48 | margin-bottom: -$list-group-border-width;
|
49 | background-color: $list-group-bg;
|
50 | border: $list-group-border-width solid $list-group-border-color;
|
51 |
|
52 | &:first-child {
|
53 | @include border-top-radius($list-group-border-radius);
|
54 | }
|
55 |
|
56 | &:last-child {
|
57 | margin-bottom: 0;
|
58 | @include border-bottom-radius($list-group-border-radius);
|
59 | }
|
60 |
|
61 | @include hover-focus {
|
62 | z-index: 1;
|
63 | text-decoration: none;
|
64 | }
|
65 |
|
66 | &.disabled,
|
67 | &:disabled {
|
68 | color: $list-group-disabled-color;
|
69 | background-color: $list-group-disabled-bg;
|
70 | }
|
71 |
|
72 |
|
73 | &.active {
|
74 | z-index: 2;
|
75 | color: $list-group-active-color;
|
76 | background-color: $list-group-active-bg;
|
77 | border-color: $list-group-active-border-color;
|
78 | }
|
79 | }
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 | .list-group-flush {
|
88 | .list-group-item {
|
89 | border-right: 0;
|
90 | border-left: 0;
|
91 | @include border-radius(0);
|
92 | }
|
93 |
|
94 | &:first-child {
|
95 | .list-group-item:first-child {
|
96 | border-top: 0;
|
97 | }
|
98 | }
|
99 |
|
100 | &:last-child {
|
101 | .list-group-item:last-child {
|
102 | border-bottom: 0;
|
103 | }
|
104 | }
|
105 | }
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 | @each $color, $value in $theme-colors {
|
114 | @include list-group-item-variant($color, theme-color-level($color, -9), theme-color-level($color, 6));
|
115 | }
|