#9903 moved the css to stable -> petitem.vue for better encapsulation.

This commit is contained in:
Mike Tung
2018-01-29 22:22:10 -05:00
parent 81ea2b9026
commit c59760d066
2 changed files with 8 additions and 7 deletions
+3 -6
View File
@@ -1,12 +1,12 @@
<template lang="pug">
div(v-if="emptyItem")
.item-wrapper
.item.item-empty.pet-slot
.item.item-empty
.item-content
span.item-label(v-if="label") {{ label }}
div(v-else)
.item-wrapper(@click="click", :id="itemId")
.item(:class="{'item-active': active, 'highlight-border':highlightBorder }").pet-slot
.item(:class="{'item-active': active, 'highlight-border':highlightBorder }")
slot(name="itemBadge", :item="item")
span.item-content(
:class="itemContentClass"
@@ -22,10 +22,7 @@ div(v-else)
slot(name="popoverContent", :item="item")
</template>
<style scoped>
.pet-slot {
margin: 0 2px;
}
<style>
</style>
<script>
@@ -3,7 +3,7 @@ div
.item-wrapper(@click="click()", :id="itemId")
.item(
:class="{'item-empty': emptyItem, 'highlight': highlightBorder}",
)
).pet-slot
slot(name="itemBadge", :item="item")
span.item-content(:class="itemContentClass")
span.pet-progress-background(v-if="item.isAllowedToFeed() && progress > 0")
@@ -28,6 +28,10 @@ div
left: calc((100% - 62px) / 2);
}
.pet-slot {
margin: 0 2px;
}
.pet-progress-bar {
height: 4px;
background-color: #24cc8f;