cssinjs / jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.
https://cssinjs.org
MIT License
7.06k stars 397 forks source link

Is it possible to use CSS selectors and combinators? #751

Closed jonathancopperstone closed 5 years ago

jonathancopperstone commented 5 years ago

Wondering if it's possible to write this bit of CSS out using JSS' JSON syntax

.some-class {
  * > {
    color: red;
  }
}
kof commented 5 years ago

Yes, see jss-nested and jss-global

On Wed, Jul 11, 2018, 08:25 Johnny Copperstone notifications@github.com wrote:

Wondering if it's possible to write this bit of CSS out using JSS' JSON syntax

.some-class {

  • { color: red; } }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cssinjs/jss/issues/751, or mute the thread https://github.com/notifications/unsubscribe-auth/AADOWDavRcTrIp5WgH4rDr7qUQek8-b8ks5uFZpRgaJpZM4VKjvt .