mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 23:04:32 +02:00
carousel.md: Remove duplicate bd-example div. (#29341)
The example shortcode already adds this.
This commit is contained in:
@@ -113,7 +113,6 @@ You can also add the indicators to the carousel, alongside the controls, too.
|
|||||||
Add captions to your slides easily with the `.carousel-caption` element within any `.carousel-item`. They can be easily hidden on smaller viewports, as shown below, with optional [display utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/display/). We hide them initially with `.d-none` and bring them back on medium-sized devices with `.d-md-block`.
|
Add captions to your slides easily with the `.carousel-caption` element within any `.carousel-item`. They can be easily hidden on smaller viewports, as shown below, with optional [display utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/display/). We hide them initially with `.d-none` and bring them back on medium-sized devices with `.d-md-block`.
|
||||||
|
|
||||||
{% capture example %}
|
{% capture example %}
|
||||||
<div class="bd-example">
|
|
||||||
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
|
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
|
||||||
<ol class="carousel-indicators">
|
<ol class="carousel-indicators">
|
||||||
<li data-target="#carouselExampleCaptions" data-slide-to="0" class="active"></li>
|
<li data-target="#carouselExampleCaptions" data-slide-to="0" class="active"></li>
|
||||||
@@ -152,7 +151,6 @@ Add captions to your slides easily with the `.carousel-caption` element within a
|
|||||||
<span class="sr-only">Next</span>
|
<span class="sr-only">Next</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
{% include example.html content=example %}
|
{% include example.html content=example %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user