mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
💄(snooze): Fix swipe-to-snooze animation
This commit is contained in:
parent
ceff83302b
commit
3f23db6002
1 changed files with 5 additions and 3 deletions
|
@ -105,17 +105,19 @@
|
|||
}
|
||||
}
|
||||
&.swipe-snooze {
|
||||
transition: background-color linear 150ms;
|
||||
background-color: mix(#8d6be3, @background-primary, 75%);
|
||||
&::after {
|
||||
transition: right linear 150ms, transform linear 150ms;
|
||||
content: "Snooze";
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-image: url(../static/images/swipe/icon-swipe-snooze@2x.png);
|
||||
}
|
||||
&.confirmed {
|
||||
background-color: #8d6be3;
|
||||
&::after {
|
||||
left: 100%;
|
||||
transform: translateX(-100%);
|
||||
right: 100%;
|
||||
transform: translateX(100%);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue