Skip to content

Commit

Permalink
Collapse with flex elements - simple approach (twbs#25806)
Browse files Browse the repository at this point in the history
* twbs#22600: prevent display:block for visible content

* allow transition for elements with show class
  • Loading branch information
MartijnCuppens authored and XhmikosR committed Mar 12, 2018
1 parent 2b86193 commit f893ec7
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions scss/_transitions.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
// stylelint-disable selector-no-qualifying-type

.fade {
opacity: 0;
@include transition($transition-fade);

&.show {
opacity: 1;
&:not(.show) {
opacity: 0;
}
}

.collapse {
display: none;
&.show {
display: block;
}
}

tr {
&.collapse.show {
display: table-row;
}
}

tbody {
&.collapse.show {
display: table-row-group;
&:not(.show) {
display: none;
}
}

Expand Down

0 comments on commit f893ec7

Please sign in to comment.