This grid is magnific because it is made using placeholder. Placeholders are pseudo-classes that you can extend from your real classes using @extends. The difference between Placeholder and "normal extend class" is that Placeholder make a nested classes using the same placeholder, in addition to compile only used placeholders. Go to a practical example:
@import "path/to/grider"
.sidebar
@extends $grider-3
.another-box
@extends $grider-3
.content
@extends $grider-9
.sidebar,
.another-box {
/* Generated code by Grider */
}
.content {
/* Generated code by Grider */
}
/* Responsive for tablets and phones below */
grider.styl file@import "path/to/grider"
.container
@extends $container
.sidebar
@extends $grider-3
.content
@extends $grider-9
Note: The .container is not mandatory. Basically the $container make a centered element with 1040px (config) of max-width.
For made responsive is very easy, because you set the responsive nested with element:
.sidebar
@extends $grider-3
@extends $grider-tablet-5
.content
@extends $grider-9
@extends $grider-tablet-7