mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Inventory: fixes / layout (#11948)
Co-authored-by: Sabe Jones <sabrecat@gmail.com>
This commit is contained in:
41
website/client/src/components/ui/showMoreButton.vue
Normal file
41
website/client/src/components/ui/showMoreButton.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<button class="btn btn-flat btn-show-more mb-4"
|
||||
@click="$emit('click')"
|
||||
>
|
||||
<span class="button-text">
|
||||
{{ showAll ? $t('showLess') : $t('showMore') }}
|
||||
</span>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['showAll'],
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '~@/assets/scss/colors.scss';
|
||||
|
||||
.btn-show-more {
|
||||
height: 2rem;
|
||||
padding-top: 0.25rem;
|
||||
padding-bottom: 0.25rem;
|
||||
border-radius: 2px;
|
||||
|
||||
.button-text {
|
||||
height: 1.5rem;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
line-height: 1.71;
|
||||
text-align: center;
|
||||
color: $gray-100;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.button-text {
|
||||
color: $purple-300;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user