Animate plugin caused php errors in some circunstances
By Óscar Otero
Added support for text-size-adjust and @document in Vendor_prefixes plugin
By Óscar Otero
Fixed a bug in explode function
By Óscar Otero
bug fixed in color transformation
By Óscar Otero
Bug fixed in explode function
By Óscar Otero
changed README
By Óscar Otero
new plugin: Rem
By Óscar Otero
fixed Grid plugin
By Óscar Otero
New command 'tint' in Color plugin
By Óscar Otero
Fixed a problem with alpha channel in color plugin
By Óscar Otero
fixed import
By Óscar Otero
Changed README
By Óscar Otero
new plugin: Color
By Óscar Otero
changes in demo.html
By Óscar Otero
Fixed a bug with http imports
By Óscar Otero
Fixed a bug with http imports
By Óscar Otero
restore files
By Óscar Otero
deleted project
By Óscar Otero
What is styleCow?
It is a php library that allows parsing and manipulating css files. The main class is styleCow that loads and parses the css file(s) creating an internal array with all the selectors, properties and values. Then you can transform the array using one or moreavailable plugins and finally return the css code.
Example
include('stylecow/stylecow.php');
//Fist we instance the class (note that we are using namespaces)
$styleCow = new stylecow\Stylecow();
//Load the file
$styleCow->load('my-styles.css');
//Transform the css file using one or more plugins (for example vendor_prefixes or variables)
$styleCow->transform(array(
'vendor_prefixes',
'variables'
));
//Get the result css code
$css = $styleCow->toString();
//Print the css code and die
$styleCow->show();