From fda8d91c86a29cceab93285d920db56f7f26aaf8 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 6 Feb 2014 15:39:15 -0800 Subject: [PATCH] use :extend in thumbnail Less --- dist/css/bootstrap.css | 7 +++---- less/thumbnails.less | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 329b4fa2ed..64762c0b3c 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -307,7 +307,9 @@ figure { img { vertical-align: middle; } -.img-responsive { +.img-responsive, +.thumbnail > img, +.thumbnail a > img { display: block; max-width: 100%; height: auto; @@ -4401,9 +4403,6 @@ a.list-group-item.active > .badge, } .thumbnail > img, .thumbnail a > img { - display: block; - max-width: 100%; - height: auto; margin-right: auto; margin-left: auto; } diff --git a/less/thumbnails.less b/less/thumbnails.less index 11aa283a0e..c428920bc6 100644 --- a/less/thumbnails.less +++ b/less/thumbnails.less @@ -16,7 +16,7 @@ > img, a > img { - .img-responsive(); + &:extend(.img-responsive); margin-left: auto; margin-right: auto; }