mirror of
https://github.com/twbs/bootstrap.git
synced 2025-10-03 00:31:55 +02:00
add basic figure support
This commit is contained in:
12
dist/css/bootstrap-flex.css
vendored
12
dist/css/bootstrap-flex.css
vendored
@@ -667,7 +667,17 @@ mark,
|
|||||||
content: "\00A0 \2014";
|
content: "\00A0 \2014";
|
||||||
}
|
}
|
||||||
|
|
||||||
.img-responsive, .carousel-inner > .carousel-item > img,
|
.figure > img {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.figure-caption {
|
||||||
|
font-size: 90%;
|
||||||
|
color: #818a91;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-responsive, .figure > img, .carousel-inner > .carousel-item > img,
|
||||||
.carousel-inner > .carousel-item > a > img {
|
.carousel-inner > .carousel-item > a > img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
2
dist/css/bootstrap-flex.css.map
vendored
2
dist/css/bootstrap-flex.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-flex.min.css
vendored
2
dist/css/bootstrap-flex.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-flex.min.css.map
vendored
2
dist/css/bootstrap-flex.min.css.map
vendored
File diff suppressed because one or more lines are too long
@@ -667,7 +667,17 @@ mark,
|
|||||||
content: "\00A0 \2014";
|
content: "\00A0 \2014";
|
||||||
}
|
}
|
||||||
|
|
||||||
.img-responsive, .carousel-inner > .carousel-item > img,
|
.figure > img {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.figure-caption {
|
||||||
|
font-size: 90%;
|
||||||
|
color: #818a91;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-responsive, .figure > img, .carousel-inner > .carousel-item > img,
|
||||||
.carousel-inner > .carousel-item > a > img {
|
.carousel-inner > .carousel-item > a > img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css.map
vendored
2
dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
@@ -78,3 +78,14 @@ Align images with the [helper float classes](/components/helpers) or [text align
|
|||||||
<img src="..." class="img-rounded" alt="...">
|
<img src="..." class="img-rounded" alt="...">
|
||||||
</div>
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
## Figures
|
||||||
|
|
||||||
|
Use the included `.figure` and `.figure-caption` classes to provide some baseline styles for the HTML5 `<figure>` and `<figcaption>` elements. As a bonus, immediate children images are automatically responsive.
|
||||||
|
|
||||||
|
{% example html %}
|
||||||
|
<figure class="figure">
|
||||||
|
<img data-src="holder.js/400x300" class="img-rounded" alt="A generic square placeholder image with rounded corners in a figure.">
|
||||||
|
<figcaption class="figure-caption">A caption for the above image.</figcaption>
|
||||||
|
</figure>
|
||||||
|
{% endexample %}
|
||||||
|
12
docs/dist/css/bootstrap-flex.css
vendored
12
docs/dist/css/bootstrap-flex.css
vendored
@@ -667,7 +667,17 @@ mark,
|
|||||||
content: "\00A0 \2014";
|
content: "\00A0 \2014";
|
||||||
}
|
}
|
||||||
|
|
||||||
.img-responsive, .carousel-inner > .carousel-item > img,
|
.figure > img {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.figure-caption {
|
||||||
|
font-size: 90%;
|
||||||
|
color: #818a91;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-responsive, .figure > img, .carousel-inner > .carousel-item > img,
|
||||||
.carousel-inner > .carousel-item > a > img {
|
.carousel-inner > .carousel-item > a > img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
2
docs/dist/css/bootstrap-flex.css.map
vendored
2
docs/dist/css/bootstrap-flex.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-flex.min.css
vendored
2
docs/dist/css/bootstrap-flex.min.css
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-flex.min.css.map
vendored
2
docs/dist/css/bootstrap-flex.min.css.map
vendored
File diff suppressed because one or more lines are too long
@@ -667,7 +667,17 @@ mark,
|
|||||||
content: "\00A0 \2014";
|
content: "\00A0 \2014";
|
||||||
}
|
}
|
||||||
|
|
||||||
.img-responsive, .carousel-inner > .carousel-item > img,
|
.figure > img {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.figure-caption {
|
||||||
|
font-size: 90%;
|
||||||
|
color: #818a91;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-responsive, .figure > img, .carousel-inner > .carousel-item > img,
|
||||||
.carousel-inner > .carousel-item > a > img {
|
.carousel-inner > .carousel-item > a > img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css
vendored
2
docs/dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css.map
vendored
2
docs/dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
@@ -187,3 +187,20 @@ mark,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Figures
|
||||||
|
//
|
||||||
|
|
||||||
|
.figure {
|
||||||
|
> img {
|
||||||
|
@extend .img-responsive;
|
||||||
|
line-height: 1;
|
||||||
|
margin-bottom: ($spacer-y / 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.figure-caption {
|
||||||
|
font-size: 90%;
|
||||||
|
color: $gray-light;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user