]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add responsive CSS to hyperlinked images when thumbnail caption markup is used 10662/head
authorKevin Lisota <kevin@findwell.com>
Mon, 16 Sep 2013 15:21:09 +0000 (08:21 -0700)
committerKevin Lisota <kevin@findwell.com>
Mon, 16 Sep 2013 15:21:09 +0000 (08:21 -0700)
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.

less/thumbnails.less

index a210cac727ecc55ce0a156e6c2347b0315bd4fe6..f6064a2450f2be655e9c0101de683d85965c3215 100644 (file)
@@ -9,7 +9,8 @@
   display: block; // Override the inline-block from `.img-thumbnail`
   margin-bottom: @line-height-computed;
 
-  > img {
+  > img,
+  a > img {
     .img-responsive();
   }
 }