Skip to content

Commit 52663e9

Browse files
Fix unexpected cropping in grid layout
1 parent d1b1d38 commit 52663e9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,19 +643,19 @@ body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
643643
padding-bottom: 55%;
644644
}
645645

646-
.post-card[class*="post-access-"]:not(.post-access-public) .post-card-image-link::after {
646+
.post-card[class*="post-access-"] .post-card-image-link::after {
647647
background-color: rgba(0, 0, 0, 0.5);
648648
backdrop-filter: blur(3px);
649649
}
650650

651-
.post-card.keep-ratio[class*="post-access-"]:not(.post-access-public) .post-card-image-link::after {
651+
.post-card.keep-ratio[class*="post-access-"] .post-card-image-link::after {
652652
position: absolute;
653653
inset: 0;
654654
padding-bottom: 0;
655655
}
656656

657-
.post-card.keep-ratio.post-access-public:not(.post-card-large):not(.post-card-full) .post-card-image-link::after {
658-
display: none;
657+
.post-card.keep-ratio:not(.post-card-large):not(.post-card-full) .post-card-image-link::after {
658+
padding-bottom: 0;
659659
}
660660

661661
.post-card-image {

partials/post-card.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{!-- This is a partial file used to generate a post "card"
22
which templates loop over to generate a list of posts. --}}
33

4-
<article class="post-card {{post_class}}{{#match @custom.feed_layout "Classic"}}{{#is "home"}}{{#has index="0"}} post-card-large{{/has}}{{#has index="1,2"}} dynamic{{/has}}{{/is}}{{/match}}{{#match @custom.feed_layout "Grid"}} keep-ratio{{/match}}{{#match @custom.feed_layout "List"}}{{#is "home"}} post-card-large{{/is}}{{/match}}{{#unless access}} post-access-{{visibility}}{{/unless}}">
4+
<article class="post-card {{post_class}}{{#match @custom.feed_layout "Classic"}}{{#is "home"}}{{#has index="0"}} post-card-large{{/has}}{{#has index="1,2"}} dynamic{{/has}}{{/is}}{{/match}}{{#match @custom.feed_layout "Grid"}} keep-ratio{{/match}}{{#match @custom.feed_layout "List"}}{{#is "home, paged"}} post-card-large{{/is}}{{/match}}{{#unless access}} post-access-{{visibility}}{{/unless}}">
55

66
{{#if feature_image}}
77
<a class="post-card-image-link" href="{{url}}">

0 commit comments

Comments
 (0)