mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-03 15:24:19 +01:00
Merge pull request #12621 from twbs/carousel-img-responsive-extend
use :extend(.img-responsive) in Carousel's Less
This commit is contained in:
commit
596495c89b
7
dist/css/bootstrap.css
vendored
7
dist/css/bootstrap.css
vendored
@ -307,7 +307,9 @@ figure {
|
|||||||
img {
|
img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
.img-responsive {
|
.img-responsive,
|
||||||
|
.carousel-inner > .item > img,
|
||||||
|
.carousel-inner > .item > a > img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
@ -5421,9 +5423,6 @@ button.close {
|
|||||||
}
|
}
|
||||||
.carousel-inner > .item > img,
|
.carousel-inner > .item > img,
|
||||||
.carousel-inner > .item > a > img {
|
.carousel-inner > .item > a > img {
|
||||||
display: block;
|
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
.carousel-inner > .active,
|
.carousel-inner > .active,
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
// Account for jankitude on images
|
// Account for jankitude on images
|
||||||
> img,
|
> img,
|
||||||
> a > img {
|
> a > img {
|
||||||
.img-responsive();
|
&:extend(.img-responsive);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user