postcss-short-overflow
Write overflow-x and overflow-y with the overflow shorthand in CSS
Last updated 8 years ago by jonathantneal .
CC0-1.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install postcss-short-overflow 
SYNC missed versions from official npm registry.

PostCSS Short Overflow PostCSS

NPM Version Build Status Support Chat

PostCSS Short Overflow lets you write overflow-x and overflow-y with the overflow shorthand in CSS.

html {
  overflow: hidden auto;
}

[contenteditable] {
  overflow: * auto;
}

/* becomes */

html {
  overflow-x: hidden;
  overflow-y: auto;
}

[contenteditable] {
  overflow-y: auto;
}

Usage

Add PostCSS Short Overflow to your project:

npm install postcss-short-overflow --save-dev

Use PostCSS Short Overflow to process your CSS:

const postcssShortOverflow = require('postcss-short-overflow');

postcssShortOverflow.process(YOUR_CSS /*, processOptions, pluginOptions */);

Or use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssShortOverflow = require('postcss-short-overflow');

postcss([
  postcssShortOverflow(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);

PostCSS Short Overflow runs in all Node environments, with special instructions for:

Node PostCSS CLI Webpack Create React App Gulp Grunt

Options

prefix

The prefix option determines the prefix applied to properties being processed (e.g. x for -x-overflow). Wrapping dashes (-) are automatically applied.

Current Tags

  • 1.0.0                                ...           latest (8 years ago)

1 Versions

  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |