Skip to content

Releases: evrone/postcss-px-to-viewport

Version 1.1.1

09 Jul 05:52
Compare
Choose a tag to compare

Fixed

  • Fixed rule.source === undefined from postcss-modules-values.

Version 1.1.0

05 Feb 11:16
Compare
Choose a tag to compare

Added

  • landscape (Boolean) Adds @media (orientation: landscape) with values converted via landscapeWidth.
  • landscapeUnit (String) Expected unit for landscape option
  • landscapeWidth (Number) Viewport width for landscape orientation.

Fixed

  • mediaQuery option if true does not mutate its value now, but the rule inside it instead.

Version 1.0.0

28 Jan 15:48
Compare
Choose a tag to compare

We are pleased to present you updated postcss-px-to-viewport v1.0.0
We have made improvements that address the issues of active developers.

Added

  • replace option - (Boolean) replaces rules containing vw instead of adding fallbacks.
  • propList option - (Array) The properties that can change from px to vw.
  • exclude option - (Array or Regexp) Ignore some files like node_modules.

Changed

  • zero values now remain unitless.
  • replace regexp is not case sensitive, so if you want to change px, then pX values won't be changed.