seed-card
Card component pack for Seed!
Install
npm install seed-card --save
Documentation
Check out our documentation of this pack.
Basic Usage
SCSS
This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp:
var gulp = require('gulp');
var sass = require('gulp-sass');
var pack = require('seed-card');
gulp.task('sass', function () {
return gulp.src('./sass/**/*.scss')
.pipe(sass({
includePaths: pack
}))
.pipe(gulp.dest('./css'));
});
Once that is setup, simply @import
seed-card as needed in your .scss
file:
@import "pack/seed-card/_index";
Usage
<div class="c-card">
...
</div>
Options
The following variables can be found in _config.scss
@import "pack/seed-border/config";
$seed-card-namespace: c-card !default;
$seed-card-block-namespace: #{$seed-card-namespace}__block !default;
$seed-card-background-color: #fff !default;
$seed-card-border: $seed-border !default;
$seed-card-border-radius: 4px !default;
$seed-card-block-sizes: (
md: 20px 20px,
sm: 12px 20px,
xs: 8px 20px,
) !default;