Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more formatting options #4

Open
paulirish opened this issue Nov 17, 2011 · 6 comments
Open

more formatting options #4

paulirish opened this issue Nov 17, 2011 · 6 comments

Comments

@paulirish
Copy link

the options at http://procssor.com/ pretty much capture the most common style differences between authors.
having those present would be awesome.

@ariya
Copy link

ariya commented Nov 18, 2011

We'll slowly go there :)

Next in my TODO list is an option to split the selectors, each into its own line.

@mathiasbynens
Copy link

I’d like to see an option to automatically add ; after each declaration (even if the source file didn’t have one). So…

.menu{color:red} .navigation{background-color:#333}

…which currently beautifies into:

.menu {
    color: red
}

.navigation {
    background-color: #333
}

…would become:

.menu {
    color: red;
}

.navigation {
    background-color: #333;
}

@ariya
Copy link

ariya commented Sep 28, 2012

Automatic semicolon: commit 959c17c.

@mathiasbynens
Copy link

An option to add a space after each comma that separates multiple values or selectors would be neat, too. (Or maybe 1 space should be the default?)

E.g.

.foo,.bar{font-family:foo,bar,baz}

…would then beautify into:

.foo, .bar {
  font-family: foo, bar, baz;
}

Perhaps the “space character” after a comma should be a separate setting, as some people like to use a line break instead of a good o’ U+0020 there, e.g.:

.foo,
.bar {
  font-family: foo, bar, baz;
}

@mathiasbynens
Copy link

Similar feature request: add space before the parens that start a media query expression, and after each semicolon inside a media query expression that separates a property from a value. E.g.

@media(min-width:30em){x{foo:bar}}

…currently beautifies into:

@media(min-width:30em) {
  x {
    foo: bar;
  }
}

…but it could be:

@media (min-width: 30em) {
  x {
    foo: bar;
  }
}

@mishanga
Copy link

mishanga commented Sep 5, 2013

Guys, you are welcome to https://github.com/csscomb/csscomb.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants