1.4.0 • Published 5 years ago

@texastribune/postcss-amp v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

PostCSS Amp NPM version Build Status

Greenkeeper badge

PostCSS plugin to convert CSS according Accelerated Mobile Pages requirements [amp-logo].

AMP CSS requirements: https://github.com/tinovyatkin/postcss-amp

i-amp-el {
    /* elements starting with i-amp- are banned
}
.boo {
    filter: gray(.5); /* filter is banned */
    color: red !important; /* important is banned */
}
.boo {
  /* all banned elements stripped */
  color: red;
}

Usage

postcss([ require('postcss-amp') ])

See PostCSS docs for examples for your environment.