mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
client: migrate to solid dark mode
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div class="f-container rounded" :class="{ no_f: !folders.length }">
|
||||
<p v-if="folders.length">folders in this directory</p>
|
||||
<div id="f-items" v-if="folders.length">
|
||||
<router-link
|
||||
:to="{ name: 'FolderView', params: { path: folder.path } }"
|
||||
@@ -13,9 +12,6 @@
|
||||
</div>
|
||||
</router-link>
|
||||
</div>
|
||||
<div v-else>
|
||||
<p>No folders in this directory</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -27,26 +23,19 @@ export default {
|
||||
|
||||
<style lang="scss">
|
||||
.f-container {
|
||||
margin-bottom: 1rem;
|
||||
background: rgba(31, 30, 30, 0.521);
|
||||
margin-top: $small;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.no_f {
|
||||
background-image: url(../../assets/icons/info.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 1rem;
|
||||
background-size: 2rem 2rem;
|
||||
padding-left: 4rem;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#f-items {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
||||
grid-gap: 1rem;
|
||||
border-top: 1px solid var(--separator);
|
||||
gap: 1rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.f-container p {
|
||||
@@ -65,7 +54,7 @@ export default {
|
||||
background-repeat: no-repeat;
|
||||
background-position: 1rem;
|
||||
background-size: 10% 100%;
|
||||
background-color: rgba(80, 80, 80, 0.247);
|
||||
background-color: rgb(22, 36, 85);
|
||||
transition: all 0.2s ease;
|
||||
|
||||
.f-item-count {
|
||||
|
||||
@@ -26,7 +26,13 @@
|
||||
:style="{
|
||||
backgroundImage: `url("${song.image}")`,
|
||||
}"
|
||||
></div>
|
||||
>
|
||||
<div
|
||||
class="now-playing-track image"
|
||||
v-if="current._id.$oid == song._id.$oid"
|
||||
:class="{ active: is_playing, not_active: !is_playing }"
|
||||
></div>
|
||||
</div>
|
||||
<div>
|
||||
<span class="ellip">{{ song.title }}</span>
|
||||
</div>
|
||||
@@ -129,7 +135,7 @@ export default {
|
||||
|
||||
const playAudio = audio.playAudio;
|
||||
const current = ref(perks.current);
|
||||
const search_query = ref(state.search_query)
|
||||
const search_query = ref(state.search_query);
|
||||
|
||||
const searchSongs = computed(() => {
|
||||
return song_list.value.filter((song) => {
|
||||
@@ -149,6 +155,7 @@ export default {
|
||||
putCommas,
|
||||
current,
|
||||
search_query,
|
||||
is_playing: state.is_playing,
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -165,15 +172,20 @@ export default {
|
||||
.table {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(56, 56, 56, 0.363);
|
||||
overflow-y: auto;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.current {
|
||||
color: rgb(255, 238, 0);
|
||||
.current * {
|
||||
color: rgb(0, 110, 255);
|
||||
}
|
||||
|
||||
.current:hover {
|
||||
* {
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,6 +194,8 @@ export default {
|
||||
height: 3rem;
|
||||
margin-right: 1rem;
|
||||
background-image: url(../../assets/icons/file.svg);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.folder .table .flex {
|
||||
@@ -196,18 +210,8 @@ export default {
|
||||
}
|
||||
td,
|
||||
th {
|
||||
padding: 8px;
|
||||
padding: $small;
|
||||
text-align: left;
|
||||
outline: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
th {
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: rgba(29, 29, 29, 0.767);
|
||||
}
|
||||
|
||||
th {
|
||||
@@ -216,8 +220,7 @@ th {
|
||||
}
|
||||
|
||||
td .artist {
|
||||
font-weight: lighter;
|
||||
margin-right: 0.5rem;
|
||||
margin-right: 0.2rem;
|
||||
}
|
||||
|
||||
.folder .table table {
|
||||
|
||||
Reference in New Issue
Block a user