boardgame-menu/style.css
2022-05-25 01:44:45 -07:00

101 lines
1.6 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
html {
font-family: 'Roboto', sans-serif;
color: #707070;
}
.boardgames {
width: 1100px;
margin: 0 auto;
}
.boardgame {
margin-bottom: 12em;
}
@media print {
.boardgames:nth-child(3) {
page-break-after: always;
}
}
.boardgame .stat {
font-size: 24px;
font-weight: 900;
}
.boardgame .weight::before {
content: "🧠 ";
font-size: 42px;
font-weight: bold;
}
.boardgame .time::before {
content: "⏲️ ";
font-size: 42px;
font-weight: bold;
}
.boardgame .players::before {
content: "👥 ";
font-size: 42px;
font-weight: bold;
}
.boardgame img {
width: 250px;
height: 300px;
object-fit: cover;
}
.boardgame .title {
font-size: 42px;
font-weight: bold;
margin: 0;
}
.boardgame .description {
font-size: 18px;
line-height: 24px;
}
.boardgame .mechanics {
font-size: 20px;
font-weight: 300;
}
.boardgame {
display: grid;
grid-template-columns: auto auto auto;
grid-template-rows: auto repeat(3, 1fr) auto;
grid-column-gap: 32px;
grid-row-gap: 8px;
height: 300px;
}
.boardgame img {
grid-area: 1 / 1 / 6 / 2;
}
.boardgame .title {
grid-area: 1 / 2 / 2 / 4;
}
.boardgame .players {
grid-area: 2 / 2 / 3 / 3;
}
.boardgame .time {
grid-area: 3 / 2 / 4 / 3;
}
.boardgame .weight {
grid-area: 4 / 2 / 5 / 3;
}
.boardgame .description {
grid-area: 2 / 3 / 5 / 4;
margin-top: 1em;
}
.boardgame .mechanics {
grid-area: 5 / 2 / 6 / 4;
}