0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Carousel variables (#29493)

This commit is contained in:
leshasmp 2019-10-12 17:09:04 +05:00 committed by Martijn Cuppens
parent 09e6af48d7
commit 64e22b4284
2 changed files with 5 additions and 3 deletions

View File

@ -188,10 +188,10 @@
.carousel-caption { .carousel-caption {
position: absolute; position: absolute;
right: (100% - $carousel-caption-width) / 2; right: (100% - $carousel-caption-width) / 2;
bottom: 20px; bottom: $carousel-caption-spacer;
left: (100% - $carousel-caption-width) / 2; left: (100% - $carousel-caption-width) / 2;
padding-top: 20px; padding-top: $carousel-caption-padding-y;
padding-bottom: 20px; padding-bottom: $carousel-caption-padding-y;
color: $carousel-caption-color; color: $carousel-caption-color;
text-align: center; text-align: center;
} }

View File

@ -1080,6 +1080,8 @@ $carousel-indicator-transition: opacity .6s ease !default;
$carousel-caption-width: 70% !default; $carousel-caption-width: 70% !default;
$carousel-caption-color: $white !default; $carousel-caption-color: $white !default;
$carousel-caption-padding-y: 1.25rem !default;
$carousel-caption-spacer: 1.25rem !default;
$carousel-control-icon-width: 20px !default; $carousel-control-icon-width: 20px !default;