mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
add responsive CSS to hyperlinked images when thumbnail caption markup is used
When thumbnail caption markup is used in combination with a hyperlinked image, the image is not responsive. (non-hyperlinked images are fine, like the example in the docs) Adding a selector to apply responsiveness to hyperlinked images when thumbnail captions are used.
This commit is contained in:
parent
559fcbfbd6
commit
cde1b9a178
@ -9,7 +9,8 @@
|
|||||||
display: block; // Override the inline-block from `.img-thumbnail`
|
display: block; // Override the inline-block from `.img-thumbnail`
|
||||||
margin-bottom: @line-height-computed;
|
margin-bottom: @line-height-computed;
|
||||||
|
|
||||||
> img {
|
> img,
|
||||||
|
a > img {
|
||||||
.img-responsive();
|
.img-responsive();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user