}
.carousel-control-prev {
left: 0;
- @if $enable-gradients {
- background-image: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
- }
+ background-image: if($enable-gradients, linear-gradient(90deg, rgba($black, .25), rgba($black, .001)), null);
}
.carousel-control-next {
right: 0;
- @if $enable-gradients {
- background-image: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
- }
+ background-image: if($enable-gradients, linear-gradient(270deg, rgba($black, .25), rgba($black, .001)), null);
}
// Icons for within
pointer-events: none;
background-color: transparent;
// Remove CSS gradients if they're enabled
- @if $enable-gradients {
- background-image: none;
- }
+ background-image: if($enable-gradients, none, null);
}
}
.show > &.dropdown-toggle {
color: $active-color;
background-color: $active-background;
- @if $enable-gradients {
- background-image: none; // Remove the gradient for the pressed/active state
- }
+ // Remove CSS gradients if they're enabled
+ background-image: if($enable-gradients, none, null);
border-color: $active-border;
&:focus {
&.disabled {
color: $color;
background-color: $background;
- border-color: $border;
// Remove CSS gradients if they're enabled
- @if $enable-gradients {
- background-image: none;
- }
+ background-image: if($enable-gradients, none, null);
+ border-color: $border;
}
}