2022-04-15 14:24:30 +00:00
|
|
|
<template>
|
2022-05-11 09:12:26 +00:00
|
|
|
<span>
|
2022-07-21 10:45:23 +00:00
|
|
|
<button title="Zoom out" type="button" @click.prevent="$emit('out')">
|
2022-12-02 16:17:37 +00:00
|
|
|
<icon :icon="faSearchMinus" />
|
2022-04-24 08:29:14 +00:00
|
|
|
</button>
|
2022-07-21 10:45:23 +00:00
|
|
|
<button title="Zoom in" type="button" @click.prevent="$emit('in')">
|
2022-12-02 16:17:37 +00:00
|
|
|
<icon :icon="faSearchPlus" />
|
2022-04-24 08:29:14 +00:00
|
|
|
</button>
|
2022-05-11 09:12:26 +00:00
|
|
|
</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
|
|
|
|
2022-11-13 15:18:24 +00:00
|
|
|
const emit = defineEmits<{ (e: 'in' | 'out'): void }>()
|
2022-04-15 14:24:30 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2022-05-11 09:12:26 +00:00
|
|
|
span {
|
2022-04-15 14:24:30 +00:00
|
|
|
display: flex;
|
|
|
|
transition: .2s;
|
|
|
|
|
|
|
|
button {
|
|
|
|
@include inset-when-pressed();
|
|
|
|
|
|
|
|
background: var(--color-bg-primary);
|
|
|
|
border: 1px solid rgba(255, 255, 255, .2);
|
|
|
|
opacity: .8;
|
|
|
|
color: var(--color-text-primary);
|
|
|
|
transition: background .2s;
|
|
|
|
padding: .5rem .75rem;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
background: var(--color-bg-primary);
|
|
|
|
color: var(--color-text-primary);
|
|
|
|
}
|
|
|
|
|
2022-05-11 09:12:26 +00:00
|
|
|
&:first-child {
|
2022-04-15 14:24:30 +00:00
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
|
2022-05-11 09:12:26 +00:00
|
|
|
&:last-child {
|
2022-04-15 14:24:30 +00:00
|
|
|
border-radius: 0 4px 4px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|