Improve title visuals, make cards more responsive
This commit is contained in:
parent
a4554fbbe3
commit
ae012ad044
|
@ -5,6 +5,9 @@
|
|||
.tarot-card {
|
||||
aspect-ratio: 7 / 12;
|
||||
|
||||
max-height: 80vh;
|
||||
max-width: 80vw;
|
||||
|
||||
border: 1em solid white;
|
||||
}
|
||||
|
||||
|
@ -31,9 +34,16 @@
|
|||
|
||||
.tarot-card__section--title {
|
||||
height: 10%;
|
||||
|
||||
display: grid;
|
||||
place-items: center;
|
||||
|
||||
background: var(--tarot-card-title-background-color);
|
||||
}
|
||||
|
||||
.tarot-card__title {
|
||||
margin: 0;
|
||||
|
||||
font-family: monospace;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
#simple-card {
|
||||
height: 88vh;
|
||||
}
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" href="styles/tarotcard.css"/>
|
||||
|
@ -26,11 +22,11 @@
|
|||
|
||||
<div id="simple-card" class="tarot-card">
|
||||
<div class="tarot-card__section tarot-card__section--art">
|
||||
<img class="tarot-card__art" src="images/card_art_std.jpg" alt="The Simple Card artwork image.">
|
||||
<img class="tarot-card__art" src="images/card_art_std.jpg" alt="The Simple Card artwork image." title="The Simple Card artwork image.">
|
||||
</div>
|
||||
|
||||
<div class="tarot-card__section tarot-card__section--title">
|
||||
<p class="tarot-card__title">The Simple Card</p>
|
||||
<h1 class="tarot-card__title">The Simple Card.</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue