Fade out on dismiss

This commit is contained in:
vanillaSlice 2018-09-29 11:17:01 +01:00 committed by rhyneav
parent 468e571c9a
commit 7e3d3e6a85

View file

@ -6,12 +6,16 @@
width: 100%; width: 100%;
&.dismissible { &.dismissible {
@include transition;
-webkit-box-pack: justify; -webkit-box-pack: justify;
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
-ms-flex-pack: justify; -ms-flex-pack: justify;
justify-content: space-between; justify-content: space-between;
max-height: 48rem;
opacity: 1;
overflow: hidden;
} }
.btn-close { .btn-close {
@ -50,6 +54,11 @@
display: none; display: none;
&:checked+.dismissible { &:checked+.dismissible {
display: none; border-width: 0;
margin: 0;
max-height: 0;
opacity: 0;
padding-bottom: 0;
padding-top: 0;
} }
} }