added responsive design for posts

This commit is contained in:
2022-01-30 15:07:56 -06:00
parent dda91e5c35
commit 5284452b1f

View File

@@ -43,6 +43,7 @@ img, video {
} }
.post-metadata * { .post-metadata * {
display: inline-flex;
background-color:rgb(250, 206, 248); background-color:rgb(250, 206, 248);
border-color: transparent; border-color: transparent;
text-decoration: none; text-decoration: none;
@@ -85,3 +86,23 @@ img, video {
.comments-hidden { .comments-hidden {
display: none; display: none;
} }
/* Queries */
@media only screen and (max-width: 1050px) { /* for tablets */
img, video {
max-height: 25rem;
}
.title {
font-size: 1.5rem;
}
.post-metadata {
font-size: 0.8rem;
text-align: center;
text-overflow: ellipsis;
}
.post-metadata * {
max-width: 15%;
}
}