Skip to content

Commit

Permalink
Fixing carousel control positioning
Browse files Browse the repository at this point in the history
The left control should be positioned from the left, while the right
control should be positioning from the right. Positioning both from the
left results in the right carousel control being incorrectly positioned
(most noticeable with a larger than normal font size).
  • Loading branch information
nuttertag committed Aug 21, 2013
1 parent 1bcf9f1 commit a40568a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
11 changes: 10 additions & 1 deletion dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -6106,11 +6106,20 @@ body.modal-open,
.carousel-control .glyphicon-chevron-right {
position: absolute;
top: 50%;
left: 50%;
z-index: 5;
display: inline-block;
}

.carousel-control .icon-prev,
.carousel-control .glyphicon-chevron-left {
left: 50%;
}

.carousel-control .icon-next,
.carousel-control .glyphicon-chevron-right {
right: 50%;
}

.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 20px;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion less/carousel.less
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,18 @@
.glyphicon-chevron-right {
position: absolute;
top: 50%;
left: 50%;
z-index: 5;
display: inline-block;
}
.icon-prev,
.glyphicon-chevron-left {
left: 50%;
}
.icon-next,
.glyphicon-chevron-right {
right: 50%;
}
.icon-prev,
.icon-next {
width: 20px;
height: 20px;
Expand Down

0 comments on commit a40568a

Please sign in to comment.