insomnia/app/ui/css/components/toast.less

66 lines
1.3 KiB
Plaintext
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: -3rem;
right: -10rem;
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);
display: grid;
grid-template-columns: auto auto;
grid-template-rows: auto;
transition: opacity 200ms, right 300ms, bottom 300ms, transform 200ms ease-out;
padding: @padding-sm;
transform: scale(0.8);
border-radius: @radius-md;
border: 1px solid var(--hl-sm);
2016-07-21 19:15:35 +00:00
&.toast--show {
opacity: 1;
transform: scale(1);
bottom: @padding-md;
right: @padding-md;
2016-07-21 19:15:35 +00:00
}
2016-04-10 05:03:18 +00:00
.toast__image,
.toast__content {
height: 100%;
width: 100%;
2016-04-10 05:03:18 +00:00
}
.toast__message {
padding: 0;
margin: 0;
max-width: 20rem;
2016-11-23 22:55:09 +00:00
}
.toast__actions {
padding-top: @padding-sm;
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
2016-11-23 22:55:09 +00:00
}
.toast__image {
padding-right: @padding-sm;
display: flex;
align-items: center;
flex-direction: row;
2016-04-10 05:03:18 +00:00
img {
margin-left: @padding-sm;
margin-right: @padding-sm;
max-width: 5rem;
max-height: 5rem;
border-radius: 50%;
box-shadow: 0 0 @padding-sm rgba(0, 0, 0, 0.2);
2016-04-10 05:03:18 +00:00
}
}
}