From 1acd5a1f35898f92dff51cbaad135bfe37274296 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Thu, 26 Dec 2019 16:54:31 +0100 Subject: [PATCH 1/4] See #973: Album card --- front/src/components/audio/album/Card.vue | 148 ++++-------------- front/src/components/audio/album/Widget.vue | 54 +------ front/src/components/library/Albums.vue | 4 +- front/src/components/library/ArtistDetail.vue | 4 +- front/src/style/_main.scss | 30 ++++ 5 files changed, 69 insertions(+), 171 deletions(-) diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index 67d1eb706..1736191d0 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -1,109 +1,51 @@ diff --git a/front/src/components/audio/artist/Card.vue b/front/src/components/audio/artist/Card.vue index 6fe70e266..f0435940d 100644 --- a/front/src/components/audio/artist/Card.vue +++ b/front/src/components/audio/artist/Card.vue @@ -1,28 +1,20 @@ @@ -72,24 +64,4 @@ export default { .default-cover { background-image: url("../../../assets/audio/default-cover.png") !important; } - -.play-button { - position: absolute; - right: 0; - bottom: 40%; -} - -.with-overlay { - background-size: cover !important; - background-position: center !important; - height: 8em; - width: 8em; - display: flex !important; - justify-content: center !important; - align-items: center !important; -} -.flat.card .with-overlay.image { - border-radius: 50% !important; - margin: 0 auto; -} diff --git a/front/src/components/library/Artists.vue b/front/src/components/library/Artists.vue index 7f83fb0a0..10ef24f3b 100644 --- a/front/src/components/library/Artists.vue +++ b/front/src/components/library/Artists.vue @@ -42,7 +42,7 @@ -
+
diff --git a/front/src/style/_main.scss b/front/src/style/_main.scss index db2f0701a..6c8ca4584 100644 --- a/front/src/style/_main.scss +++ b/front/src/style/_main.scss @@ -354,20 +354,6 @@ td.align.right { word-wrap: break-word; } -.ui.cards > .flat.card, .flat.card { - box-shadow: none; - .content { - border: none; - } -} - -.ui.cards > .inline.card { - flex-direction: row; - .content { - padding: 0.5em 0.75em; - } -} - .ui.checkbox label { cursor: pointer; } @@ -439,21 +425,30 @@ input + .help { } } .ui.cards.app-cards { - > .app-card { - display: inline-block; - width: 15em; - > .image { + $card-width: 14em; + $card-hight: 22em; + .app-card { + display: flex; + width: $card-width; + height: $card-hight; + .head-image { + height: $card-width; background-size: cover !important; background-position: center !important; - height: 15em; - width: 15em; display: flex !important; justify-content: flex-end !important; align-items: flex-end !important; - padding: 0.5em; .button { margin: 0; } + &.circular { + overflow: visible; + border-radius: 50% !important; + height: $card-width - 1em; + width: $card-width - 1em; + margin: 0.5em; + + } } .extra { border-top: 0 !important; @@ -462,6 +457,7 @@ input + .help { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + padding-bottom: 0; } .floating.dropdown > .icon { margin-right: 0; From f0b72c82043b38c79493f5481bfd56da008896e4 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Fri, 27 Dec 2019 10:22:39 +0100 Subject: [PATCH 3/4] WIP --- front/src/components/audio/artist/Card.vue | 4 +- front/src/components/playlists/Card.vue | 86 +++++---------------- front/src/components/playlists/CardList.vue | 11 +-- front/src/style/_main.scss | 16 ++++ 4 files changed, 42 insertions(+), 75 deletions(-) diff --git a/front/src/components/audio/artist/Card.vue b/front/src/components/audio/artist/Card.vue index f0435940d..71192914e 100644 --- a/front/src/components/audio/artist/Card.vue +++ b/front/src/components/audio/artist/Card.vue @@ -1,6 +1,8 @@