mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
improve component spacing
+ bump up folder and album page gap to ~ 1rem + test out noise texture on album img on album page + ~ although i'm still annoyed about the scrollbar space irregularities (will fix someday)
This commit is contained in:
@@ -94,11 +94,4 @@ onStartTyping(() => {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
|
||||||
padding: 0 $small;
|
|
||||||
margin-top: $small;
|
|
||||||
overflow: auto;
|
|
||||||
padding-right: $small !important;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+19
-18
@@ -1,5 +1,6 @@
|
|||||||
@import "../css/ProgressBar.scss";
|
@import "../css/ProgressBar.scss";
|
||||||
@import "mixins.scss";
|
@import "mixins.scss";
|
||||||
|
@import "./moz.scss";
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--separator: #ffffff46;
|
--separator: #ffffff46;
|
||||||
@@ -85,11 +86,26 @@ a {
|
|||||||
max-width: 2720px;
|
max-width: 2720px;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
gap: $small;
|
||||||
|
}
|
||||||
|
|
||||||
|
#acontent {
|
||||||
|
grid-area: content;
|
||||||
|
width: calc(100% + $small);
|
||||||
|
max-width: 1955px;
|
||||||
|
overflow: hidden auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding-right: $medium;
|
||||||
|
margin-bottom: $small;
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
margin: $small;
|
||||||
|
width: calc(100% - 1rem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
grid-area: tabs;
|
grid-area: tabs;
|
||||||
border-left: solid 1px $gray3;
|
|
||||||
|
|
||||||
@include tablet-landscape {
|
@include tablet-landscape {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -137,24 +153,9 @@ a {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
#acontent {
|
|
||||||
grid-area: content;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 1955px;
|
|
||||||
padding: $small;
|
|
||||||
padding-left: 0;
|
|
||||||
overflow: auto;
|
|
||||||
margin: 0 auto;
|
|
||||||
|
|
||||||
.nav {
|
|
||||||
margin: $small;
|
|
||||||
width: calc(100% - 1rem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.r-sidebar {
|
.r-sidebar {
|
||||||
grid-area: r-sidebar;
|
grid-area: r-sidebar;
|
||||||
border-left: solid 1px $gray3;
|
// border-left: solid 1px $gray3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image {
|
.image {
|
||||||
@@ -187,7 +188,7 @@ a {
|
|||||||
/* width */
|
/* width */
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 0.5rem;
|
width: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Track */
|
/* Track */
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// Styles that only apply on our dear Firefox
|
||||||
|
|
||||||
|
@-moz-document url-prefix() {
|
||||||
|
#acontent {
|
||||||
|
padding-right: 1rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ap-page {
|
||||||
|
width: 100% !important;
|
||||||
|
padding-right: 1rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ap-page-bottom-container {
|
||||||
|
width: calc(100% - 1rem) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="1600"
|
||||||
|
height="900"
|
||||||
|
viewBox="0 0 1600 900"
|
||||||
|
version="1.1"
|
||||||
|
id="svg13"
|
||||||
|
sodipodi:docname="noise-texture.svg"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||||
|
<metadata
|
||||||
|
id="metadata17">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1366"
|
||||||
|
inkscape:window-height="714"
|
||||||
|
id="namedview15"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="0.26222222"
|
||||||
|
inkscape:cx="28.104465"
|
||||||
|
inkscape:cy="117.7106"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="28"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg13" />
|
||||||
|
<defs
|
||||||
|
id="defs9">
|
||||||
|
<radialGradient
|
||||||
|
id="a"
|
||||||
|
gradientTransform="matrix(1 1 -1 1 0.5 -0.5)">
|
||||||
|
<stop
|
||||||
|
stop-color="#455A64"
|
||||||
|
stop-opacity="0"
|
||||||
|
offset="0.25"
|
||||||
|
id="stop2"
|
||||||
|
style="stop-color:#222222;stop-opacity:0" />
|
||||||
|
<stop
|
||||||
|
stop-color="#455A64"
|
||||||
|
stop-opacity="0.5"
|
||||||
|
offset="0.75"
|
||||||
|
id="stop4"
|
||||||
|
style="stop-color:#222222;stop-opacity:0.50196081" />
|
||||||
|
<stop
|
||||||
|
stop-color="#455A64"
|
||||||
|
stop-opacity="1"
|
||||||
|
offset="1"
|
||||||
|
id="stop6"
|
||||||
|
style="stop-color:#222222;stop-opacity:1" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect
|
||||||
|
width="1600"
|
||||||
|
height="900"
|
||||||
|
fill="url(#a)"
|
||||||
|
id="rect11" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -15,6 +15,7 @@
|
|||||||
v-motion-slide-from-left
|
v-motion-slide-from-left
|
||||||
class="rounded shadow-lg"
|
class="rounded shadow-lg"
|
||||||
/>
|
/>
|
||||||
|
<img class="filter rounded" src="../../assets/images/noise-texture.svg" alt="" />
|
||||||
</div>
|
</div>
|
||||||
<div class="info" :class="{ nocontrast: isLight() }">
|
<div class="info" :class="{ nocontrast: isLight() }">
|
||||||
<div class="top" v-motion-slide-from-top>
|
<div class="top" v-motion-slide-from-top>
|
||||||
@@ -187,6 +188,7 @@ function theyContrast(color1: string, color2: string) {
|
|||||||
.art {
|
.art {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 16rem;
|
height: 16rem;
|
||||||
@@ -194,6 +196,11 @@ function theyContrast(color1: string, color2: string) {
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
transition: all 0.2s ease-in-out;
|
transition: all 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.filter {
|
||||||
|
position: absolute;
|
||||||
|
// display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nocontrast {
|
.nocontrast {
|
||||||
|
|||||||
@@ -1,37 +1,32 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="f-container rounded" :class="{ no_f: !props.folders.length }">
|
<div class="f-container rounded">
|
||||||
<div id="f-items" v-if="props.folders.length">
|
<div id="f-items">
|
||||||
<FolderItem
|
<FolderItem
|
||||||
v-for="folder in props.folders"
|
v-for="folder in folders"
|
||||||
:key="folder"
|
:key="JSON.stringify(folder)"
|
||||||
:folder="folder"
|
:folder="folder"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup lang="ts">
|
||||||
|
import { Folder } from "@/interfaces";
|
||||||
import FolderItem from "./FolderItem.vue";
|
import FolderItem from "./FolderItem.vue";
|
||||||
|
|
||||||
const props = defineProps({
|
defineProps<{
|
||||||
folders: {
|
folders: Folder[];
|
||||||
type: Array,
|
}>();
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
.no_f {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#f-items {
|
#f-items {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
||||||
gap: $medium;
|
gap: $medium;
|
||||||
border-bottom: 1px solid $gray3;
|
border-bottom: 1px solid $gray3;
|
||||||
padding-bottom: .55rem;
|
padding: 1rem 0;
|
||||||
|
padding-top: $small;
|
||||||
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -130,9 +130,10 @@ function getTracks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
|
background-color: $gray5;
|
||||||
|
padding: $small 0;
|
||||||
|
|
||||||
.current {
|
.current {
|
||||||
a {
|
a {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="songlist-item rounded"
|
class="songlist-item"
|
||||||
:class="[
|
:class="[
|
||||||
{ current: isCurrent },
|
{ current: isCurrent },
|
||||||
{ contexton: context_on },
|
{ contexton: context_on },
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ap-container noscroll">
|
<div class="ap-container noscroll rounded">
|
||||||
<div id="ap-page">
|
<div id="ap-page">
|
||||||
<header class="ap-page-header" ref="apheader">
|
<header class="ap-page-header" ref="apheader">
|
||||||
<slot name="header"></slot>
|
<slot name="header"></slot>
|
||||||
@@ -101,13 +101,28 @@ function toggleBottom() {
|
|||||||
.ap-container {
|
.ap-container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: -$small;
|
width: calc(100% + 1rem);
|
||||||
|
|
||||||
|
#ap-page {
|
||||||
|
overflow: auto;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 18rem 1fr;
|
||||||
|
gap: 1rem;
|
||||||
|
padding-right: $small;
|
||||||
|
width: calc(100% - $small);
|
||||||
|
|
||||||
|
.ap-page-content {
|
||||||
|
padding-bottom: 16rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.ap-page-bottom-container {
|
.ap-page-bottom-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: 15rem;
|
height: 15rem;
|
||||||
width: calc(100% - $small);
|
width: calc(100% - 1.25rem);
|
||||||
background-color: $gray;
|
background-color: $gray;
|
||||||
transition: all 0.5s ease !important;
|
transition: all 0.5s ease !important;
|
||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
@@ -164,21 +179,7 @@ function toggleBottom() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.addbottompadding {
|
.addbottompadding {
|
||||||
padding-bottom: 17rem;
|
padding-bottom: 16rem;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#ap-page {
|
|
||||||
padding-right: $small;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
overflow: auto;
|
|
||||||
display: grid;
|
|
||||||
grid-template-rows: 18rem 1fr;
|
|
||||||
gap: 1rem;
|
|
||||||
|
|
||||||
.ap-page-content {
|
|
||||||
padding-bottom: 17rem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="f-view-parent">
|
<div id="f-view-parent">
|
||||||
<div id="scrollable" ref="scrollable">
|
<div id="scrollable" ref="scrollable">
|
||||||
<FolderList :folders="FStore.dirs" />
|
<FolderList :folders="FStore.dirs" v-if="FStore.dirs.length" />
|
||||||
<SongList :tracks="FStore.tracks" :path="FStore.path" />
|
<SongList :tracks="FStore.tracks" :path="FStore.path" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user