Package Exports
- postcss-short-position
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-short-position) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PostCSS Short Position 
PostCSS Short Position lets define sides within the position
property in
CSS, following the [1-to-4 syntax] to target top
, right
, bottom
, and
left
.
.header {
position: fixed 0 1em;
}
/* becomes */
.header {
top: 0;
right: 1em;
bottom: 0;
left: 1em;
position: fixed;
}
Usage
Add PostCSS Short Position to your project:
npm install postcss-short-position --save-dev
Use PostCSS Short Position to process your CSS:
const postcssShortPosition = require('postcss-short-position');
postcssShortPosition.process(YOUR_CSS /*, processOptions, pluginOptions */);
Or use it as a PostCSS plugin:
const postcss = require('postcss');
const postcssShortPosition = require('postcss-short-position');
postcss([
postcssShortPosition(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
PostCSS Short Position runs in all Node environments, with special instructions for:
Node | PostCSS CLI | Webpack | Create React App | Gulp | Grunt |
---|