tarotcard.css/tarotcard.css

67 lines
1.1 KiB
CSS
Raw Normal View History

:root {
--tarot-card-title-background-color: rgb(234, 191, 99);
}
2023-12-02 13:12:22 +00:00
*, *::before, *::after {
margin: 0;
box-sizing: border-box;
}
.tarot-card {
aspect-ratio: 7 / 12;
2023-12-01 14:20:34 +00:00
max-height: 80vh;
max-width: 80vw;
}
.tarot-card__content {
width: 100%;
height: 100%;
2023-12-01 14:20:34 +00:00
border: 1em solid white;
}
2023-12-01 14:37:20 +00:00
.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%;
2023-12-02 11:29:49 +00:00
display: flex;
justify-content: center;
align-items: center;
background: var(--tarot-card-title-background-color);
}
.tarot-card__title {
margin: 0;
2023-12-02 11:29:49 +00:00
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;
}