]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix vertical alignment of carousel navigation arrows. 9828/head
authoral // @idest <cmdoptesc@users.noreply.github.com>
Mon, 19 Aug 2013 07:54:54 +0000 (00:54 -0700)
committeral // @idest <cmdoptesc@users.noreply.github.com>
Mon, 19 Aug 2013 07:54:54 +0000 (00:54 -0700)
Navigation arrows were aligned to the top of page. Vertically centered them in this fix.

examples/carousel/carousel.css

index cdcbe2f7856583685704ae0c4e29f6477aa808b8..1ac82e089cb66c24f875bf526ca99d0fd01c8e75 100644 (file)
@@ -18,6 +18,12 @@ body {
   z-index: 15;
 }
 
+/* Vertically aligns left and right chevrons. */
+.carousel-control > .glyphicon-chevron-left, .carousel-control > .glyphicon-chevron-right {
+  position: absolute;
+  display: inline-block;
+  top: 50%;
+}
 
 
 /* CUSTOMIZE THE CAROUSEL