SUIT Module
A SUIT component for OOCSS Module / Section layouts – inspired by Nicole Sullivan's Module component.
Read more about SUIT's design principles.
Installation
Available classes
Module
- The core classModule-block
- A block unit, can contain headers, content, footers etc.Module-block--separated
- Separates a Module-block from the Module-block aboveModule--withGutter[Sm|Lg]
– Adds vertical spacing betweenModule-block
where Sm = small, Lg = largeModule--withPadding[Sm|Lg]
– Adds inner spacing to eachModule-block
where Sm = small, Lg = large
Configurable variables
Gutter is the vertical space between Module-block(s)
--
Padding for the Module-block
--
Separator border for the Module-block
--
Usage
... ... ...
See the test file for more examples.
Testing
Install Node (comes with npm).
npm install
To generate a build:
npm run build
To generate the testing build.
npm run build-test
Basic visual tests are in test/index.html
.
To pre-process:
npm run preprocess
To pre-process the tests:
npm run preprocess-test
Browser support
- Google Chrome (latest)
- Opera (latest)
- Firefox 4+
- Safari 5+
- Internet Explorer 8+