insomnia/app/ui/css/components/toast.less
2017-01-23 14:41:31 -08:00

60 lines
1.1 KiB
Plaintext

@import '../constants/dimensions';
@import '../constants/colors';
@import '../constants/animations';
.toast {
opacity: 0;
position: absolute;
z-index: 100;
bottom: @padding-md;
right: @padding-md;
background: var(--color-bg);
color: var(--color-font);
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: row;
align-items: center;
transition: opacity 500ms;
padding: @padding-sm @padding-xs @padding-sm @padding-md;
&.toast--show {
opacity: 1;
}
.toast__message {
display: inline-block;
padding-left: @padding-xs;
}
.toast__action {
color: var(--color-surprise);
text-transform: uppercase;
font-size: @font-size-sm;
padding-left: @padding-md;
}
.toast__action > button {
border-color: inherit;
min-width: 7em;
}
.toast__action--close {
color: @hl-md;
padding-left: @padding-sm;
&:hover {
color: @hl;
}
}
.toast__action--close > button:hover,
.toast__action--close > button {
font-size: @font-size-xs;
padding: 0 @padding-xs;
border: 0;
min-width: 0;
background: transparent;
}
}