suitcss-components-module
v0.1.0
Published
A SUIT component for OOCSS Module / Section layouts
Maintainers
Readme
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-blockwhere Sm = small, Lg = largeModule--withPadding[Sm|Lg]– Adds inner spacing to eachModule-blockwhere Sm = small, Lg = large
Configurable variables
Gutter is the vertical space between Module-block(s)
--Module-gutter
--Module-gutter-sm
--Module-gutter-lgPadding for the Module-block
--Module-padding
--Module-padding-sm
--Module-padding-lgSeparator border for the Module-block
--Module-block-separated-borderColorUsage
<div class="Module">
<div class="Module-block">...</div>
<div class="Module-block">...</div>
...
</div>See the test file for more examples.
Testing
Install Node (comes with npm).
npm installTo generate a build:
npm run buildTo generate the testing build.
npm run build-testBasic visual tests are in test/index.html.
To pre-process:
npm run preprocessTo pre-process the tests:
npm run preprocess-testBrowser support
- Google Chrome (latest)
- Opera (latest)
- Firefox 4+
- Safari 5+
- Internet Explorer 8+
