0.4.0 • Published 6 years ago

postcss-layouts v0.4.0

Weekly downloads
1
License
CC0-1.0
Repository
github
Last release
6 years ago

PostCSS Layouts

NPM Version Linux Build Status Windows Build Status Gitter Chat

A shorthand for applying sensible layout methods.

Flex

layout: flex [options];

options

  • shrink Makes container items shrink to width of its content
  • column Changes direction of container items
  • nowrap Prevents container items from wrapping
  • open Sets width of container items to full width of container

Example:

.container {
    layout: flex column nowrap;
}

By default flex automatically makes container items grow to available space and wrap if equal to bigger than the container's width.

Inline Block

layout: inline-block;

Example:

.container {
    layout: inline-block;
}

Uses inline-block technique to layout container items.

Setup

npm install postcss-layouts --save-dev
0.4.0

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago