aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/carousel
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-05 23:31:14 -0800
committerGitHub <[email protected]>2016-12-05 23:31:14 -0800
commitede925d79bf92d5983a4508c6ed6fda9310e1e8b (patch)
tree2106dc9b4f97d109f91c06a31234802c8d1890b6 /docs/examples/carousel
parent306f75216d2b66bfe8e6e4b587939491e637b8da (diff)
parente0edea0d1a69d51990cb8d8de41183e94331b3a2 (diff)
downloadbootstrap-ede925d79bf92d5983a4508c6ed6fda9310e1e8b.tar.xz
bootstrap-ede925d79bf92d5983a4508c6ed6fda9310e1e8b.zip
Merge pull request #21298 from twbs/carousel
Refactor carousel
Diffstat (limited to 'docs/examples/carousel')
-rw-r--r--docs/examples/carousel/carousel.css18
-rw-r--r--docs/examples/carousel/index.html20
2 files changed, 15 insertions, 23 deletions
diff --git a/docs/examples/carousel/carousel.css b/docs/examples/carousel/carousel.css
index a1ec54fa5..58fdde1cb 100644
--- a/docs/examples/carousel/carousel.css
+++ b/docs/examples/carousel/carousel.css
@@ -19,6 +19,7 @@ body {
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
z-index: 10;
+ bottom: 3rem;
}
/* Declare heights because of positioning of img element */
@@ -34,17 +35,12 @@ body {
height: 32rem;
}
-.carousel-indicators {
- top: 1.5rem;
- right: 1.5rem;
- bottom: auto;
- left: auto;
- width: 1rem;
- margin-left: 0;
-}
-
-.carousel-indicators > li {
- margin-bottom: .25rem;
+.carousel-indicators li {
+ width: .75rem;
+ height: .75rem;
+ margin-right: .25rem;
+ margin-left: .25rem;
+ border-radius: 50%;
}
diff --git a/docs/examples/carousel/index.html b/docs/examples/carousel/index.html
index 990553b97..edab89919 100644
--- a/docs/examples/carousel/index.html
+++ b/docs/examples/carousel/index.html
@@ -37,11 +37,7 @@
</ul>
</nav>
-
- <!-- Carousel
- ================================================== -->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
- <!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
@@ -51,7 +47,7 @@
<div class="carousel-item active">
<img class="first-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="First slide">
<div class="container">
- <div class="carousel-caption text-left">
+ <div class="carousel-caption d-none d-md-block text-left">
<h1>Example headline.</h1>
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<p><a class="btn btn-lg btn-primary" href="#" role="button">Sign up today</a></p>
@@ -61,7 +57,7 @@
<div class="carousel-item">
<img class="second-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="Second slide">
<div class="container">
- <div class="carousel-caption">
+ <div class="carousel-caption d-none d-md-block">
<h1>Another example headline.</h1>
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<p><a class="btn btn-lg btn-primary" href="#" role="button">Learn more</a></p>
@@ -71,7 +67,7 @@
<div class="carousel-item">
<img class="third-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="Third slide">
<div class="container">
- <div class="carousel-caption text-right">
+ <div class="carousel-caption d-none d-md-block text-right">
<h1>One more for good measure.</h1>
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<p><a class="btn btn-lg btn-primary" href="#" role="button">Browse gallery</a></p>
@@ -79,15 +75,15 @@
</div>
</div>
</div>
- <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
- <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
+ <a class="carousel-control-prev" href="#myCarousel" role="button" data-slide="prev">
+ <span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
- <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
- <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
+ <a class="carousel-control-next" href="#myCarousel" role="button" data-slide="next">
+ <span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
- </div><!-- /.carousel -->
+ </div>
<!-- Marketing messaging and featurettes