Implement RWD for item cards
This commit is contained in:
parent
4fb6883950
commit
17618f31bb
1 changed files with 43 additions and 0 deletions
43
style.css
43
style.css
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue