mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 11:37:38 +00:00
Fix unexpected cropping in grid layout
This commit is contained in:
parent
d1b1d383f5
commit
52663e9be7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -643,19 +643,19 @@ body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
|
||||
padding-bottom: 55%;
|
||||
}
|
||||
|
||||
.post-card[class*="post-access-"]:not(.post-access-public) .post-card-image-link::after {
|
||||
.post-card[class*="post-access-"] .post-card-image-link::after {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
|
||||
.post-card.keep-ratio[class*="post-access-"]:not(.post-access-public) .post-card-image-link::after {
|
||||
.post-card.keep-ratio[class*="post-access-"] .post-card-image-link::after {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.post-card.keep-ratio.post-access-public:not(.post-card-large):not(.post-card-full) .post-card-image-link::after {
|
||||
display: none;
|
||||
.post-card.keep-ratio:not(.post-card-large):not(.post-card-full) .post-card-image-link::after {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.post-card-image {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{{!-- This is a partial file used to generate a post "card"
|
||||
which templates loop over to generate a list of posts. --}}
|
||||
|
||||
<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}}">
|
||||
<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}}">
|
||||
|
||||
{{#if feature_image}}
|
||||
<a class="post-card-image-link" href="{{url}}">
|
||||
|
Loading…
Reference in New Issue
Block a user