insomnia/app/css/components/toast.scss
2016-07-21 12:15:35 -07:00

45 lines
793 B
SCSS

@import '../constants/dimensions';
@import '../constants/colors';
@import '../constants/animations';
.toast {
opacity: 0;
position: absolute;
z-index: 100;
bottom: $padding-md;
right: $padding-md;
background: $bg-light;
color: $font-light-bg;
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: row;
border-radius: $radius-md;
&.toast--show {
opacity: 1;
transition: opacity 2s 5s ease-in;
}
.toast__message,
.toast__action {
padding: $padding-sm $padding-md;
height: auto;
}
.toast__message {
border-right: 1px solid $hl-md;
}
.toast__action {
color: $surprise;
font-weight: bold;
font-size: $font-size-sm;
&:hover {
color: darken($surprise, 10);
background: $hl-xs;
}
}
}