From: Kevin Lisota Date: Mon, 16 Sep 2013 15:21:09 +0000 (-0700) Subject: add responsive CSS to hyperlinked images when thumbnail caption markup is used X-Git-Tag: v3.0.3~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cde1b9a1782a6592e2d41ce2ad60aadd74e5539c;p=thirdparty%2Fbootstrap.git 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. --- diff --git a/less/thumbnails.less b/less/thumbnails.less index a210cac727..f6064a2450 100644 --- a/less/thumbnails.less +++ b/less/thumbnails.less @@ -9,7 +9,8 @@ display: block; // Override the inline-block from `.img-thumbnail` margin-bottom: @line-height-computed; - > img { + > img, + a > img { .img-responsive(); } }