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 an option whether to show the root Treema node #48

Open
nwinter opened this issue Feb 27, 2015 · 0 comments
Open

Add an option whether to show the root Treema node #48

nwinter opened this issue Feb 27, 2015 · 0 comments

Comments

@nwinter
Copy link
Contributor

nwinter commented Feb 27, 2015

Migrating from codecombat/codecombat#1259:

Oh, it's because the root node is always hidden. It's assumed to be a collection (an array or object) and that's why we don't usually show treemas in the patches for anything but collections. Think of all the treemas throughout the site, all of them have top-level collection nodes which are kept out of sight but always open.

I would add an option to treema which would add a class to the root node that triggers a rule to override the &.treema-root > .treema-row .treema-value, &.treema-root > .treema-row .treema-type-select rule at the top of base.sass

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

1 participant