I'm trying to compress to the maximum the site where I work and for this I'm minimizing the javascripts and css, but this is giving error in the css minimizing well in the codes similar to what I will put here below. It does the syntax validation and it considers this Media Query statement inside the main class as a syntax error, it even works and lets pass, however when compressing and playing on the server it gives problem. Does anyone know why this happens and how to solve it?
Here's an example:
.img-header-home-01 {
background-image: url("../imagens/home/slider-01.jpg");
background-size: cover;
background-attachment: scroll;
background-position: center center;
@media (max-width: @iphone-screen) {
background-attachment: scroll;
}
}