Reapply "[Posts] Add support for folding displays (#763)"

This reverts commit b0e263d36e.
This commit is contained in:
edshot99 2024-12-08 02:38:56 -06:00
parent b62770fa3d
commit e87ce043da

View File

@ -199,8 +199,9 @@
#posts #posts-container {
width: 100%;
display: flex;
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1vw;
align-items: center;
justify-content: space-evenly;
}
@ -211,7 +212,8 @@
text-align: center;
vertical-align: middle;
display: inline-block;
width: 31vw;
width: 100%;
container-type: inline-size;
a {
margin: 0 auto;
@ -219,7 +221,7 @@
img {
max-height: 150px;
max-width: 31vw;
max-width: 100cqw;
}
.desc {
@ -229,13 +231,11 @@
.user-disable-cropped-false {
article.post-preview {
width: 31vw;
img {
height: auto;
max-height: none;
max-width: none;
width: 31vw;
width: 100cqw;
&.has-cropped-false {
object-fit: cover;
@ -314,6 +314,13 @@
}
}
}
@media screen and (max-width: 800px) and (horizontal-viewport-segments: 2) {
body.resp {
#posts #posts-container {
grid-template-columns: repeat(4, 1fr);
}
}
}
@media screen and (max-width: 660px) {
body.resp {