0.1.0 • Published 9 years ago
suitcss-components-card v0.1.0
SUIT Card
A SUIT component for Cards like containers
Read more about SUIT's design principles.
Installation
- npm:
npm install suitcss-components-card - releases history
Available classes
Card- The core Card class
Configurable variables
--Card-backgroundColor
--Card-borderColor
--Card-borderRadius
--Card-boxShadowIf you want to turn off the card border you can set --Card-borderColor to transparent.
Usage
<div class="Card">
Howdy
</div>N.B. Card is just a container and it doesn't have default padding or styles to arrange its content.
You can combine it with a layout component like Module to achieve more complex structures.
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+
0.1.0
9 years ago