koel/resources/assets/js/components/ui/close-modal-btn.vue

31 lines
537 B
Vue
Raw Normal View History

2022-04-15 14:24:30 +00:00
<template>
<button @click.prevent="$emit('click')" data-test="close-modal-btn">
<i class="fa fa-times"></i>
</button>
</template>
2022-04-15 17:00:08 +00:00
<script lang="ts" setup>
2022-04-15 14:24:30 +00:00
</script>
<style lang="scss" scoped>
button {
display: flex;
place-content: center;
place-items: center;
position: absolute;
right: 0;
top: 0;
background: var(--color-red);
width: 24px;
height: 24px;
border-radius: 0;
padding: 0;
color: var(--color-text-primary);
transition: opacity .3s;
@media (hover: none) {
opacity: 1;
}
}
</style>