Skip to content

Commit

Permalink
feature(image): ✨ add fit image modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil authored and daniil4udo committed Jan 7, 2025
1 parent 92136f5 commit bb5bbde
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/bulma/sass/elements/image.sass
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ $dimensions: 16 24 32 48 64 96 128 !default
width: 100%
&.is-rounded
border-radius: var(--radius-rounded)
&.is-contained
object-fit: contain
object-position: center center
&.is-covered
object-fit: cover
object-position: center center
&.is-filled
object-fit: fill
object-position: center center
&.is-fullwidth
width: 100%
// Ratio
Expand Down

0 comments on commit bb5bbde

Please sign in to comment.