mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-04 16:24:22 +01:00
f893ec7a75
* #22600: prevent display:block for visible content * allow transition for elements with show class
23 lines
311 B
SCSS
23 lines
311 B
SCSS
// stylelint-disable selector-no-qualifying-type
|
|
|
|
.fade {
|
|
@include transition($transition-fade);
|
|
|
|
&:not(.show) {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.collapse {
|
|
&:not(.show) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.collapsing {
|
|
position: relative;
|
|
height: 0;
|
|
overflow: hidden;
|
|
@include transition($transition-collapse);
|
|
}
|