$ cpp -P input.css
Created
April 8, 2014 08:54
-
-
Save madx/10102719 to your computer and use it in GitHub Desktop.
Hipster CSS Preprocessor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define TEXT_COLOR black | |
#define BG_COLOR white | |
#define BOX_SIZING(args) -webkit-box-sizing: args;\ | |
-moz-box-sizing: args;\ | |
box-sizing: args | |
body { | |
color: TEXT_COLOR; | |
background: BG_COLOR; | |
} | |
div { | |
BOX_SIZING(border-box); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
color: black; | |
background: white; | |
} | |
div { | |
-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@madx Really great stuff!
@wyderkat -P is only here to prevent linemarkers to be generated by CPP at the beginning of the output file since we don't need / want it.
If you remove the -P option you'll end-up with something like: