postcss-view-sizes

1.0.0 • Public • Published

PostCSS Viewport unit Variant

This module is a PostCSS plugin to polyfill of viewport unit variants. It handle svh | lvh | dvh | svw | lvw | dvw
see on caniuse

Install

npm --save install postcss postcss-view-sizes

Usage

/* input */

.full-screen {
  height: 100dvh;
}

become

/* output */

.full-screen {
  height: 100vh;
  height: 100dvh;
}

Package Sidebar

Install

npm i postcss-view-sizes

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.89 kB

Total Files

4

Last publish

Collaborators

  • m-conti