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;
|
2016-08-29 17:58:59 +00:00
|
|
|
bottom: @padding-md;
|
|
|
|
right: @padding-md;
|
|
|
|
background: @bg-light;
|
|
|
|
color: @font-light-bg;
|
2016-04-10 05:03:18 +00:00
|
|
|
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
|
2016-07-21 19:15:35 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2016-08-29 17:58:59 +00:00
|
|
|
border-radius: @radius-md;
|
2016-07-21 19:15:35 +00:00
|
|
|
|
|
|
|
&.toast--show {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 2s 5s ease-in;
|
|
|
|
}
|
2016-04-10 05:03:18 +00:00
|
|
|
|
|
|
|
.toast__message,
|
|
|
|
.toast__action {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding: @padding-sm @padding-md;
|
2016-04-10 05:03:18 +00:00
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toast__action {
|
2016-08-29 17:58:59 +00:00
|
|
|
color: @font-light-bg;
|
2016-07-21 19:15:35 +00:00
|
|
|
font-weight: bold;
|
2016-08-29 17:58:59 +00:00
|
|
|
font-size: @font-size-sm;
|
|
|
|
border-left: 1px solid @hl-md;
|
2016-04-10 05:03:18 +00:00
|
|
|
|
|
|
|
&:hover {
|
2016-08-29 17:58:59 +00:00
|
|
|
background: @hl-xs;
|
2016-04-10 05:03:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|