Socket
Socket
Sign inDemoInstall

postcss-inset

Package Overview
Dependencies
9
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    postcss-inset

Use the inset property in CSS


Version published
Maintainers
1
Install size
1.50 MB
Created

Changelog

Source

1.0.0 (August 5, 2017)

  • Initial version

Readme

Source

PostCSS Inset PostCSS Logo

NPM Version Linux Build Status Windows Build Status Gitter Chat

PostCSS Inset lets you do use the inset shorthand property in CSS.

.example {
  inset: 10px 20px 80px;
}

/* becomes */

.example {
  top: 10px;
  right: 20px;
  bottom: 80px;
  left: 20px;
}

Usage

Add PostCSS Inset to your build tool:

npm install postcss-inset --save-dev
Node

Use PostCSS Inset to process your CSS:

require('postcss-inset').process(YOUR_CSS);
PostCSS

Add PostCSS to your build tool:

npm install postcss --save-dev

Use PostCSS Inset as a plugin:

postcss([
  require('postcss-inset')()
]).process(YOUR_CSS);
Gulp

Add Gulp PostCSS to your build tool:

npm install gulp-postcss --save-dev

Use PostCSS Inset in your Gulpfile:

var postcss = require('gulp-postcss');

gulp.task('css', function () {
  return gulp.src('./src/*.css').pipe(
    postcss([
      require('postcss-inset')()
    ])
  ).pipe(
    gulp.dest('.')
  );
});
Grunt

Add Grunt PostCSS to your build tool:

npm install grunt-postcss --save-dev

Use PostCSS Inset in your Gruntfile:

grunt.loadNpmTasks('grunt-postcss');

grunt.initConfig({
  postcss: {
    options: {
      use: [
        require('postcss-inset')()
      ]
    },
    dist: {
      src: '*.css'
    }
  }
});

Keywords

FAQs

Last updated on 06 Aug 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc