postcss-slope-calc

0.2.0 • Public • Published

Slope Calc

Usage

Example:

.my-widget {
  padding: slope-calc(20px 320px60px 1440px60px 1441px);
}

Outputs:

.my-widget {
  padding: calc(3.57143vw + .53571rem);
}
@media only screen and (min-width: 90em) {
  .my-widget {
    padding: 3.75rem;
  }
}

Flags

Flags are an optional argument passed of at the end of the slope-calc function.

  • clip
    add a media query at the largest breakpoint that sets the property to a fixed value

Readme

Keywords

none

Package Sidebar

Install

npm i postcss-slope-calc

Weekly Downloads

11

Version

0.2.0

License

none

Last publish

Collaborators

  • btpoe