|
98 | 98 | align-items: center; // 2. vertically center contents
|
99 | 99 | justify-content: center; // 3. horizontally center contents
|
100 | 100 | width: $carousel-control-width;
|
101 |
| - color: $carousel-control-color; |
| 101 | + color: var(--#{$variable-prefix}carousel-control-color, $carousel-control-color); |
102 | 102 | text-align: center;
|
103 | 103 | opacity: $carousel-control-opacity;
|
104 | 104 | @include transition($carousel-control-transition);
|
105 | 105 |
|
106 | 106 | // Hover/focus state
|
107 | 107 | &:hover,
|
108 | 108 | &:focus {
|
109 |
| - color: $carousel-control-color; |
| 109 | + color: var(--#{$variable-prefix}carousel-control-color, $carousel-control-color); |
110 | 110 | text-decoration: none;
|
111 | 111 | outline: 0;
|
112 | 112 | opacity: $carousel-control-hover-opacity;
|
|
175 | 175 | margin-left: $carousel-indicator-spacer;
|
176 | 176 | text-indent: -999px;
|
177 | 177 | cursor: pointer;
|
178 |
| - background-color: $carousel-indicator-active-bg; |
| 178 | + background-color: var(--#{$variable-prefix}carousel-indicator-active-bg, $carousel-indicator-active-bg); |
179 | 179 | background-clip: padding-box;
|
180 | 180 | // Use transparent borders to increase the hit area by 10px on top and bottom.
|
181 | 181 | border-top: $carousel-indicator-hit-area-height solid transparent;
|
|
201 | 201 | left: (100% - $carousel-caption-width) / 2;
|
202 | 202 | padding-top: $carousel-caption-padding-y;
|
203 | 203 | padding-bottom: $carousel-caption-padding-y;
|
204 |
| - color: $carousel-caption-color; |
| 204 | + color: var(--#{$variable-prefix}carousel-caption-color, $carousel-caption-color); |
205 | 205 | text-align: center;
|
206 | 206 | }
|
207 | 207 |
|
208 | 208 | // Dark mode carousel
|
209 | 209 |
|
210 | 210 | .carousel-dark {
|
| 211 | + --#{$variable-prefix}carousel-indicator-active-bg: #{$carousel-dark-indicator-active-bg}; |
| 212 | + --#{$variable-prefix}carousel-caption-color: #{$carousel-dark-caption-color}; |
211 | 213 | .carousel-control-prev-icon,
|
212 | 214 | .carousel-control-next-icon {
|
213 | 215 | filter: $carousel-dark-control-icon-filter;
|
214 | 216 | }
|
215 |
| - |
216 |
| - .carousel-indicators li { |
217 |
| - background-color: $carousel-dark-indicator-active-bg; |
218 |
| - } |
219 |
| - |
220 |
| - .carousel-caption { |
221 |
| - color: $carousel-dark-caption-color; |
222 |
| - } |
223 | 217 | }
|
0 commit comments