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

postcss-structure

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-structure

A PostCSS plugin to create CSS grids based on a fixed block width.

  • 0.5.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by125%
Maintainers
1
Weekly downloads
 
Created
Source

PostCSS-structure Build Status

http://francoisromain.github.io/postcss-structure/

A PostCSS plugin to create CSS grids based on a fixed block width.

PostCSS-structure outputs a few CSS classes to make grids.

The idea behind PostCSS-structure is that the bloc width doesn't change depending on the screen-size. Media-queries are created depending the number of units that fit into the page.

Usage

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

Options and default values

@structure {
  unit:    18,       /* width of a single bloc (rem) */  
  gutter:  1.5,      /* width of the gutter (rem) */  
  padding: 1.5,      /* padding of the main container (rem) */  
  max:     8,        /* maximum number of blocs */ 
  min:     2,        /* minimum number of blocs */  
  thumb:   3,        /* number of .bloc-thumb fitting in one bloc */ 
  align:   'center', /* 'center' or 'left' */     
  display: 'flex',   /* 'float' or 'flex' */
}

Output example

to-do

Markup example

to-do

To do

  • Add markup example in README.md
  • Add Css output example in README.md
  • Add unit to declaration (p.e.: width: 18rem)
  • Make rtl
  • write tests

Keywords

FAQs

Package last updated on 12 Apr 2016

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