2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

use :extend(.img-responsive) in Carousel's Less

This commit is contained in:
Chris Rebert
2014-02-06 15:52:26 -08:00
parent 651b289e26
commit 7c1511502e
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -307,7 +307,9 @@ figure {
img {
vertical-align: middle;
}
.img-responsive {
.img-responsive,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
display: block;
max-width: 100%;
height: auto;
@@ -5421,9 +5423,6 @@ button.close {
}
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
display: block;
max-width: 100%;
height: auto;
line-height: 1;
}
.carousel-inner > .active,
+1 -1
View File
@@ -21,7 +21,7 @@
// Account for jankitude on images
> img,
> a > img {
.img-responsive();
&:extend(.img-responsive);
line-height: 1;
}
}