Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-overflow-shorthand

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-overflow-shorthand

Use the overflow shorthand in CSS

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

PostCSS Overflow Shorthand PostCSS Logo

NPM Version Build Status Windows Build Status Support Chat

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 build tool:

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

Use PostCSS Overflow Shorthand to process your CSS:

import postcssOverflowShorthand from 'postcss-overflow-shorthand';

postcssOverflowShorthand.process(YOUR_CSS, /* processOptions */, /* pluginOptions */);
PostCSS

Add PostCSS to your build tool:

npm install postcss --save-dev

Use PostCSS Overflow Shorthand as a plugin:

import postcss from 'gulp-postcss';
import postcssOverflowShorthand from 'postcss-overflow-shorthand';

postcss([
  postcssOverflowShorthand(/* pluginOptions */)
]).process(YOUR_CSS);
Webpack

Add PostCSS Loader to your build tool:

npm install postcss-loader --save-dev

Use PostCSS Overflow Shorthand in your Webpack configuration:

import postcssOverflowShorthand from 'postcss-overflow-shorthand';

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          'style-loader',
          { loader: 'css-loader', options: { importLoaders: 1 } },
          { loader: 'postcss-loader', options: {
            ident: 'postcss',
            plugins: () => [
              postcssOverflowShorthand(/* pluginOptions */)
            ]
          } }
        ]
      }
    ]
  }
}
Gulp

Add Gulp PostCSS to your build tool:

npm install gulp-postcss --save-dev

Use PostCSS Overflow Shorthand in your Gulpfile:

import postcss from 'gulp-postcss';
import postcssOverflowShorthand from 'postcss-overflow-shorthand';

gulp.task('css', () => gulp.src('./src/*.css').pipe(
  postcss([
    postcssOverflowShorthand(/* pluginOptions */)
  ])
).pipe(
  gulp.dest('.')
));
Grunt

Add Grunt PostCSS to your build tool:

npm install grunt-postcss --save-dev

Use PostCSS Overflow Shorthand in your Gruntfile:

import postcssOverflowShorthand from 'postcss-overflow-shorthand';

grunt.loadNpmTasks('grunt-postcss');

grunt.initConfig({
  postcss: {
    options: {
      use: [
       postcssOverflowShorthand(/* pluginOptions */)
      ]
    },
    dist: {
      src: '*.css'
    }
  }
});

Keywords

FAQs

Package last updated on 01 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc