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

postcss-flexgrid

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-flexgrid

PostCSS helpers for defining a flexible grid in PostCSS

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

PostCSS Flexgrid

PostCSS helpers for working with a flexible grid. Very early stage, you probably don't want to use this.

Installation

$ npm install --save-dev postcss-flexgrid

Usage

// dependencies
var fs = require("fs")
var postcss = require("postcss")
var flexgrid = require("postcss-flexgrid")

// css to be processed
var css = fs.readFileSync("input.css", "utf8")

var options = {
  max_columns: 12,  // Number of columns of the grid
  column_width: 70, // Width of one column, in pixels
  gutter_width: 30, // Width of a gutter, in pixels
};

// process css
var output = postcss()
  .use(flexgrid(options))
  .process(css)
  .css
.container {
  span: 5;
}
.container .sub-container {
  span: 2 of 5;
}
.container .other-sub-container {
  span: 3 of 5;
  margin-right: 0;
}

Changelog

License

Keywords

FAQs

Package last updated on 20 Mar 2015

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