Skip to content

Instantly share code, notes, and snippets.

@ericf
Created November 15, 2013 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericf/7478723 to your computer and use it in GitHub Desktop.
Save ericf/7478723 to your computer and use it in GitHub Desktop.
ericf@Fino:rework-pure-grids (master)$ node
> var rework = require('rework');
undefined
> var pureGrids = require('./');
undefined
> var css = rework('').use(pureGrids.units(5)).toString();
undefined
> console.log(css);
.pure-u-1-5,
.pure-u-2-5,
.pure-u-3-5,
.pure-u-4-5,
.pure-u-5-5,
.pure-u-1 {
display: inline-block;
*display: inline;
zoom: 1;
letter-spacing: normal;
word-spacing: normal;
vertical-align: top;
text-rendering: auto;
}
.pure-u-1-5 {
width: 20%;
*width: 19.9690%;
}
.pure-u-2-5 {
width: 40%;
*width: 39.9690%;
}
.pure-u-3-5 {
width: 60%;
*width: 59.9690%;
}
.pure-u-4-5 {
width: 80%;
*width: 79.9690%;
}
.pure-u-5-5,
.pure-u-1 {
width: 100%;
}
undefined
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment