You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
1.3 KiB
CSS

2 years ago
* {
2 years ago
box-sizing: border-box;
2 years ago
}
2 years ago
html,
body {
font-family: sans-serif;
2 years ago
}
a {
2 years ago
color: currentColor;
text-decoration: none;
2 years ago
}
main {
2 years ago
padding: 0 8px;
2 years ago
}
.list {
2 years ago
padding: 0;
display: grid;
2 years ago
2 years ago
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
2 years ago
2 years ago
gap: 16px;
2 years ago
}
.card {
2 years ago
/* transform: skew(14deg); */
aspect-ratio: 1;
border: 1px solid currentColor;
padding: 32px;
font-stretch: 50%;
2 years ago
2 years ago
display: flex;
justify-content: center;
align-items: center;
position: relative;
2 years ago
2 years ago
font-size: 32px;
text-align: center;
2 years ago
}
.card:hover {
2 years ago
background-color: grey;
2 years ago
}
.card > * {
2 years ago
/* transform: skew(-28deg); */
2 years ago
}
.card svg {
2 years ago
width: 32px;
height: 32px;
}
.card .instrument svg {
padding: 32px;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
2 years ago
}
.card img {
2 years ago
width: 100%;
height: 100%;
object-fit: contain;
2 years ago
}
.card .overlay {
2 years ago
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
vertical-align: middle;
display: flex;
justify-content: center;
align-items: center;
background-color: grey;
opacity: 0;
2 years ago
}
.card .overlay:hover {
2 years ago
opacity: 1;
2 years ago
}
.card .title {
2 years ago
font-weight: normal;
2 years ago
}
2 years ago
@media (max-width: 767px) {
header {
display: block;
font-size: 28px;
}
2 years ago
2 years ago
header .title {
display: inline;
font-size: 28px;
}
2 years ago
2 years ago
.search {
margin-top: 16px;
display: block;
}
2 years ago
2 years ago
.search input {
font-size: 28px;
}
2 years ago
}