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

Media Queries style issue #863

Closed
raulfunkie opened this issue Feb 1, 2016 · 1 comment
Closed

Media Queries style issue #863

raulfunkie opened this issue Feb 1, 2016 · 1 comment

Comments

@raulfunkie
Copy link

There seems to be another bug regarding media queries and how beautifier handles them.

Original

@media only screen and (max-width: 40em) {
header {
    margin: 0 auto;
    padding: 10px;
    background: red;
    }

main {
    margin: 20px auto;
    padding: 4px;
    background: blue;
    }
}

After Beautify

@media only screen and (max-width: 40em) {
header {
    margin: 0 auto;
    padding: 10px;
    background: red;
    }
main {
    margin: 20px auto;
    padding: 4px;
    background: blue;
    }
}

Expected Outcome

Same as original

This is probably (and most likely) related to the issue #857 I reported a few days ago.

@MacKLess
Copy link
Collaborator

This appears to be resolved as of v1.8.0-rc13. The actual output differs from the expected in a minor way --> the "header" on the second line is indented (which is the correct format). @raulfunkie please double check and let me know if you disagree that this is resolved.

Actual output:

@media only screen and (max-width: 40em) {
    header {
        margin: 0 auto;
        padding: 10px;
        background: red;
    }

    main {
        margin: 20px auto;
        padding: 4px;
        background: blue;
    }
}

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