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

cssFileCompress issue with nested media query #26

Open
max-dreamsoft opened this issue Dec 1, 2016 · 1 comment
Open

cssFileCompress issue with nested media query #26

max-dreamsoft opened this issue Dec 1, 2016 · 1 comment

Comments

@max-dreamsoft
Copy link

Source css file contained

@media screen and (min-width: 992px) {
    .header-navigation li {
        display: inline-block;
        padding-top: 3px;
        padding-right: 3px;
        padding-left: 3px;
        text-align: center
    }
    .header-navigation li a {
        text-transform: none
    }
    @media screen and (-webkit-min-device-pixel-ratio: 0) {
        /* Safari and Chrome */
        .header-navigation li a {
            letter-spacing: 1px
        }
    }
    /* Only Chrome */
    @media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
        .header-navigation li a {
            letter-spacing: 2px
        }
    }
}
@media screen and (min-width: 1024px) {
...

which became (beautified)

@media screen and (min-width: 992px) {
    .header-navigation li {
        display: inline-block;
        padding-top: 3px;
        padding-right: 3px;
        padding-left: 3px;
        text-align: center
    }
    .header-navigation li a {
        text-transform: none
    }
    @media screen and (-webkit-min-device-pixel-ratio: 0) {
        .header-navigation li a {
            letter-spacing: 1px
        }
    }
    @media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
        .header-navigation li a {
            letter-spacing: 2px
        }
    }
    @media screen and (min-width: 1024px) {
    ...

Note that final closing curly bracket on "min-width: 992px" section is missing

@nsanden
Copy link

nsanden commented Mar 13, 2018

Same here. The work around is to disable cssFileCompress with

'cssFileCompress' => false

and then use cloudflare to compress css file

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