1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-19 03:41:19 +02:00

Remove lots of duplication + minor cleanup (#21238)

* Remove comment that duplicated some code
* Use transition mixin whenever possible
* Create a new function to reduce duplication
* Use the new `breakpoint-infix` method
This commit is contained in:
Starsam80
2016-11-28 14:23:59 -07:00
committed by Mark Otto
parent 2f9a94caac
commit b226766b62
13 changed files with 88 additions and 195 deletions

View File

@@ -11,7 +11,7 @@
> .carousel-item {
position: relative;
display: none;
transition: .6s ease-in-out left;
@include transition(left .6s ease-in-out);
// Account for jankitude on images
> img,
@@ -22,7 +22,7 @@
// CSS3 transforms when supported by the browser
@include if-supports-3d-transforms() {
transition: transform .6s ease-in-out;
@include transition(transform .6s ease-in-out);
backface-visibility: hidden;
perspective: 1000px;