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

Unknown custom properties inside @media #31

Closed
pepelsbey opened this issue Jan 19, 2017 · 4 comments
Closed

Unknown custom properties inside @media #31

pepelsbey opened this issue Jan 19, 2017 · 4 comments

Comments

@pepelsbey
Copy link

In the following file --list-scale property is marked as unknown though it works fine in browsers:

.shower.list {

    position: absolute;
    clip: rect(0 auto auto 0);

    margin: 0;
    padding-top: calc(
        var(--slide-width) *
        var(--list-gutter) *
        var(--list-scale));
    padding-left: calc(
        var(--slide-width) *
        var(--list-gutter) *
        var(--list-scale));

    display: flex;
    flex-wrap: wrap;

    background: #666;

    }

/* Scale */

@media (min-width: 1120px) {
    .shower.list {
        --list-scale: 0.5;
        }
    }
@media (min-width: 2240px) {
    .shower.list {
        --list-scale: 1;
        }
    }

image

@lahmatiy
Copy link
Member

Thank you for issue.
This is a problem not only @media but in general. Custom properties should be ignored by syntax checker.

@pepelsbey
Copy link
Author

Thank you for the quick fix! Looking forward for Atom plugin update ;)

@smelukov
Copy link
Member

smelukov commented Jan 19, 2017

@pepelsbey The Atom plugin has updated! 🎉

@pepelsbey
Copy link
Author

Nice, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants