insomnia/app/css/components/toast.scss

41 lines
736 B
SCSS
Raw Normal View History

2016-04-10 05:03:18 +00:00
@import '../constants/dimensions';
@import '../constants/colors';
2016-07-21 19:15:35 +00:00
@import '../constants/animations';
2016-04-10 05:03:18 +00:00
.toast {
2016-07-21 19:15:35 +00:00
opacity: 0;
2016-04-10 05:03:18 +00:00
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);
2016-07-21 19:15:35 +00:00
display: flex;
flex-direction: row;
border-radius: $radius-md;
&.toast--show {
opacity: 1;
transition: opacity 2s 5s ease-in;
}
2016-04-10 05:03:18 +00:00
.toast__message,
.toast__action {
padding: $padding-sm $padding-md;
height: auto;
}
.toast__action {
2016-07-21 22:04:21 +00:00
color: $font-light-bg;
2016-07-21 19:15:35 +00:00
font-weight: bold;
font-size: $font-size-sm;
2016-07-21 22:04:21 +00:00
border-left: 1px solid $hl-md;
2016-04-10 05:03:18 +00:00
&:hover {
2016-07-21 19:15:35 +00:00
background: $hl-xs;
2016-04-10 05:03:18 +00:00
}
}
}