Commit f893ec7a authored by Martijn Cuppens's avatar Martijn Cuppens Committed by XhmikosR
Browse files

Collapse with flex elements - simple approach (#25806)

* #22600: prevent display:block for visible content

* allow transition for elements with show class
parent 2b861935
Showing with 4 additions and 18 deletions
+4 -18
// stylelint-disable selector-no-qualifying-type // stylelint-disable selector-no-qualifying-type
.fade { .fade {
opacity: 0;
@include transition($transition-fade); @include transition($transition-fade);
&.show { &:not(.show) {
opacity: 1; opacity: 0;
} }
} }
.collapse { .collapse {
display: none; &:not(.show) {
&.show { display: none;
display: block;
}
}
tr {
&.collapse.show {
display: table-row;
}
}
tbody {
&.collapse.show {
display: table-row-group;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment