badguardhome/client/src/components/Toasts/Toast.css

67 lines
1010 B
CSS
Raw Normal View History

2018-09-14 12:37:35 +00:00
.toasts {
position: fixed;
right: 24px;
bottom: 24px;
z-index: 103;
2018-09-14 12:37:35 +00:00
width: 345px;
}
.toast {
display: flex;
align-items: flex-start;
margin-bottom: 12px;
padding: 16px;
font-weight: 600;
color: #ffffff;
border-radius: 4px;
background-color: rgba(236, 53, 53, 0.75);
}
.toast--success {
background-color: rgba(90, 173, 99, 0.75);
}
.toast:last-child {
margin-bottom: 0;
}
.toast__content {
flex: 1 1 auto;
margin: 0 12px 0 0;
text-overflow: ellipsis;
overflow: hidden;
}
2019-05-17 15:17:17 +00:00
.toast__content a {
font-weight: 600;
color: #fff;
text-decoration: underline;
}
2018-09-14 12:37:35 +00:00
.toast__dismiss {
display: block;
flex: 0 0 auto;
padding: 0;
background: transparent;
border: 0;
cursor: pointer;
}
.toast-enter {
opacity: 0.01;
}
.toast-enter-active {
opacity: 1;
transition: all 0.3s ease-out;
}
.toast-exit {
opacity: 1;
}
.toast-exit-active {
opacity: 0.01;
transition: all 0.3s ease-out;
}