mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00

* Remove comment that duplicated some code * Use transition mixin whenever possible * Create a new function to reduce duplication * Use the new `breakpoint-infix` method
36 lines
411 B
SCSS
36 lines
411 B
SCSS
.fade {
|
|
opacity: 0;
|
|
|
|
@include transition(opacity .15s linear);
|
|
|
|
&.active {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.collapse {
|
|
display: none;
|
|
&.active {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
tr {
|
|
&.collapse.active {
|
|
display: table-row;
|
|
}
|
|
}
|
|
|
|
tbody {
|
|
&.collapse.active {
|
|
display: table-row-group;
|
|
}
|
|
}
|
|
|
|
.collapsing {
|
|
position: relative;
|
|
height: 0;
|
|
overflow: hidden;
|
|
|
|
@include transition(height .35s ease);
|
|
}
|