mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-07 22:26:57 +02: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:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user