scylabs / css2less
css to less converter
Installs: 3 456
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.4
- natxet/cssmin: ~3.0
Requires (Dev)
- apigen/apigen: 2.8.0
- nette/nette: ~2.1.3
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ^2
This package is not auto-updated.
Last update: 2024-11-20 10:04:32 UTC
README
css2less
This library has created by Remo Laubacher : remo.laubacher@ortic.com https://github.com/ortic/css2less This repository is just a re-upload of the package to put it on composer
this library aims to convert CSS files into LESS files.
Currently used by http://www.css2less.net/
example
The code below takes a few CSS instructions and prints them in a more LESS like form:
$cssContent = 'body p { font-family: arial; }'; $css2lessParser = new \Ortic\Css2Less\Css2Less($cssContent); echo $css2lessParser->getLess();
output:
body {
p {
font-family: arial;
}
}