tarotcard.css/tarotcard.css

67 lines
1.1 KiB
CSS

:root {
--tarot-card-title-background-color: rgb(234, 191, 99);
}
*, *::before, *::after {
margin: 0;
box-sizing: border-box;
}
.tarot-card {
aspect-ratio: 7 / 12;
max-height: 80vh;
max-width: 80vw;
}
.tarot-card__content {
width: 100%;
height: 100%;
border: 1em solid white;
}
.tarot-card__section {
border-left: 0.4rem solid black;
border-right: 0.4rem solid black;
border-bottom: 0.4rem solid black;
}
.tarot-card__section:nth-child(1) {
border-top: 0.4rem solid black;
}
.tarot-card__section--art {
height: 90%;
}
.tarot-card__art {
height: 100%;
width: 100%;
object-fit: cover;
}
.tarot-card__section--title {
height: 10%;
display: flex;
justify-content: center;
align-items: center;
background: var(--tarot-card-title-background-color);
}
.tarot-card__title {
margin: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-transform: uppercase;
font-size: clamp(0.8rem, 5vw, 1.2rem);
font-family: monospace;
font-weight: 900;
}