Skip to content

2.0.0

Compare
Choose a tag to compare
@iamvdo iamvdo released this 26 Nov 15:40
· 159 commits to master since this release

PostCSS v3.0.0

Pixrem v1.0.0

Add some great improvements:

  • Don't generate fallbacks anymore when browsers without rem support don't understand the property/value (eg in media-queries (all at-rules actually), in properties like transform, border-radius, etc. and in values like calc() or linear-gradient()). A new option (atrules) allows to keep fallbacks in atrules if you really want it.
  • Get root font-size value if defined in CSS
html { font-size: 20px; }
.a { font-size: 2rem; }

gives

html { font-size: 20px; }
.a { font-size: 40px; font-size: 2rem; }

Note: I'm now an official maintainer of this module. Fell free to ask me if you need updates. \o/

New browsers option

Allows you to override many options in one go. Accept same value as Autoprefixer and override it, based on CanIUse database (exactly as Autoprefixer)

For example, if you set:

{
  "browsers": ["ie 9"]
}

You will automatically have:

{
  "autoprefixer": { "browsers": ["ie 9"] },
  "rem": false,
  "opacity": false,
  "pseudoElements": false
}

mqpacker option set to false

Grouping media-queries may produce unwanted results, so mqpacker option is now disabled by default.