]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
carousel.md: Highlight the whole example for consistency.
authorXhmikosR <xhmikosr@gmail.com>
Wed, 6 Feb 2019 09:13:55 +0000 (11:13 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 6 Feb 2019 09:47:31 +0000 (11:47 +0200)
site/docs/4.2/components/carousel.md

index 26c81b48d6df36c413ec087bd0823d5981729b36..dbe321cd9d22f70e4f5379f9128b71f0f7090ffd 100644 (file)
@@ -112,6 +112,7 @@ 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`.
 
+{% capture example %}
 <div class="bd-example">
   <div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
     <ol class="carousel-indicators">
@@ -152,16 +153,8 @@ Add captions to your slides easily with the `.carousel-caption` element within a
     </a>
   </div>
 </div>
-
-{% highlight html %}
-<div class="carousel-item">
-  <img src="..." alt="...">
-  <div class="carousel-caption d-none d-md-block">
-    <h5>...</h5>
-    <p>...</p>
-  </div>
-</div>
-{% endhighlight %}
+{% endcapture %}
+{% include example.html content=example %}
 
 ### Crossfade