]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
rename control left and right to prev and next; simplify styling by removing gradient
authorMark Otto <markdotto@gmail.com>
Mon, 5 Dec 2016 05:54:04 +0000 (21:54 -0800)
committerMark Otto <markdotto@gmail.com>
Mon, 5 Dec 2016 05:54:04 +0000 (21:54 -0800)
scss/_carousel.scss

index a8234516f5bbf2661d8ace0d3e1cd4fe7b3c3bb7..e15fba8fbdc9852dfca1403fa0fdc3bb0dbafb57 100644 (file)
   position: absolute;
   top: 0;
   bottom: 0;
-  left: 0;
   width: $carousel-control-width;
   font-size: $carousel-control-font-size;
   color: $carousel-control-color;
   text-align: center;
   opacity: $carousel-control-opacity;
-  // We can't have this transition here because WebKit cancels the carousel
+  // We can't have a transition here because WebKit cancels the carousel
   // animation if you trip this while in the middle of another animation.
 
-  // Set gradients for backgrounds
-  &.carousel-control-left {
-    @include gradient-x($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
-  }
-
-  &.carousel-control-right {
-    right: 0;
-    left: auto;
-    @include gradient-x($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
-  }
-
   // Hover/focus state
   @include hover-focus {
     color: $carousel-control-color;
     opacity: .9;
   }
 }
+.carousel-control-prev {
+  left: 0;
+}
+.carousel-control-next {
+  right: 0;
+}
 
 // Toggles
 .carousel-control-icon-prev,