From 1d34aa794fb5ac9da18bdaa2127f9a37863b6398 Mon Sep 17 00:00:00 2001 From: "Mr. Will" Date: Fri, 12 Feb 2021 07:18:55 +0000 Subject: [PATCH 1/4] =?UTF-8?q?Update=20animations=20for=20lyrics,=20panel?= =?UTF-8?q?s=20and=20tracklists=20|=20=E4=B8=BA=E6=AD=8C=E8=AF=8D=E3=80=81?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E5=92=8C=E5=88=97=E8=A1=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=20(#249)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update lyrics scrolling animation * Remove the useless module imported by mistake * Auto prettify the changed code * Update lyrics animation curve and add blur effect to lyrics * Auto prettify the changed code * Add initial lyrics blur filter * Update lyrics blur and fade effect * Update open and close animation for explore page's panel * Update tracklist hover animation * Add scale animation to lyrics * Auto prettify the changed code * Update lyrics blur effect with CSS variables * Support small screen devices for all pages * Fix paddings for some pages * Auto prettify the changed code * Update lyrics page for small screen devices --- public/index.html | 2 +- src/App.vue | 23 +++--- src/components/CoverRow.vue | 26 ++++++- src/components/MvRow.vue | 35 ++++++++- src/components/Navbar.vue | 74 ++++++++++++++++++- src/components/Player.vue | 33 ++++++++- src/components/TrackList.vue | 47 +++++++++--- src/components/TrackListItem.vue | 13 +++- src/electron/tray.js | 30 ++++---- src/views/album.vue | 26 +++++++ src/views/artist.vue | 34 ++++++++- src/views/artistMV.vue | 1 + src/views/explore.vue | 34 ++++++++- src/views/home.vue | 1 + src/views/library.vue | 14 ++++ src/views/loginUsername.vue | 1 + src/views/lyrics.vue | 120 ++++++++++++++++++++++++++++--- src/views/mv.vue | 4 ++ src/views/playlist.vue | 23 ++++++ src/views/search.vue | 11 ++- src/views/searchType.vue | 1 + src/views/settings.vue | 1 + 22 files changed, 496 insertions(+), 58 deletions(-) diff --git a/public/index.html b/public/index.html index 193d42c..dd20039 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ - + <%= htmlWebpackPlugin.options.title %> diff --git a/src/App.vue b/src/App.vue index ff33a46..b5aa31c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -91,6 +91,15 @@ export default { --color-navbar-bg: rgba(255, 255, 255, 0.86); --color-primary-bg-for-transparent: rgba(189, 207, 255, 0.28); --color-secondary-bg-for-transparent: rgba(209, 209, 214, 0.28); + + --main-content-padding-x: 10vw; + --main-content-padding: 0 var(--main-content-padding-x); +} + +@media (max-width: 1336px) { + :root { + --main-content-padding-x: 5vw; + } } [data-theme="dark"] { @@ -117,26 +126,18 @@ input { } body { background-color: var(--color-body-bg); + margin: 0; } html { overflow-y: overlay; - min-width: 768px; + min-width: 340px; } main { + max-width: 100vw; margin-top: 84px; margin-bottom: 96px; - padding: { - right: 10vw; - left: 10vw; - } -} - -@media (max-width: 1336px) { - main { - padding: 0 5vw; - } } select, diff --git a/src/components/CoverRow.vue b/src/components/CoverRow.vue index 7270c3d..f9ea4de 100644 --- a/src/components/CoverRow.vue +++ b/src/components/CoverRow.vue @@ -1,5 +1,9 @@