From 650684de471fd1c11b93ec39658573a2c3e4bf18 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 | 37 +++++++++++++++++--------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/src/components/TrackListItem.vue b/src/components/TrackListItem.vue index 62ce2c8..3f11790 100644 --- a/src/components/TrackListItem.vue +++ b/src/components/TrackListItem.vue @@ -7,16 +7,22 @@ @mouseover="focus = true" @mouseleave="focus = false" > - +
- + {{ + track.no + }} + - {{ track.no }}
@@ -156,15 +162,6 @@ button { } } -button.play-button { - opacity: 1; - .svg-icon { - height: 14px; - width: 14px; - color: #335eea; - } -} - .track { display: flex; align-items: center; @@ -205,6 +202,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 +284,7 @@ button.play-button { .artist, .album, .time, + .no, .featured { color: rgba(0, 0, 0, 0.28) !important; }