Boxer works like a normal mixin, than you cane copy and paste it in your scss file or you cane create a new scss file and @include it in your main sass file. Remember if the first character of you scss namespace file is "_" compass not watch the file :) and watch only the main scss file.
-
$colums - Number of colums
-
$maxWidth - Container width
You can set this variables in the mixin file for setting they globally or you can set they inside the code before use mixin for set they locally:
-
$boxes - Number of colums
-
$width - Container width
You can import:
@import "_boxerMixin.scss"
Note. the "_" in the file name tell to compass or sass to not watch this file end not compile it in css file.
Or you simple can copy and paste the mixin in your scss file.
Boxer is a simple Mixin, than you can use it like all the other mixin:
div.element{
@include boxer($dim,$margin,$padding);
}
- $dim - number of colums cover by elment
- $margin - margin between the "PREW" elment
- $padding - inseide rounded padding of the elment
##Example
$boxes : 6;
$width : 600px;
div.element{
@include boxer($dim,$margin,$padding);
}