Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'enhancement/feature-image-aspect-ratio' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Jul 17, 2024
2 parents f37ddef + 8d611c8 commit e2323d3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/blocks/posts-list/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
overflow: hidden;
}

.hrswp-block-posts-list__featured-image img {
aspect-ratio: 4/3;
object-fit: cover;
}

.hrswp-block-posts-list__post-title {
font-size: var(--wp--preset--font-size--medium);
line-height: 1.2;
Expand Down Expand Up @@ -133,19 +138,19 @@

.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image {

&.size-thumbnail {
.size-thumbnail {
width: 68px;
}

&.size-small {
.size-small {
width: 91px;
}

&.size-medium {
.size-medium {
width: 180px;
}

&.size-large {
.size-large {
width: 60%;
}

Expand Down

0 comments on commit e2323d3

Please # to comment.