mirror of https://github.com/twbs/bootstrap.git
Re-add carousel control transition (#27277)
This commit is contained in:
parent
59f1802e98
commit
c9a43b027a
|
@ -116,15 +116,14 @@
|
||||||
color: $carousel-control-color;
|
color: $carousel-control-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: $carousel-control-opacity;
|
opacity: $carousel-control-opacity;
|
||||||
// We can't have a transition here because WebKit cancels the carousel
|
@include transition($carousel-control-transition);
|
||||||
// animation if you trip this while in the middle of another animation.
|
|
||||||
|
|
||||||
// Hover/focus state
|
// Hover/focus state
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
color: $carousel-control-color;
|
color: $carousel-control-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
opacity: .9;
|
opacity: $carousel-control-hover-opacity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.carousel-control-prev {
|
.carousel-control-prev {
|
||||||
|
|
|
@ -965,6 +965,8 @@ $breadcrumb-border-radius: $border-radius !default;
|
||||||
$carousel-control-color: $white !default;
|
$carousel-control-color: $white !default;
|
||||||
$carousel-control-width: 15% !default;
|
$carousel-control-width: 15% !default;
|
||||||
$carousel-control-opacity: .5 !default;
|
$carousel-control-opacity: .5 !default;
|
||||||
|
$carousel-control-hover-opacity: .9 !default;
|
||||||
|
$carousel-control-transition: opacity .15s ease !default;
|
||||||
|
|
||||||
$carousel-indicator-width: 30px !default;
|
$carousel-indicator-width: 30px !default;
|
||||||
$carousel-indicator-height: 3px !default;
|
$carousel-indicator-height: 3px !default;
|
||||||
|
|
Loading…
Reference in New Issue