Skip to content

Commit

Permalink
style: improve post responsiveness and reduce font size on smaller sc…
Browse files Browse the repository at this point in the history
…reens
  • Loading branch information
akhileshthite committed Mar 15, 2024
1 parent fb21497 commit 1c5fd4e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!DOCTYPE html>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Social Reader</title>
<style>
@import url("./index.css");
Expand Down
19 changes: 19 additions & 0 deletions post.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,22 @@ img {
font-size: 0.875rem;
color: var(--rdp-details-color);
}

@media (max-width: 768px) {
.distributed-post {
max-width: 80%;
padding: 12px;
margin: 8px auto;
}

.post-content,
.post-footer,
.time-ago {
font-size: 0.875rem;
}

.actor-icon {
width: 40px;
height: 40px;
}
}

0 comments on commit 1c5fd4e

Please sign in to comment.