Comparar commits

...

1 Commits

Autor SHA1 Mensagem Data
Chris Rebert 18e1bfa662 Carousel: Add @supports 3D transforms feature query; fixes #15534 2015-03-25 18:38:33 -07:00
3 arquivos alterados com 29 adições e 22 exclusões
+6 -22
Ver Arquivo
@@ -25,28 +25,12 @@
line-height: 1;
}
// WebKit CSS3 transforms for supported devices
@media all and (transform-3d), (-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;
}
// CSS3 transforms for supported devices
@media all and (transform-3d), (-webkit-transform-3d) { // WebKit, old Blink
.carousel-css3-transforms();
}
@supports (transform: translate3d(0,0,0)) { // Firefox, recent Blink
.carousel-css3-transforms();
}
}
+1
Ver Arquivo
@@ -18,6 +18,7 @@
// Components
@import "mixins/alerts.less";
@import "mixins/buttons.less";
@import "mixins/carousel.less";
@import "mixins/panels.less";
@import "mixins/pagination.less";
@import "mixins/list-group.less";
+22
Ver Arquivo
@@ -0,0 +1,22 @@
.carousel-css3-transforms() {
.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;
}
}