postcss / postcss-selector-matches

PostCSS plugin to transform :matches() W3C CSS pseudo class to more compatible CSS (simpler selectors)
MIT License
44 stars 10 forks source link

Add lineBreak Options #1

Closed yisibl closed 9 years ago

yisibl commented 9 years ago

lineBreak(default: true)

input:

p:matches(:first-child, .special) {
  color: red;
}

You will get:

p:first-child,
p.special {
  color: red;
}

See also: postcss-custom-selectors

MoOx commented 9 years ago

Why this should be default to true ? I am open to that, but I don't see the value to add that by default

MoOx commented 9 years ago

I just added this option (but false by default, since I don't see the value added)

yisibl commented 9 years ago

Because most of the CSS code style is the default wrap.

https://github.com/necolas/idiomatic-css#format http://codeguide.co/#css-syntax

MoOx commented 9 years ago

This is relevant for original css your wrote by hand and read with your eyes. I am not even sure most people will read transpiled code...