fix(ui): color sidebar & enable ghost style buttons
This commit is contained in:
parent
973464a07a
commit
d2a99599f0
|
@ -141,6 +141,22 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.ghost {
|
||||||
|
&:not(:active):not(.is-active):not(:hover):not(.is-hovered) {
|
||||||
|
background-color: transparent !important;
|
||||||
|
border-color: transparent !important;
|
||||||
|
color: var(--fw-gray-100);
|
||||||
|
}
|
||||||
|
&.is-hovered,
|
||||||
|
&:hover,
|
||||||
|
&.is-active,
|
||||||
|
&:active {
|
||||||
|
background-color: var(--fw-gray-800) !important;
|
||||||
|
border-color: var(--fw-gray-800) !important;
|
||||||
|
color: var(--fw-gray-100) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
i.bi {
|
i.bi {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ const uploads = useUploadsStore()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<aside :class="[$style.sidebar, $style['sticky-content']]" v-bind="color('default solid raised')">
|
<aside :class="[$style.sidebar, $style['sticky-content']]">
|
||||||
<header :class="$style['header-wrapper']">
|
<header :class="$style['header-wrapper']">
|
||||||
<Link to="/" :class="$style['logo']">
|
<Link to="/" :class="$style['logo']">
|
||||||
<img
|
<img
|
||||||
|
@ -39,12 +39,12 @@ const uploads = useUploadsStore()
|
||||||
<nav :class="$style['quick-actions']">
|
<nav :class="$style['quick-actions']">
|
||||||
|
|
||||||
<Link to="/manage/settings">
|
<Link to="/manage/settings">
|
||||||
<Button round icon="bi-wrench" secondary>
|
<Button round icon="bi-wrench" ghost secondary>
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link to="/upload">
|
<Link to="/upload">
|
||||||
<Button round icon="bi-upload" class="is-icon-only" secondary>
|
<Button round icon="bi-upload" class="is-icon-only" ghost secondary>
|
||||||
<Transition>
|
<Transition>
|
||||||
<div
|
<div
|
||||||
v-if="uploads.currentIndex < uploads.queue.length"
|
v-if="uploads.currentIndex < uploads.queue.length"
|
||||||
|
@ -77,7 +77,9 @@ const uploads = useUploadsStore()
|
||||||
<Link to="/library"
|
<Link to="/library"
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
color="secondary"
|
ghost
|
||||||
|
solid
|
||||||
|
secondary
|
||||||
icon="bi-compass"
|
icon="bi-compass"
|
||||||
>
|
>
|
||||||
{{ t('components.Sidebar.header.explore') }}
|
{{ t('components.Sidebar.header.explore') }}
|
||||||
|
@ -86,7 +88,9 @@ const uploads = useUploadsStore()
|
||||||
|
|
||||||
<Link to="/library/artists">
|
<Link to="/library/artists">
|
||||||
<Button
|
<Button
|
||||||
color="secondary"
|
ghost
|
||||||
|
solid
|
||||||
|
secondary
|
||||||
icon="bi-person"
|
icon="bi-person"
|
||||||
>
|
>
|
||||||
{{ t('components.Sidebar.link.artists') }}
|
{{ t('components.Sidebar.link.artists') }}
|
||||||
|
@ -95,7 +99,9 @@ const uploads = useUploadsStore()
|
||||||
|
|
||||||
<Link to="/library/albums">
|
<Link to="/library/albums">
|
||||||
<Button
|
<Button
|
||||||
color="secondary"
|
ghost
|
||||||
|
solid
|
||||||
|
secondary
|
||||||
icon="bi-disc"
|
icon="bi-disc"
|
||||||
>
|
>
|
||||||
{{ t('components.Sidebar.link.albums') }}
|
{{ t('components.Sidebar.link.albums') }}
|
||||||
|
@ -104,7 +110,9 @@ const uploads = useUploadsStore()
|
||||||
|
|
||||||
<Link to="/library/playlists">
|
<Link to="/library/playlists">
|
||||||
<Button
|
<Button
|
||||||
color="secondary"
|
ghost
|
||||||
|
solid
|
||||||
|
secondary
|
||||||
icon="bi-music-note-list"
|
icon="bi-music-note-list"
|
||||||
>
|
>
|
||||||
{{ t('components.Sidebar.link.playlists') }}
|
{{ t('components.Sidebar.link.playlists') }}
|
||||||
|
@ -112,7 +120,9 @@ const uploads = useUploadsStore()
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/library/radios">
|
<Link to="/library/radios">
|
||||||
<Button
|
<Button
|
||||||
color="secondary"
|
ghost
|
||||||
|
solid
|
||||||
|
secondary
|
||||||
icon="bi-boombox-fill"
|
icon="bi-boombox-fill"
|
||||||
>
|
>
|
||||||
{{ t('components.Sidebar.link.radios') }}
|
{{ t('components.Sidebar.link.radios') }}
|
||||||
|
@ -120,7 +130,9 @@ const uploads = useUploadsStore()
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/library/podcasts">
|
<Link to="/library/podcasts">
|
||||||
<Button
|
<Button
|
||||||
color="secondary"
|
ghost
|
||||||
|
solid
|
||||||
|
secondary
|
||||||
icon="bi-mic"
|
icon="bi-mic"
|
||||||
>
|
>
|
||||||
{{ t('components.Sidebar.link.podcasts') }}
|
{{ t('components.Sidebar.link.podcasts') }}
|
||||||
|
@ -128,7 +140,9 @@ const uploads = useUploadsStore()
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<Button
|
<Button
|
||||||
color="secondary"
|
ghost
|
||||||
|
solid
|
||||||
|
secondary
|
||||||
icon="bi-heart"
|
icon="bi-heart"
|
||||||
>
|
>
|
||||||
{{ t('components.Sidebar.link.favorites') }}
|
{{ t('components.Sidebar.link.favorites') }}
|
||||||
|
@ -161,6 +175,7 @@ const uploads = useUploadsStore()
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display:flex;
|
display:flex;
|
||||||
flex-direction:column;
|
flex-direction:column;
|
||||||
|
background-color: var(--fw-gray-900);
|
||||||
|
|
||||||
&.sticky-content {
|
&.sticky-content {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
|
|
@ -58,6 +58,7 @@ const labels = computed(() => ({
|
||||||
@click="openUserMenu = !openUserMenu"
|
@click="openUserMenu = !openUserMenu"
|
||||||
round
|
round
|
||||||
icon
|
icon
|
||||||
|
ghost
|
||||||
class="is-icon-only"
|
class="is-icon-only"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
|
Loading…
Reference in New Issue