summaryrefslogtreecommitdiffstats
path: root/css
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-04-01 14:29:20 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-04-01 14:29:20 +0200
commitee0dc5909ad29b6bc2a70ad4b8fc90dd2ab13144 (patch)
treeee958a14a65e3ac3a97ef7ea91d3d6e435717e6c /css
parent3a3ef7ffd338b6fc5534f0d6bebb63f82d773910 (diff)
Animate deletion
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'css')
-rw-r--r--css/ContactsListItem.scss26
1 files changed, 25 insertions, 1 deletions
diff --git a/css/ContactsListItem.scss b/css/ContactsListItem.scss
index a18acb6e..4fcad0df 100644
--- a/css/ContactsListItem.scss
+++ b/css/ContactsListItem.scss
@@ -19,13 +19,37 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+// ensure transition for delete and non-deleted transition state
+.app-content-list-item {
+ transition: left 200ms;
+}
+
.app-content-list-item.deleted {
+ z-index: 2;
+ // make sure we hide the undeleted element by sliding over it
+ // and force the background even on hover
+ background-color: var(--color-main-background) !important;
+
.app-content-list-item-icon__avatar {
filter: brightness(.8) grayscale(1);
}
.app-content-list-item-line-one {
text-decoration: line-through;
}
+
+ // vuejs animation
+ &.delete-slide-left-enter-active,
+ &.delete-slide-left-leave-active {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ }
+
+ &.delete-slide-left-enter,
+ &.delete-slide-left-leave-to {
+ left: 100%;
+ }
}
.app-content-list-item-icon {
@@ -39,4 +63,4 @@
background-size: cover;
cursor: pointer;
}
-} \ No newline at end of file
+}