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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user