From 903c58d659d20a5f3e52228b79dc90ba009599f2 Mon Sep 17 00:00:00 2001 From: qier222 <68148142+qier222@users.noreply.github.com> Date: Thu, 22 Oct 2020 21:21:32 +0800 Subject: [PATCH] refactor: change the style of playing track --- src/components/TrackListItem.vue | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/components/TrackListItem.vue b/src/components/TrackListItem.vue index 62ce2c8..6aa5ae0 100644 --- a/src/components/TrackListItem.vue +++ b/src/components/TrackListItem.vue @@ -7,16 +7,26 @@ @mouseover="focus = true" @mouseleave="focus = false" > - +
- {{ track.no }} + {{ + track.no + }} +
@@ -156,15 +166,6 @@ button { } } -button.play-button { - opacity: 1; - .svg-icon { - height: 14px; - width: 14px; - color: #335eea; - } -} - .track { display: flex; align-items: center; @@ -205,6 +206,11 @@ button.play-button { border: 1px solid rgba(0, 0, 0, 0.04); cursor: pointer; } + + img.hover { + filter: drop-shadow(100 200 0 black); + } + .title-and-artist { flex: 1; display: flex; @@ -282,6 +288,7 @@ button.play-button { .artist, .album, .time, + .no, .featured { color: rgba(0, 0, 0, 0.28) !important; }