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

How to define complex selectors for global styles? #58

Open
avesus opened this issue Sep 14, 2016 · 1 comment
Open

How to define complex selectors for global styles? #58

avesus opened this issue Sep 14, 2016 · 1 comment

Comments

@avesus
Copy link

avesus commented Sep 14, 2016

Like these:

.my-nav-tabs li .active {
  ...
}

when .active is in global scope or is an another class defined in the same csjs literal or imported from another csjs variable..

@rtsao
Copy link
Owner

rtsao commented Sep 19, 2016

If it's defined in the same csjs literal, both instances of .active will be scoped to the same value so there's no change needed. If .active is from another csjs instance, you can pass it in:

csjs`
.my-nav-tabs li ${styles.active} {
  ...
}
`

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

2 participants