koel/resources/assets/js/components/ui/Magnifier.vue

24 lines
751 B
Vue
Raw Normal View History

2022-04-15 14:24:30 +00:00
<template>
2024-04-04 22:20:42 +00:00
<span class="flex transition-opacity duration-200">
<button class="!rounded-l !border-r-0" title="Zoom out" type="button" @click.prevent="$emit('out')">
2023-11-10 13:16:06 +00:00
<Icon :icon="faSearchMinus" />
2022-04-24 08:29:14 +00:00
</button>
2024-04-04 22:20:42 +00:00
<button class="!rounded-r" title="Zoom in" type="button" @click.prevent="$emit('in')">
2023-11-10 13:16:06 +00:00
<Icon :icon="faSearchPlus" />
2022-04-24 08:29:14 +00:00
</button>
</span>
2022-04-15 14:24:30 +00:00
</template>
2022-04-15 17:00:08 +00:00
<script lang="ts" setup>
2022-07-15 07:23:55 +00:00
import { faSearchMinus, faSearchPlus } from '@fortawesome/free-solid-svg-icons'
2022-04-15 14:24:30 +00:00
const emit = defineEmits<{ (e: 'in' | 'out'): void }>()
2022-04-15 14:24:30 +00:00
</script>
2024-04-04 20:13:35 +00:00
<style lang="postcss" scoped>
2024-04-04 22:20:42 +00:00
button {
@apply text-k-text-primary bg-k-bg-primary border border-solid border-white/20 opacity-80
px-3 py-1.5 hover:opacity-100 active:scale-95;
2022-04-15 14:24:30 +00:00
}
</style>