Flex object pack for Seed!
File size
Minified | Gzipped |
---|---|
1.8 KB | 457 B |
npm install seed-flexy --save-dev
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-flexy');
gulp.task('sass', function () {
return gulp.src('./sass/**/*.scss')
.pipe(sass({
includePaths: pack
}))
.pipe(gulp.dest('./css'));
});
Once that is setup, simply @import
seed-flexy as needed in your .scss
file:
// Packs
@import "pack/seed-flexy/_index";
The following variables can be found in _config.scss
// Namespaces
$seed-flexy-namespace: "o-flexy" !default;
$seed-flexy-item-namespace: #{$seed-flexy-namespace}__item !default;
$seed-flexy-block-namespace: #{$seed-flexy-namespace}__block !default;
// Alignment
$seed-flexy-alignment: (
top: flex-start,
middle: center,
bottom: flex-end
) !default;