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

Separator to camelCase only works for 1 separator #13

Closed
jvandijk opened this issue Aug 24, 2014 · 2 comments
Closed

Separator to camelCase only works for 1 separator #13

jvandijk opened this issue Aug 24, 2014 · 2 comments

Comments

@jvandijk
Copy link
Contributor

Hey @RonaldTreur,

In the documentation you state that you can use CSS syntax to create TSS files. This works, but not completely. See the following code snippet:

Window {
    background-color: "#2e2d2b";
    @media ios {
        nav-bar-hidden: true;
        top: -20;
        barColor: $backgroundColor;
        barImage: '/images/transparent.png';
        hideShadow: true;
    }
}

Mind the nav-bar-hidden syntax I used, the output is as follows:

"Window": {
        backgroundColor: "#2e2d2b"
},
"Window[platform=ios]": {
        navBar: {
                hidden: true
        },
        top: -20,
        barColor: "#8cc63f",
        barImage: "/images/\"transparent.png\"",
        hideShadow: true
}

It just dropped the 3rd part into a level deeper. Is that an expected behavior for other situations I don't know of... or do we need to enhance the documentation on the separator syntax?

@RonaldTreur
Copy link
Owner

Nice find @jvandijk! Let's not change documentation however, I prefer to try to fix things if somehow possible ;)

This actually proves to be simple to remedy, so give me a minute!

@jvandijk
Copy link
Contributor Author

Confirmed! That only leaves my comment on #10 open for now. Great work @RonaldTreur

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