FormidableLabs / css-to-radium

Radium migration CLI, converts CSS to Radium-compatible JS objects.
MIT License
79 stars 5 forks source link

CSS Pseudo-classes not supported #11

Open wasd171 opened 8 years ago

wasd171 commented 8 years ago

Following CSS

.test {
   color: red;
}
.test:hover {
    color: green;
}

gets transformed into

{
    ".test": {
       "color": "red"
    },
    ".test:hover": {
        "color": "green"
    }
}

splitting by ':' symbol and setting appropriate keys might solve it