I wanted to see how hard it would be to add support for CSS inside of prettier. Turns out, it's not that hard. I spent a few hours printing post-css values and getting all the stylefmt unit tests to not throw.
33 lines
255 B
CSS
33 lines
255 B
CSS
/**
|
|
* comment
|
|
*/
|
|
|
|
.class
|
|
{
|
|
padding:10px; }
|
|
/*comment*/
|
|
|
|
|
|
.foo{color:red
|
|
}
|
|
|
|
|
|
/*
|
|
at rule
|
|
*/
|
|
|
|
|
|
@media only screen {
|
|
/* inner at rule comment */
|
|
.foo { display: none; }
|
|
|
|
/*
|
|
* another comment
|
|
*/
|
|
/* in a row */
|
|
|
|
.bar {
|
|
color:yellow;
|
|
}
|
|
}
|