added responsive design for posts
This commit is contained in:
@@ -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%;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user