lessphp icon indicating copy to clipboard operation
lessphp copied to clipboard

media query ignored

Open BobGrimes opened this issue 12 years ago • 2 comments

Seems to have ignored the following @media screen and (max-width: 1024px) { body { width: 100%; } }

BobGrimes avatar Dec 10 '13 17:12 BobGrimes

+1. I was excepting less to compile 1:1 to css, but I dont see the media queries anywhere. EDIT: here is sample code from bootstrap that is missing. Taken from dropdowns.less:

@media (min-width: @grid-float-breakpoint) {
  .navbar-right {
    .dropdown-menu {
      .pull-right > .dropdown-menu();
    }
  }
}

This code doesn't appear in the final output. The browser-based compiler properly parses this, and outputs:

@media (min-width: 768px) {
  .navbar-right .dropdown-menu {
    right: 0;
    left: auto;
  }
}

mbrevda avatar Dec 13 '13 12:12 mbrevda

+1 I tried the bootstrap grid (using @import bootstrap.css renamed to bootstrap.css.less (i.e. pure CSS)) and the following fails (does not generate a @media line)

.image  {
  .col-xs-12; 
  .col-md-4;
}

cyberlussi avatar Aug 30 '14 11:08 cyberlussi