PostCSS-Viewports
This allows you do add data-[viewport] properties to your CSS easily, making it easier to control styling for different viewports via the HTML.
It will use any properties preceded by or wrapped by a @viewport rule and add data-[viewport] properties for these properties.
Using PostCSS-Viewports
Setup
var options = viewports: 'lap': '800px' 'palm': '400px' ;
Options:
viewports
, a list of your viewport names and max-widths.
Usage
/* Just apply to next property */@ /* Apply for nested properties */@}
will output
{ [} { [} { [} { [} { [} { [}
This allows you do something like:
... ...