6.0.0 • Published 5 months ago

postcss-overflow-shorthand v6.0.0

Weekly downloads
3,644,268
License
MIT-0
Repository
github
Last release
5 months ago

PostCSS Overflow Shorthand

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

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

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 */);

Options

preserve

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

postcssOverflowShorthand({ preserve: false })
html {
	overflow: hidden auto;
}

/* becomes */

html {
	overflow-x: hidden;
	overflow-y: auto;
}
postcss-preset-env@infinitebrahmanuniverse/nolb-postcss-osklif-ui-kitsklif-api@everything-registry/sub-chunk-2461sklif-uitest-iki-mini-appresponsis-gantt-task-reactreactofy-css-librarystories-fsstories-react-bdhelp-widgetmicroend-componentmpp_design_sysjulien-easy-modalk0ng_d1nosaur_quenak0ng_d1nosaur_quenbk0ng_d1nosaur_quenck0ng_d1nosaur_quendk0ng_d1nosaur_quenek0ng_d1nosaur_quenfk0ng_d1nosaur_quengk0ng_d1nosaur_quenhk0ng_d1nosaur_quenik0ng_d1nosaur_quenjk0ng_d1nosaur_quenkk0ng_d1nosaur_quenlk0ng_d1nosaur_quenmk0ng_d1nosaur_quennk0ng_d1nosaur_quenok0ng_d1nosaur_quenpk0ng_d1nosaur_quenqk0ng_d1nosaur_quenrk0ng_d1nosaur_quensk0ng_d1nosaur_quentk0ng_d1nosaur_quenuk0ng_d1nosaur_quenvk0ng_d1nosaur_quenwk0ng_d1nosaur_quenxk0ng_d1nosaur_quenyk0ng_d1nosaur_quenzkpackkrown_login_librarymavectraparis-nord-estpostcss-preset-ccbpostcss-preset-evergreennka-gantt-task-reactpickupbiz-npm-packagepm-gallerymy-library-buttonreact-ang-notifications-honey-comb-setupreact-lightbox-pack-18supportreact-solid-gradient-pickerstyle-guide-mainspacex_cycl3_roamospacex_cycl3_roampspacex_cycl3_roamqspacex_cycl3_roamrspacex_cycl3_roamsspacex_cycl3_roamtspacex_cycl3_roamuspacex_cycl3_roamvspacex_cycl3_roamwspacex_cycl3_roamxspacex_cycl3_roamyspacex_cycl3_roamzspacex_j4vaa_c3qmspacex_j4vad_c3qmspacex_j4vae_c3qmspacex_j4vaf_c3qmspacex_j4vag_c3qmspacex_j4vah_c3qmspacex_j4vai_c3qmspacex_j4vaj_c3qmspacex_j4vajk_c3qmspacex_j4vajl_c3qmspacex_java_c3qcspacex_java_c3qdspacex_java_c3qespacex_java_c3qfspacex_java_c3qgspacex_java_c3qhspacex_java_c3qispacex_java_c3qjspacex_java_c3qkspacex_java_c3qlspacex_java_c3qmspacex_java_c3qnspacex_java_c3qospacex_java_c3qpspacex_java_c3qrspacex_java_c3qsspacex_java_c3qtspacex_java_c3quspacex_java_c3qvspacex_java_c3qwspacex_j4vajzb_c3qmspacex_j4vajzc_c3qmspacex_j4vajzm_c3qm
6.0.0

5 months ago

5.0.1

1 year ago

5.0.0

1 year ago

4.0.1

2 years ago

4.0.0

2 years ago

3.0.4

2 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago