mirror of
https://github.com/papercss/papercss
synced 2024-06-27 18:00:00 +02:00
Fade out on dismiss
This commit is contained in:
parent
1dc7744afb
commit
5c8f389ec9
|
@ -6,12 +6,16 @@
|
|||
width: 100%;
|
||||
|
||||
&.dismissible {
|
||||
@include transition;
|
||||
-webkit-box-pack: justify;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
max-height: 48rem;
|
||||
opacity: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.btn-close {
|
||||
|
@ -50,6 +54,11 @@
|
|||
display: none;
|
||||
|
||||
&:checked+.dismissible {
|
||||
display: none;
|
||||
border-width: 0;
|
||||
margin: 0;
|
||||
max-height: 0;
|
||||
opacity: 0;
|
||||
padding-bottom: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue