mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 13:09:41 +00:00
34 lines
519 B
Vue
34 lines
519 B
Vue
|
|
<template lang="pug">
|
||
|
|
span.badge.badge-pill.badge-item.badge-count(
|
||
|
|
v-if="show",
|
||
|
|
) {{ count }}
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<style lang="scss">
|
||
|
|
@import '~client/assets/scss/colors.scss';
|
||
|
|
|
||
|
|
.badge-count {
|
||
|
|
right: -9px;
|
||
|
|
color: $white;
|
||
|
|
background: $orange-100;
|
||
|
|
padding: 4.5px 6px;
|
||
|
|
min-width: 24px;
|
||
|
|
height: 24px;
|
||
|
|
box-shadow: 0 1px 1px 0 rgba($black, 0.12);
|
||
|
|
}
|
||
|
|
|
||
|
|
</style>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
props: {
|
||
|
|
show: {
|
||
|
|
type: Boolean,
|
||
|
|
},
|
||
|
|
count: {
|
||
|
|
type: Number,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
};
|
||
|
|
</script>
|