1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

Extract $carousel-caption{-sm-up}-width variables

[skip sauce]
[skip validator]
This commit is contained in:
Chris Rebert
2016-02-16 21:32:39 -08:00
parent 79c955f019
commit cbdb043ee3
2 changed files with 6 additions and 4 deletions

View File

@@ -200,9 +200,9 @@
.carousel-caption { .carousel-caption {
position: absolute; position: absolute;
right: 15%; right: ((100% - $carousel-caption-width) / 2);
bottom: 20px; bottom: 20px;
left: 15%; left: ((100% - $carousel-caption-width) / 2);
z-index: 10; z-index: 10;
padding-top: 20px; padding-top: 20px;
padding-bottom: 20px; padding-bottom: 20px;
@@ -240,8 +240,8 @@
// Show and left align the captions // Show and left align the captions
.carousel-caption { .carousel-caption {
right: 20%; right: ((100% - $carousel-caption-sm-up-width) / 2);
left: 20%; left: ((100% - $carousel-caption-sm-up-width) / 2);
padding-bottom: 30px; padding-bottom: 30px;
} }

View File

@@ -769,6 +769,8 @@ $carousel-control-font-size: 20px !default;
$carousel-indicator-active-bg: #fff !default; $carousel-indicator-active-bg: #fff !default;
$carousel-indicator-border-color: #fff !default; $carousel-indicator-border-color: #fff !default;
$carousel-caption-width: 70% !default;
$carousel-caption-sm-up-width: 60% !default;
$carousel-caption-color: #fff !default; $carousel-caption-color: #fff !default;