🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@tianz/postcss-px-to-viewport

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tianz/postcss-px-to-viewport - npm Package Versions

1.1.0

Diff
mecoepcoo
published 1.1.0 •

Changelog

Source

[1.1.0] - 2019-02-05

Added

  • landscape (Boolean) Adds @media (min-aspect-ratio: 13/9) and (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.
mecoepcoo
published 1.0.1 •
mecoepcoo
published 1.0.0 •

Changelog

Source

[1.0.0] - 2019-01-28

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 now case sensitive, so if you want to change px, then pX values won't be changed.