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.
15 lines
227 B
CSS
15 lines
227 B
CSS
.btn {&:hover {
|
|
color: red;
|
|
}&:active {
|
|
color:blue;} &:nth-child(5n+1) {
|
|
color:blue;
|
|
}
|
|
&:nth-child(-n+3) { color: green;}
|
|
> li > a { color: red} >li>li {
|
|
color: blue;
|
|
}
|
|
> p + p {
|
|
color: green;
|
|
}
|
|
}
|