postcss-overflow

PostCSS plugin for overflow shortcut

MIT 3 个版本
安装
npm install postcss-overflow
yarn add postcss-overflow
pnpm add postcss-overflow
bun add postcss-overflow
README

PostCSS Overflow

PostCSS plugin for overflow shortcut to set overflow-x and overflow-y properties.

Build Status npm-img

/* before */

.two {
    overflow: hidden auto;
}
.one {
    overflow: auto;
}
* {
    overflow: * auto;
}

/* after */

.two {
    overflow-x: hidden;
    overflow-y: auto;
}
.one {
    overflow: auto;
}
* {
    overflow-y: auto;
}

Install

npm i postcss-overflow

Usage

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

forked from postcss/postcss-size , thanks.

See PostCSS docs for examples for your environment.

版本列表
1.1.5 2017-05-28
1.1.2-rc.2 2016-12-10
1.1.2-rc.1 2016-12-10