0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

use :extend in thumbnail Less

This commit is contained in:
Chris Rebert 2014-02-06 15:39:15 -08:00
parent 651b289e26
commit fda8d91c86
2 changed files with 4 additions and 5 deletions

View File

@ -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;
}

View File

@ -16,7 +16,7 @@
> img,
a > img {
.img-responsive();
&:extend(.img-responsive);
margin-left: auto;
margin-right: auto;
}