From 8024c4654f3c0ddbc735687e10321556973f94fe Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Thu, 26 Dec 2019 17:30:47 +0100 Subject: [PATCH] See #973: artist card --- front/src/components/audio/album/Card.vue | 6 ++- front/src/components/audio/artist/Card.vue | 54 ++++++---------------- front/src/components/library/Artists.vue | 2 +- front/src/style/_main.scss | 38 +++++++-------- 4 files changed, 36 insertions(+), 64 deletions(-) diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index 1736191d0..6be2dc37c 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -2,7 +2,7 @@
+ :class="['ui', 'head-image', 'image', {'default-cover': !album.cover.original}]" v-lazy:background-image="imageUrl">
@@ -58,4 +58,8 @@ export default { background-image: url("../../../assets/audio/default-cover.png") !important; } +.card.app-card > .head-image > .icon { + margin: 0.5em; + +} 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;