Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBass Jobsen <bass@w3masters.nl>2015-11-02 22:56:24 +0300
committerChris Rebert <code@chrisrebert.com>2015-11-15 02:00:08 +0300
commit0d34169e1f1126c0e752694905c037278402e0c8 (patch)
treea8d93f7bb1945c9c3b0dd7cce885f14fba8a6730 /scss/_images.scss
parente897eb4e04f532ef46e06addddc4b180a9cda099 (diff)
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
Diffstat (limited to 'scss/_images.scss')
-rw-r--r--scss/_images.scss9
1 files changed, 4 insertions, 5 deletions
diff --git a/scss/_images.scss b/scss/_images.scss
index ac481d58d7..ffcd7086d1 100644
--- a/scss/_images.scss
+++ b/scss/_images.scss
@@ -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 {