Improved shop design
This commit is contained in:
@ -9,7 +9,7 @@ component Inventory(inventory *arn.Inventory, viewUser *arn.User, user *arn.User
|
||||
.inventory-slot.mountable(draggable="false", data-index=index)
|
||||
else
|
||||
.inventory-slot.mountable(title=slot.Item().Name, draggable="true", data-index=index, data-item-id=slot.ItemID, data-consumable=slot.Item().Consumable)
|
||||
.item-icon
|
||||
.shop-item-icon
|
||||
Icon(slot.Item().Icon)
|
||||
if slot.Quantity > 1
|
||||
.inventory-slot-quantity= slot.Quantity
|
||||
|
@ -22,7 +22,7 @@ const inventory-slot-size = 64px
|
||||
:hover
|
||||
cursor pointer
|
||||
|
||||
.item-icon
|
||||
.shop-item-icon
|
||||
animation hover-item 1s infinite ease-in-out
|
||||
|
||||
.icon
|
||||
@ -30,19 +30,19 @@ const inventory-slot-size = 64px
|
||||
pointer-events none
|
||||
|
||||
// [data-item-id="pro-account-3"]
|
||||
// .item-icon
|
||||
// .shop-item-icon
|
||||
// opacity 0.7
|
||||
|
||||
// [data-item-id="pro-account-6"]
|
||||
// .item-icon
|
||||
// .shop-item-icon
|
||||
// opacity 0.8
|
||||
|
||||
// [data-item-id="pro-account-12"]
|
||||
// .item-icon
|
||||
// .shop-item-icon
|
||||
// opacity 0.9
|
||||
|
||||
// [data-item-id="pro-account-24"]
|
||||
// .item-icon
|
||||
// .shop-item-icon
|
||||
// opacity 1.0
|
||||
|
||||
animation hover-item
|
||||
|
Reference in New Issue
Block a user