Giter Site home page Giter Site logo

LESS-1.3.0 about less.js-windows HOT 11 CLOSED

duncansmart avatar duncansmart commented on July 27, 2024
LESS-1.3.0

from less.js-windows.

Comments (11)

duncansmart avatar duncansmart commented on July 27, 2024

Might be related to this: https://twitter.com/cloudhead/status/178567217309421568 "dropping IE support on client" might also imply that IE's JScript engine is no longer supported. Not sure yet though.

from less.js-windows.

hereswhatidid avatar hereswhatidid commented on July 27, 2024

Also getting this error but only on the latest (2.0.2) bootstrap.less file. Other .less files compile fine.

from less.js-windows.

arabold avatar arabold commented on July 27, 2024

Got it fixed by patching bootstrap's mixins.less

It seems that less.js 1.3.0 is failing to properly parse the following mixin definition if used with JScript and duncansmart's WSH script:

// IE7 inline-block
// ----------------
.ie7-inline-block() {
  *display: inline;
  *zoom: 1;
}

the trick is to add a dummy element like this:

// IE7 inline-block
// ----------------
.ie7-inline-block() {
  *display: inline;
  *zoom: 1;
  something: else;
}

Weird? Looks like there's something strange going on in less.js but I haven't had the time to dive into it yet.

from less.js-windows.

xokko avatar xokko commented on July 27, 2024

This works too, maybe less intruding:

// IE7 inline-block
// ----------------
.ie7-inline-block() {
  *display: inline;
  *zoom: 1;
  // comment to make it work with WinLESS
}

from less.js-windows.

cnanney avatar cnanney commented on July 27, 2024

πŸ‘ Thanks for simple fix to get latest Bootstrap working via WinLess.

from less.js-windows.

govza avatar govza commented on July 27, 2024

fix doesn't work with bootstrap 2.0.2

from less.js-windows.

deepesh1801 avatar deepesh1801 commented on July 27, 2024

fix doesn't work for bootstrap 2.0.3. Is their a fix available.

from less.js-windows.

xokko avatar xokko commented on July 27, 2024

It works. Just add the comment in mixins.less. And use newest version of WinLESS.

from less.js-windows.

theoryshaw avatar theoryshaw commented on July 27, 2024

hmm... @xokko's suggestion didn't work for me, unfort.

from less.js-windows.

a-ursino avatar a-ursino commented on July 27, 2024

it works with bootstrap 2.0.4 and winless 1.5.3 (less.js 1.3.0)
thanks

from less.js-windows.

grantnorwood avatar grantnorwood commented on July 27, 2024

I only saw failures when importing the mixins.less file, as well as using arbitrary comment blocks or any pseudo element selectors. The extra comment fix from xokko seems to resolve the issue. (Running WinLESS 1.5.3, less.js 1.3.0, bootstrap 2.0.4)

from less.js-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.