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.

119 lines
1.4 KiB
CSS

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