Skip to content

Flexible `u-object-fit()` mixin

Compare
Choose a tag to compare
@tannerhodges tannerhodges released this 01 Jun 16:18
· 166 commits to master since this release

Since the extra width: 100%; height: 100%; styles were removed from .u-object-fit-cover in #9, we've refactored u-object-fit() to work like u-position() and allow custom styles via @content.

For example:

@include u-object-fit('cover-100%', cover) {
  width: 100%;
  height: 100%;
}

More Details