Implement RWD for item cards

This commit is contained in:
Late Night Defender 2024-07-02 03:11:28 +07:00
parent 4fb6883950
commit 17618f31bb

View file

@ -148,6 +148,49 @@ html *
align-items: center;
}
@media only screen and (max-width: 750px) {
.middle-large {
grid-area: middle;
width: 90vw;
max-width: 35cm;
}
.row {
display: flex;
flex-direction: column;
}
.itemcard {
display: grid;
border-radius: 12px;
text-decoration: none;
margin-bottom: 0.5cm;
height: 3cm;
min-width: 6cm;
width: 100%;
transition-duration: 0.2s;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
}
.itemcard-placeholder {
display: grid;
border-radius: 12px;
text-decoration: none;
margin-bottom: 0.5cm;
min-height: 3cm;
min-width: 6cm;
width: 100%
}
.itemcard-stealth {
display: grid;
border-radius: 12px;
text-decoration: none;
margin-bottom: 0.5cm;
height: 3cm;
min-width: 6cm;
width: 100%;
transition-duration: 0.2s;
}
}
@media (prefers-color-scheme: light) {
body {