Skip to content

Commit 64e22b4

Browse files
leshasmpMartijnCuppens
authored andcommitted
Carousel variables (#29493)
1 parent 09e6af4 commit 64e22b4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scss/_carousel.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@
188188
.carousel-caption {
189189
position: absolute;
190190
right: (100% - $carousel-caption-width) / 2;
191-
bottom: 20px;
191+
bottom: $carousel-caption-spacer;
192192
left: (100% - $carousel-caption-width) / 2;
193-
padding-top: 20px;
194-
padding-bottom: 20px;
193+
padding-top: $carousel-caption-padding-y;
194+
padding-bottom: $carousel-caption-padding-y;
195195
color: $carousel-caption-color;
196196
text-align: center;
197197
}

scss/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,8 @@ $carousel-indicator-transition: opacity .6s ease !default;
10801080

10811081
$carousel-caption-width: 70% !default;
10821082
$carousel-caption-color: $white !default;
1083+
$carousel-caption-padding-y: 1.25rem !default;
1084+
$carousel-caption-spacer: 1.25rem !default;
10831085

10841086
$carousel-control-icon-width: 20px !default;
10851087

0 commit comments

Comments
 (0)