2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03: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
+2 -8
View File
@@ -1,9 +1,7 @@
.fade {
opacity: 0;
@if $enable-transitions {
transition: opacity .15s linear;
}
@include transition(opacity .15s linear);
&.active {
opacity: 1;
@@ -34,9 +32,5 @@ tbody {
height: 0;
overflow: hidden;
@if $enable-transitions {
transition-timing-function: ease;
transition-duration: .35s;
transition-property: height;
}
@include transition(height .35s ease);
}