]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Extract $carousel-caption{-sm-up}-width variables 19242/head
authorChris Rebert <code@chrisrebert.com>
Wed, 17 Feb 2016 05:32:39 +0000 (21:32 -0800)
committerChris Rebert <code@chrisrebert.com>
Wed, 17 Feb 2016 05:45:16 +0000 (21:45 -0800)
[skip sauce]
[skip validator]

scss/_carousel.scss
scss/_variables.scss

index d6c7eda014f047f862d242a68cd0c03d9dad9ed8..06350ccd34267271657df66b1ae4e0f1746d6897 100644 (file)
 
 .carousel-caption {
   position: absolute;
-  right: 15%;
+  right: ((100% - $carousel-caption-width) / 2);
   bottom: 20px;
-  left: 15%;
+  left: ((100% - $carousel-caption-width) / 2);
   z-index: 10;
   padding-top: 20px;
   padding-bottom: 20px;
 
   // Show and left align the captions
   .carousel-caption {
-    right: 20%;
-    left: 20%;
+    right: ((100% - $carousel-caption-sm-up-width) / 2);
+    left: ((100% - $carousel-caption-sm-up-width) / 2);
     padding-bottom: 30px;
   }
 
index c02af45f556ad933cf1bf984412004ac7a04da69..a27a5d16bae10e22652b7baff36f5674ddec2ca2 100644 (file)
@@ -769,6 +769,8 @@ $carousel-control-font-size:                  20px !default;
 $carousel-indicator-active-bg:                #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;