1.0.1 • Published 11 years ago
hail2u-scss-column-equation v1.0.1
SCSS Column Equation
Generate variables for CSS column layout, the Sassy way.
INSTALLATION
Three options are available:
- Download package
- Clone with Git:
$ git clone https://github.com/hail2u/scss-column-equation.git - Install with Bower:
$ bower install --save-dev scss-column-equation
USAGE
- Define basic variables:
$sce_columnand$sce_gutter - Import
_sce.scssvia@import - Create column definition with generated variables
Variables
$sce_column: column width (configurable)$sce_gutter: space between columns (configurable)$sce_gap: an half size of$gutterand very outer space of column$sce_colspan1...$sce_colspan16: width ofncolumns$sce_colspan: list contains$colspan1...$colspan16$sce_colwrap1...$sce_colwrap16: wrapper width ofncolumns$sce_colwrap: list contains$colwrap1...$colwrap16
Note: $sce_colspan and $sce_colwrap are lists. Their elements can be accessed with nth() function.
EXAMPLE
Preview these examples at once: http://hail2u.github.com/scss-column-equation/
Default
This example generates default 12-column with px (similar to 960.gs).
EM
This example generates fixed 12-column with em.
Percentage
This example generates completely fluid 16-column with %.
LICENSE
1.0.1
11 years ago