Skip to content

Instantly share code, notes, and snippets.

View wyderkat's full-sized avatar

Tomasz Wyderka wyderkat

View GitHub Profile
@aperezdc
aperezdc / styles.css.in
Last active August 29, 2015 14:06
One-line CSS pre-processor àla LESS / SCSS / SASS
/*
* Run this through the C/C++ preprocessor like this:
*
* cpp -nostdinc -w -P input.css.in | sed 'y/$/#/' > output.css
*
* Note that the C/C++ preprocessor always interprets octothorpe characters
* at beggining of lines as preprocessor directives. Use sollar signs instead
* to avoid the trouble. Dollar signs are changed into octothorpes using
* "sed" after passing the source through the preprocessor.
*
@madx
madx / README.md
Created April 8, 2014 08:54
Hipster CSS Preprocessor
$ cpp -P input.css