No description, website, or topics provided.
PHP Batchfile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
tests
.gitignore initial check-in Nov 21, 2015
.scrutinizer.yml
.travis.yml
README.md
composer.json
composer.lock
composer.phar
example.php
phpunit.php
phpunit.xml initial check-in Nov 21, 2015

README.md

Build Status Code Rating Coverage Status

css2less

this library aims to convert CSS files into SCSS files.

Currently used by http://www.css2scss.net/

example

The code below takes a few CSS instructions and prints them in a more SCSS like form:

$cssContent = 'body p { font-family: arial; }';
$css2lessParser = new \Ortic\Css2Scss\Css2Scss($cssContent);
echo $css2lessParser->getScss();

output:

body {
        p {
                font-family: arial;
        }
}