postcss-media-directives

0.0.1 • Public • Published

PostCSS Media Directives Build Status

PostCSS plugin that uses the short names of the @media Directive.

@miw(480) { // or 480px
    body {
        background-color: lightgreen;
    }
}
@maw(480) { // or 480px
    body {
        background-color: lightgreen;
    }
}
  
@media(min-width: 480px) {
    body {
        background-color: lightgreen;
    }
}
@media(max-width: 480px) {
    body {
        background-color: lightgreen;
    }
}

Usage

postcss([ require('postcss-media-directives') ])

See PostCSS docs for examples for your environment.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i postcss-media-directives

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

4.61 kB

Total Files

8

Last publish

Collaborators

  • alexsaran