Skip to content

Commit 43809d0

Browse files
committed
make post images in feed smaller in smaller screens
1 parent 23322c2 commit 43809d0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Add support for sharing pages on new social network: VK (#657)
66
- Use Open Graph type 'article' for blog posts (#669)
77
- Use Twitter's `summary_large_image` card when `share-img` is specified (#668)
8+
- Make post images in the feed page smaller on smaller devices
89

910
## v3.0.0 2020-05-07
1011

_posts/2020-02-26-flake-it-till-you-make-it.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: post
33
title: Flake it till you make it
44
subtitle: Excerpt from Soulshaping by Jeff Brown
55
cover-img: /assets/img/path.jpg
6+
image: /assets/img/path.jpg
67
share-img: /assets/img/path.jpg
78
tags: [books, test]
89
---

assets/css/main.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ footer .footer-custom-content {
484484
}
485485
.post-image {
486486
float: right;
487+
margin-left: 0.625rem;
487488
height: 12rem;
488489
width: 12rem;
489490
margin-top: -2.1875rem;
@@ -539,6 +540,14 @@ footer .footer-custom-content {
539540
}
540541
}
541542

543+
@media (max-width: 767px) {
544+
.post-image, .post-image img {
545+
margin-top: 0;
546+
height: 9rem;
547+
width: 9rem;
548+
}
549+
}
550+
542551
@media (max-width: 500px) {
543552
.post-image, .post-image img {
544553
height: 6.25rem;
@@ -549,7 +558,8 @@ footer .footer-custom-content {
549558
width: 100%;
550559
text-align: center;
551560
margin-top: 0;
552-
float: left;
561+
margin-left: 0;
562+
float: none;
553563
}
554564
}
555565
/* --- Post and page headers --- */

0 commit comments

Comments
 (0)