insomnia/app/css/components/toast.scss
Gregory Schier 7788d7c567 Minor tweaks
2016-07-21 15:04:21 -07:00

41 lines
736 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__action {
color: $font-light-bg;
font-weight: bold;
font-size: $font-size-sm;
border-left: 1px solid $hl-md;
&:hover {
background: $hl-xs;
}
}
}