From 8b24c47788d71565047125470a5cb7acf1f5f591 Mon Sep 17 00:00:00 2001 From: "al // @idest" Date: Mon, 19 Aug 2013 00:49:28 -0700 Subject: [PATCH 1/2] Add background-color to carousel. Set a background color for the carousel example so that white text is now legible. Also fixed typo on line 97. --- examples/carousel/carousel.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/carousel/carousel.css b/examples/carousel/carousel.css index 452fdfeed2..cdcbe2f785 100644 --- a/examples/carousel/carousel.css +++ b/examples/carousel/carousel.css @@ -38,6 +38,7 @@ body { /* Declare heights because of positioning of img element */ .carousel .item { height: 500px; + background-color: #777; } .carousel-inner > .item > img { position: absolute; @@ -93,7 +94,7 @@ body { @media (min-width: 768px) { - /* Remve the edge padding needed for mobile */ + /* Remove the edge padding needed for mobile */ .marketing { padding-left: 0; padding-right: 0; From eb43c2685565cedec38f60b4812fd4431cbd2df1 Mon Sep 17 00:00:00 2001 From: "al // @idest" Date: Mon, 19 Aug 2013 00:54:54 -0700 Subject: [PATCH 2/2] Fix vertical alignment of carousel navigation arrows. Navigation arrows were aligned to the top of page. Vertically centered them in this fix. --- examples/carousel/carousel.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/carousel/carousel.css b/examples/carousel/carousel.css index cdcbe2f785..1ac82e089c 100644 --- a/examples/carousel/carousel.css +++ b/examples/carousel/carousel.css @@ -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