Notifications as object for better targetting; Notifications closing vs removing for animation window

This commit is contained in:
James Barnsley
2018-02-28 08:44:38 +13:00
parent 7fa1fcf9e7
commit 2a95af89de
7 changed files with 62 additions and 54 deletions

View File

@ -9,6 +9,7 @@
width: 300px;
.notification {
@include fadein();
display: block;
position: relative;
background: $blue;
@ -17,14 +18,6 @@
color: $white;
pointer-events: all;
border-radius: 3px;
&[data-duration="1"]{
@include fadeinout(1s);
}
&[data-duration="3"]{
@include fadeinout(3s);
}
h4 {
padding-top: 0;
@ -78,6 +71,10 @@
background: $red;
}
&.closing {
@include fadeout();
}
&.process {
position: relative;
padding-right: 18px;