1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 17:11:48 +02:00

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
This commit is contained in:
Bass Jobsen
2015-11-02 20:56:24 +01:00
committed by Chris Rebert
parent e897eb4e04
commit 0d34169e1f
2 changed files with 7 additions and 8 deletions

View File

@@ -40,12 +40,11 @@
.figure {
// Ensures the caption's text aligns with the image.
display: inline-block;
}
> img {
@extend .img-fluid;
margin-bottom: ($spacer-y / 2);
line-height: 1;
}
.figure-img {
margin-bottom: ($spacer-y / 2);
line-height: 1;
}
.figure-caption {