openvibers/openvibe.games Commits
Games: the Vibe Heroes art fills its card on the home page instead of sitting in a banded square (#71)
Changes
@@@ -207,6 +207,10 @@.shot .shot-img {object-fit: contain;}++ /* Art painted on its own background fills the panel (contain left it a square with bands either side). */++ .shot .shot-img.shot-cover {++ object-fit: cover;++ }.game-body {padding: 26px;display: flex;@@@ -286,6 +290,9 @@.game-card.wide {grid-template-columns: 1fr;}++ .game-card.wide .shot:has(.shot-cover) {++ min-height: 300px;++ }}.cta-row {display: flex;@@@ -674,7 +681,7 @@aria-label="Vibe Heroes: five hero cards fanned out, a legendary in the middle"><img-- class="shot-art shot-img"++ class="shot-art shot-img shot-cover"src="/casual/vibe-heroes/heroes.webp"width="400"height="394"
@@ -207,6 +207,10 @@
@@ -207,6 +207,10 @@
.shot .shot-img {
.shot .shot-img {
object-fit: contain;
object-fit: contain;
}
}
+ /* Art painted on its own background fills the panel (contain left it a square with bands either side). */
+ .shot .shot-img.shot-cover {
+ object-fit: cover;
+ }
.game-body {
.game-body {
padding: 26px;
padding: 26px;
display: flex;
display: flex;
@@ -286,6 +290,9 @@
@@ -286,6 +290,9 @@
.game-card.wide {
.game-card.wide {
grid-template-columns: 1fr;
grid-template-columns: 1fr;
}
}
+ .game-card.wide .shot:has(.shot-cover) {
+ min-height: 300px;
+ }
}
}
.cta-row {
.cta-row {
display: flex;
display: flex;
@@ -674,7 +681,7 @@
@@ -674,7 +681,7 @@
aria-label="Vibe Heroes: five hero cards fanned out, a legendary in the middle"
aria-label="Vibe Heroes: five hero cards fanned out, a legendary in the middle"
>
>
<img
<img
- class="shot-art shot-img"
+ class="shot-art shot-img shot-cover"
src="/casual/vibe-heroes/heroes.webp"
src="/casual/vibe-heroes/heroes.webp"
width="400"
width="400"
height="394"
height="394"