lessphp
lessphp copied to clipboard
LESS compiler written in PHP
Hi, I am using some *.less files as a reference only (use their variables, classes, etc but don't compile into output). like: ``` @import (reference) "my-file.less"; ``` its not working,...
Input: ```less .nested-class(4); .nested-class(@n, @i: 1) when (@i =< @n) { .class { .nested-class(@n, (@i + 1)); width: (@i * 100% / @n); } } ``` Expected output: ```css .class...
My code ``` // PHP $less = new lessc; $less->setVariables(array( 'font-color' => '#333, )); $less->compileFile($path . 'less/test.less', $path . 'test.css'); // LESS @import "variables.less"; // font-color here #111 body {...
Less.js supports the color() function that attempts to convert a string to a valid Hex color. Lessphp is missing this. Low priority. I will try to add this when I...
This patch protects CSS named grids by replacing the brackets before any parsing or compiling happens. Once all parsing and compiling is done the brackets are replaced. **NOTE** Brackets are...
It seems that lessphp compiles CSS animation margins as selectors (tested on 0.4.0). The following LESS: ``` .test { @-webkit-keyframes spin { from { -webkit-transform: rotate(0deg) } to { -webkit-transform:...
I was seeing a problem compiling Bootstrap 2.3.2 where the fluid widths were not correctly preserved in the responsive design. This was due to an issue where the mixin scope...
Hello, I'm attempting to use http://rriepe.github.io/1pxdeep/ (I'm just using the scheme.less files) and getting way different colors for color1a and color1b, etc... I'm not sure why yet, but its definitely...
Added detached rulesets support (LESS v1.7.0+) http://lesscss.org/features/#detached-rulesets-feature