diff --git a/front/src/components/album/Card.vue b/front/src/components/album/Card.vue new file mode 100644 index 000000000..8eacf3fa4 --- /dev/null +++ b/front/src/components/album/Card.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/front/src/components/album/style.scss b/front/src/components/album/style.scss new file mode 100644 index 000000000..4a3704529 --- /dev/null +++ b/front/src/components/album/style.scss @@ -0,0 +1,25 @@ +.funkwhale { + &.card.album-card { + --fw-border-radius: 12px; + --fw-card-width: 208px; + --fw-card-image-width: var(--fw-card-width); + --fw-card-padding: 16px; + + > .card-image { + border-radius: 0 !important; + width: var(--fw-card-image-width); + margin: calc(-1 * var(--fw-card-padding)) calc(-1 * var(--fw-card-padding)) 0; + } + + > .card-title { + font-size: 1rem; + text-align: left !important; + padding-top: 16px !important; + } + + > .card-content { + padding-top: 0 !important; + text-align: left !important; + } + } +} diff --git a/front/src/components/artist/Card.vue b/front/src/components/artist/Card.vue new file mode 100644 index 000000000..28c63239c --- /dev/null +++ b/front/src/components/artist/Card.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/front/src/components/artist/style.module.scss b/front/src/components/artist/style.module.scss new file mode 100644 index 000000000..6219103c6 --- /dev/null +++ b/front/src/components/artist/style.module.scss @@ -0,0 +1,28 @@ +.funkwhale { + &.card.artist-card { + --fw-border-radius: 12px; + --fw-card-width: 208px; + --fw-card-image-width: calc(var(--fw-card-width) - 16px); + --fw-card-padding: 16px; + + > .card-image { + border-radius: 50% !important; + width: var(--fw-card-image-width); + margin: calc(-1 * var(--fw-card-padding) + 8px) calc(-1 * var(--fw-card-padding) + 8px) 0; + } + + .play-button { + top: calc(var(--fw-card-width) - 44px - 8px) !important; + } + + > .card-title { + font-size: 1rem; + text-align: left !important; + } + + > .card-content { + padding-top: 6px !important; + text-align: left !important; + } + } +} diff --git a/front/src/components/artist/style.scss b/front/src/components/artist/style.scss new file mode 100644 index 000000000..6219103c6 --- /dev/null +++ b/front/src/components/artist/style.scss @@ -0,0 +1,28 @@ +.funkwhale { + &.card.artist-card { + --fw-border-radius: 12px; + --fw-card-width: 208px; + --fw-card-image-width: calc(var(--fw-card-width) - 16px); + --fw-card-padding: 16px; + + > .card-image { + border-radius: 50% !important; + width: var(--fw-card-image-width); + margin: calc(-1 * var(--fw-card-padding) + 8px) calc(-1 * var(--fw-card-padding) + 8px) 0; + } + + .play-button { + top: calc(var(--fw-card-width) - 44px - 8px) !important; + } + + > .card-title { + font-size: 1rem; + text-align: left !important; + } + + > .card-content { + padding-top: 6px !important; + text-align: left !important; + } + } +} diff --git a/front/src/components/audio/Search.vue b/front/src/components/audio/Search.vue index 1780d254e..ef1c5f5dc 100644 --- a/front/src/components/audio/Search.vue +++ b/front/src/components/audio/Search.vue @@ -72,6 +72,7 @@ const labels = computed(() => ({