2016-05-10 14:51:09 +00:00
|
|
|
body > #notification-container{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
|
|
z-index: 200;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
|
|
.notification-element{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
margin: .2em auto;
|
|
|
|
padding: 0 1em;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-bottom: 1px solid #bbb;
|
|
|
|
box-shadow: inset 0 0 1em #eee;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
pointer-events: all;
|
2016-05-10 16:43:31 +00:00
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
// ECARTEMENT DU BOTTOM POUR LE DERNIER
|
|
|
|
&:last-child{
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2016-05-10 14:51:09 +00:00
|
|
|
|
2016-05-10 15:56:45 +00:00
|
|
|
// ANIMATION DE fadeIn + fadeOut
|
|
|
|
transition: opacity .5s ease-in-out;
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
&.notification-visible{
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-05-10 16:43:31 +00:00
|
|
|
// ANIMATION DE @HOVER
|
|
|
|
&:hover{
|
|
|
|
box-shadow: inset 0 0 1em #eee, 0 0 20px #aaa;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-05-10 14:51:09 +00:00
|
|
|
|
|
|
|
// DIFFERENTS THEMES
|
|
|
|
strong[class]{
|
|
|
|
|
2016-05-10 16:43:31 +00:00
|
|
|
text-transform: uppercase;
|
2016-05-10 14:51:09 +00:00
|
|
|
padding-left: 1.5em;
|
|
|
|
|
|
|
|
&:before{
|
|
|
|
content: '';
|
2016-05-10 15:56:45 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 1.2em;
|
|
|
|
left: 1em;
|
|
|
|
width: .9em;
|
|
|
|
height: .9em;
|
2016-05-10 14:51:09 +00:00
|
|
|
|
|
|
|
border-radius: 50% / 50%;
|
|
|
|
box-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);
|
|
|
|
|
|
|
|
background-color: red;
|
|
|
|
}
|
2016-05-10 15:56:45 +00:00
|
|
|
|
|
|
|
// WARNING
|
|
|
|
&.warning:before{ background-color: #dd6a45; }
|
|
|
|
// INFO
|
|
|
|
&.info:before{ background-color: #2195da; }
|
|
|
|
// SUCCESS
|
|
|
|
&.success:before{ background-color: #5fca4a; }
|
|
|
|
// ERROR
|
|
|
|
&.error:before{ background-color: #d94747; }
|
2016-05-10 14:51:09 +00:00
|
|
|
}
|
|
|
|
|
2016-05-10 15:56:45 +00:00
|
|
|
|
2016-05-10 14:51:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|