Skip to content

Commit

Permalink
Merge pull request #966 from City-of-Helsinki/UHF-9348
Browse files Browse the repository at this point in the history
UHF-9348: Add fix for image-placeholder size on content cards paragraph
  • Loading branch information
teroelonen authored Apr 18, 2024
2 parents 38297cf + 7093716 commit b9554b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/css/styles.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/scss/06_components/paragraphs/_content-cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ $-card-spacing: $spacing-and-half;
@include image-defaults($width: 100%, $max-width: null);
@include loading-image-background;
}

.image-placeholder {
// Change the image placeholder aspect ratio from the the default 16/9 to ratio used by the paragraphs images.
aspect-ratio: 6 / 4;
}
}

.content-card__title {
Expand Down

0 comments on commit b9554b1

Please sign in to comment.