Skip to content

Commit

Permalink
fixes jankiness with anchor tags in carousel.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjregenold committed Jan 31, 2013
1 parent baadc33 commit e38d08d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/assets/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -5917,7 +5917,9 @@ a.badge:hover {
transition: 0.6s ease-in-out left;
}

.carousel-inner > .item > img {
.carousel-inner > .item > img,
.carousel-inner > .item > a,
.carousel-inner > .item > img > a {
display: block;
line-height: 1;
}
Expand Down
12 changes: 7 additions & 5 deletions less/carousel.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
display: none;
position: relative;
.transition(.6s ease-in-out left);
}

// Account for jankitude on images
> .item > img {
display: block;
line-height: 1;
// Account for jankitude on images
> img,
> a,
> img > a {
display: block;
line-height: 1;
}
}

> .active,
Expand Down

0 comments on commit e38d08d

Please sign in to comment.