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

56 lines
911 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>
2024-04-04 20:13:35 +00:00
<style lang="postcss" scoped>
2022-10-27 17:06:49 +00:00
:deep(.tabs) {
2024-04-04 22:20:42 +00:00
@apply flex flex-col overflow-hidden flex-1 text-k-text-secondary;
}
2022-10-27 17:06:49 +00:00
:deep(header) {
2024-04-04 22:20:42 +00:00
@apply flex bg-white/5 overflow-hidden flex-shrink-0 border-b-white/5;
label {
2024-04-04 22:20:42 +00:00
@apply text-base relative uppercase tracking-wider opacity-50 cursor-pointer;
@apply transition-opacity duration-200 ease-in-out px-7 py-4 rounded-none;
&:hover {
2024-04-04 22:20:42 +00:00
@apply opacity-80;
}
&.active {
2024-04-04 22:20:42 +00:00
@apply opacity-100;
}
input {
2024-04-04 22:20:42 +00:00
@apply hidden;
}
}
}
2024-04-04 22:20:42 +00:00
:deep(:is(main, .songs-pane, .albums-pane)) {
@apply flex flex-col flex-1 overflow-auto;
}
:deep(.albums-pane) {
> ul {
2024-04-04 22:20:42 +00:00
@apply p-7 overflow-auto;
}
.none {
2024-04-04 22:20:42 +00:00
@apply px-7 py-4;
}
}
:deep(.info-pane) {
2024-04-04 22:20:42 +00:00
@apply p-7;
}
</style>