From 077fbb61946f9576a03279367b9aafcb646f528d Mon Sep 17 00:00:00 2001 From: Asahi Zhang Date: Thu, 15 Aug 2019 20:10:12 +0800 Subject: [PATCH] feat(item-icon.vue): refactor item icon component and add item name tooltip --- src/components/Item.vue | 136 ++++---------------------- src/components/ItemIcon.vue | 185 +++++++++++++++++++++++++++++++++++- 2 files changed, 196 insertions(+), 125 deletions(-) diff --git a/src/components/Item.vue b/src/components/Item.vue index 665765ff..f88340ad 100644 --- a/src/components/Item.vue +++ b/src/components/Item.vue @@ -1,8 +1,5 @@ \ No newline at end of file + diff --git a/src/components/ItemIcon.vue b/src/components/ItemIcon.vue index bf657936..19e1319d 100644 --- a/src/components/ItemIcon.vue +++ b/src/components/ItemIcon.vue @@ -1,15 +1,190 @@ \ No newline at end of file + transition: all 225ms cubic-bezier(0.165, 0.84, 0.44, 1); +} + +.item-icon--sprite:hover { + transform: translateY(-4px) scale(1.2); +} + +.item-icon--sprite--disable-hover-effect { + transform: none !important; +} + +.item-card { + position: absolute; +} +