From 0d34169e1f1126c0e752694905c037278402e0c8 Mon Sep 17 00:00:00 2001 From: Bass Jobsen Date: Mon, 2 Nov 2015 20:56:24 +0100 Subject: Refactor figure image styles to use CSS class instead of child selector Refactoring according the comments on https://github.com/twbs/bootstrap/pull/18104. Closes #18131 --- docs/content/figures.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/content') diff --git a/docs/content/figures.md b/docs/content/figures.md index d8e2435fe..7b3df8bd1 100644 --- a/docs/content/figures.md +++ b/docs/content/figures.md @@ -6,11 +6,11 @@ group: content Anytime you need to display a piece of content—like an image—with an optional caption, consider using a `
`. -Use the included `.figure` and `.figure-caption` classes to provide some baseline styles for the HTML5 `
` and `
` elements. As a bonus, immediate children images are automatically responsive. +Use the included `.figure` , `.figure-img` and `.figure-caption` classes to provide some baseline styles for the HTML5 `
` and `
` elements. Images in figures have no explicit size, so be sure to add the `.img-fluid` class to your `` to make it responsive. {% example html %}
- A generic square placeholder image with rounded corners in a figure. + A generic square placeholder image with rounded corners in a figure.
A caption for the above image.
{% endexample %} @@ -19,7 +19,7 @@ Aligning the figure's caption is easy with our [text utilities]({{ site.baseurl {% example html %}
- A generic square placeholder image with rounded corners in a figure. + A generic square placeholder image with rounded corners in a figure.
A caption for the above image.
{% endexample %} -- cgit v1.2.3