mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
36 lines
598 B
Vue
36 lines
598 B
Vue
<template>
|
|
<button class="button-icon"><slot></slot></button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'ButtonIcon',
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
button {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 8px;
|
|
background: transparent;
|
|
margin: 4px;
|
|
border-radius: 25%;
|
|
transition: 0.2s;
|
|
.svg-icon {
|
|
color: var(--color-text);
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
&:hover {
|
|
background: var(--color-secondary-bg-for-transparent);
|
|
}
|
|
&:active {
|
|
transform: scale(0.92);
|
|
}
|
|
}
|
|
</style>
|