0.2.5 • Published 8 years ago

postcss-layout-selector v0.2.5

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

PostCSS Layout Selector Downloads Downloads Build Status Dependencies

PostCSS plugin for easy handling of different layouts without media queries but with conditional compilation.

header {
  background: #eee;

  @layout landscape {
    height: 75px;
  }

  @layout portrait {
    height: 150px;
  }
}

Generating "landscape" version:

header {
  background: #eee;
  height: 75px;
}

Generating "portrait" version:

header {
  background: #eee;
  height: 150px;
}

Links

Installation

Should be installed locally in your project source code:

npm install postcss-layout-selector --save-dev

Usage

Integrate like this in your e.g. gulpfile.js:

postcss([
  require("postcss-layout-selector")({
    layout: "portrait"
  })
])

See PostCSS docs for examples for your environment.

Copyright

Copyright 2015-2016Sebastian Software GmbH

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago