Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

postcss-overflow-shorthand

Package Overview
Dependencies
1
Maintainers
2
Versions
8
Issues
File Explorer

Advanced tools

postcss-overflow-shorthand

Use the overflow shorthand in CSS

    3.0.4latest

Version published
Maintainers
2
Weekly downloads
6,857,524
decreased by-10%

Weekly downloads

Readme

Source

PostCSS Overflow Shorthand PostCSS Logo

NPM Version CSS Standard Status Build Status Discord

PostCSS Overflow Shorthand lets you use the overflow shorthand in CSS, following the CSS Overflow specification.

'Can I use' table

html { overflow: hidden auto; } /* becomes */ html { overflow-x: hidden; overflow-y: auto; overflow: hidden auto; }

Usage

Add PostCSS Overflow Shorthand to your project:

npm install postcss postcss-overflow-shorthand --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss'); const postcssOverflowShorthand = require('postcss-overflow-shorthand'); postcss([ postcssOverflowShorthand(/* pluginOptions */) ]).process(YOUR_CSS /*, processOptions */);

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

NodePostCSS CLIWebpackCreate React AppGulpGrunt

Options

preserve

The preserve option determines whether the original overflow declaration is preserved. By default, it is preserved.

postcssOverflowShorthand({ preserve: false }) html { overflow: hidden auto; } /* becomes */ html { overflow-x: hidden; overflow-y: auto; }

Keywords

FAQs

What is postcss-overflow-shorthand?

Use the overflow shorthand in CSS

Is postcss-overflow-shorthand popular?

The npm package postcss-overflow-shorthand receives a total of 6,481,896 weekly downloads. As such, postcss-overflow-shorthand popularity was classified as popular.

Is postcss-overflow-shorthand well maintained?

We found that postcss-overflow-shorthand demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 2 open source maintainers collaborating on the project.

Last updated on 08 Jul 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc