Skip to content

Commit

Permalink
Improved mixin ability with nested media query
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayden Bleasel committed Apr 23, 2014
1 parent bab63ab commit 4fa2d9e
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 64 deletions.
82 changes: 41 additions & 41 deletions dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 19 additions & 23 deletions less/carousel.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@
&:extend(.img-responsive);
line-height: 1;
}

// WebKit CSS3 transforms for supported devices
@media all and (-webkit-transform-3d) {
.transition-transform(~'0.6s ease-in-out');
.backface-visibility(~'hidden');
.perspective(1000);
&.next, &.active.right {
.translate3d(100%, 0, 0);
left: 0;
}
&.prev, &.active.left {
.translate3d(-100%, 0, 0);
left: 0;
}
&.next.left, &.prev.right, &.active {
.translate3d(0, 0, 0);
left: 0;
}
}
}

> .active,
Expand Down Expand Up @@ -230,26 +249,3 @@
bottom: 20px;
}
}

// WebKit CSS3 transforms for supported devices
@media all and (-webkit-transform-3d) {
.carousel {
.item {
.transition-transform(~'0.6s ease-in-out');
.backface-visibility(~'hidden');
.perspective(1000);
&.next, &.active.right {
.translate3d(100%, 0, 0);
left: 0;
}
&.prev, &.active.left {
.translate3d(-100%, 0, 0);
left: 0;
}
&.next.left, &.prev.right, &.active {
.translate3d(0, 0, 0);
left: 0;
}
}
}
}

0 comments on commit 4fa2d9e

Please sign in to comment.