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

Add ability to control walker function #6

Open
deser opened this issue Jun 12, 2017 · 5 comments
Open

Add ability to control walker function #6

deser opened this issue Jun 12, 2017 · 5 comments

Comments

@deser
Copy link

deser commented Jun 12, 2017

Hi, thanks for the great plugin!
I'd like to control which selectors mustn't be namespaced (for example html tag). Therefore I suggest to add to options callback which would be called for testing if this selector should be namespaced.

P.S. All in all I believe that html tag shouldn't be namespaced at all.

@topaxi
Copy link
Owner

topaxi commented Jun 12, 2017

You can use :root for this.

By default :root will be dropped though, so if you want to select html you can either disable the dropRoot option or prefix html with :root.

Example with dropRoot set to false:

:root {
  /* this is the html element */
}

Example with dropRoot set to true (sadly the default).

:root html {
  /* this is the html element */
}

@deser
Copy link
Author

deser commented Jun 12, 2017

Thanks for quick answer. The problem is deeper )
I use bootstrap (as an example) so I don't have ability to paste :root where I want

@deser
Copy link
Author

deser commented Jun 12, 2017

P.S. All in all I believe that html tag shouldn't be namespaced at all.

Or better replace html with html${computedNamespace}

@deser
Copy link
Author

deser commented Jun 13, 2017

Here is pull: #7

@deser
Copy link
Author

deser commented Sep 13, 2017

Ping :)

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