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;
|
2017-01-23 22:41:31 +00:00
|
|
|
background: var(--color-bg);
|
|
|
|
color: var(--color-font);
|
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-11-23 22:55:09 +00:00
|
|
|
align-items: center;
|
|
|
|
transition: opacity 500ms;
|
|
|
|
padding: @padding-sm @padding-xs @padding-sm @padding-md;
|
2016-07-21 19:15:35 +00:00
|
|
|
|
|
|
|
&.toast--show {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2016-04-10 05:03:18 +00:00
|
|
|
|
2016-11-23 22:55:09 +00:00
|
|
|
.toast__message {
|
|
|
|
display: inline-block;
|
|
|
|
padding-left: @padding-xs;
|
2016-04-10 05:03:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.toast__action {
|
2017-01-23 22:41:31 +00:00
|
|
|
color: var(--color-surprise);
|
2016-11-16 17:18:39 +00:00
|
|
|
text-transform: uppercase;
|
2016-08-29 17:58:59 +00:00
|
|
|
font-size: @font-size-sm;
|
2016-11-23 22:55:09 +00:00
|
|
|
padding-left: @padding-md;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toast__action > button {
|
|
|
|
border-color: inherit;
|
2016-11-23 23:12:32 +00:00
|
|
|
min-width: 7em;
|
2016-11-23 22:55:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.toast__action--close {
|
|
|
|
color: @hl-md;
|
|
|
|
padding-left: @padding-sm;
|
2016-04-10 05:03:18 +00:00
|
|
|
|
|
|
|
&:hover {
|
2016-11-23 22:55:09 +00:00
|
|
|
color: @hl;
|
2016-04-10 05:03:18 +00:00
|
|
|
}
|
|
|
|
}
|
2016-11-23 22:55:09 +00:00
|
|
|
|
|
|
|
.toast__action--close > button:hover,
|
|
|
|
.toast__action--close > button {
|
|
|
|
font-size: @font-size-xs;
|
|
|
|
padding: 0 @padding-xs;
|
|
|
|
border: 0;
|
2016-11-23 23:12:32 +00:00
|
|
|
min-width: 0;
|
2016-11-23 22:55:09 +00:00
|
|
|
background: transparent;
|
|
|
|
}
|
2016-04-10 05:03:18 +00:00
|
|
|
}
|