Skip to content

Commit

Permalink
Merge pull request #1105 from City-of-Helsinki/UHF-9177
Browse files Browse the repository at this point in the history
UHF-9177: Add object-fit cover and object-position-center to card images
  • Loading branch information
teroelonen authored Nov 8, 2024
2 parents fcc5d86 + bbe7383 commit dfabf9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/css/styles.min.css

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions src/scss/05_objects/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ $item-gap: $spacing-half;
background-color: $color-black-5;
display: block;
height: auto;
object-fit: cover;
object-position: center;
width: 100%;
}

Expand Down

0 comments on commit dfabf9a

Please sign in to comment.