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

61 lines
920 B
Vue
Raw Normal View History

<template>
<div class="tabs">
<header>
2022-12-02 16:17:37 +00:00
<slot name="header" />
</header>
<main>
2022-12-02 16:17:37 +00:00
<slot />
</main>
</div>
</template>
<script lang="ts" setup>
</script>
<style lang="scss" scoped>
2022-10-27 17:06:49 +00:00
:deep(.tabs) {
display: flex;
flex-direction: column;
overflow: hidden;
flex: 1;
color: var(--color-text-secondary);
}
2022-10-27 17:06:49 +00:00
:deep(header) {
display: flex;
background: rgba(0, 0, 0, 0.05);
overflow: hidden;
flex-shrink: 0;
border-bottom: 1px solid rgba(255, 255, 255, .04);
label {
font-size: 1rem;
position: relative;
padding: 1rem 1.8rem;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 0;
opacity: .5;
cursor: pointer;
transition: opacity .2s ease-in-out;
&:hover {
opacity: .8;
}
&.active {
opacity: 1;
}
input {
display: none;
}
}
}
2022-10-27 17:06:49 +00:00
:deep(main) {
flex: 1;
overflow: auto;
}
</style>