Giter VIP home page Giter VIP logo

less.php's People

Contributors

agar avatar mordred avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

less.php's Issues

Parser triggers notices if file ends with ;

test.less

@myVar: 10px;

Attempt to compile:

bin/lessc test.less test.css

Output:

PHP Notice:  Uninitialized string offset: 15 in .../less.php/lib/Less/Parser.php on line 1045

Adding a new line or ending the file with a } appears to solve the problem, for now.

Fails to compile Bootstrap 1.4.0

Hey Matt,

It seems that the compiler fails to compile the newest version of Bootstrap (1.4.0). It seems that the compilation fails on the reset.less file and I traced the issue down to the second line in the following comment block:

/* Reset.less
 * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
 * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

I have no idea why this happens but everything works fine when I remove second line, which is extremely wierd.

comment parser regexp is buggy

Hello,

when a long css comment /* ... */ is being parsed, the match() method will fail and the http connection will also fail with status "Aborted". It is invoked in Parser::parseComment().

The right regexp for parsing css comments in php is eg.: #/*._?_/#Us

Rounding errors in colors

Hex values are being rounded at some point to produce slightly different values than those done by less.js.

For example, twitter bootstrap in less.js generates:

.label.notice {
  background-color: #62cffc;
}

where as less.php generates

.label.notice {
  background-color: #62d1fc;
}

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.