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:
53
website/client/src/components/shared/closeIcon.vue
Normal file
53
website/client/src/components/shared/closeIcon.vue
Normal file
@@ -0,0 +1,53 @@
|
||||
<template>
|
||||
<button title="close dialog"
|
||||
@click="$emit('click', $event)">
|
||||
<div v-once
|
||||
class="svg-icon"
|
||||
v-html="icons.close"
|
||||
></div>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import svgClose from '@/assets/svg/close.svg';
|
||||
|
||||
export default {
|
||||
name: 'closeIcon',
|
||||
data () {
|
||||
return {
|
||||
icons: Object.freeze({
|
||||
close: svgClose,
|
||||
}),
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '~@/assets/scss/colors.scss';
|
||||
|
||||
button {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
cursor: pointer;
|
||||
opacity: 1;
|
||||
|
||||
border: 0;
|
||||
outline: 0;
|
||||
padding: 0.125rem;
|
||||
background: transparent;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
|
||||
::v-deep svg path {
|
||||
stroke: $gray-200;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
::v-deep svg path {
|
||||
stroke: $gray-100;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user