diff --git a/tarotcard-flip.css b/tarotcard-flip.css index d811d38..b4f3652 100644 --- a/tarotcard-flip.css +++ b/tarotcard-flip.css @@ -1,18 +1,9 @@ -:root { - --min-flip-card-height: 80vh; -} - @keyframes flip-card { to { transform: rotateY(180deg); } } -.tarot-card--flip-on-hover, -.tarot-card--flip-automatically { - min-height: var(--min-flip-card-height); -} - .tarot-card--flip-automatically .tarot-card__content { animation: flip-card 800ms 2s forwards; } diff --git a/tarotcard.css b/tarotcard.css index c005245..34c3d13 100644 --- a/tarotcard.css +++ b/tarotcard.css @@ -10,8 +10,9 @@ .tarot-card { aspect-ratio: 7 / 12; - max-height: 80vh; max-width: 80vw; + max-height: 80vh; + min-height: 80%; } .tarot-card__link { diff --git a/test/index.html b/test/index.html index e0be240..dcc258c 100644 --- a/test/index.html +++ b/test/index.html @@ -20,7 +20,7 @@ height: 100vh; display: flex; - justify-content: space-evenly; + gap: 2em; align-items: center; } @@ -38,7 +38,6 @@
- - +