seed-floats

Floats utility pack for Seed

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
seed-floats
100.2.56 years ago6 years agoMinified + gzip package size for seed-floats in KB

Readme

seed-floats Build Status npm version Dependency Status
Floats utility pack for Seed!

Install

npm install seed-floats --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 seedFloats = require('seed-floats');

gulp.task('sass', function () {
  return gulp.src('./sass/**/*.scss')
    .pipe(sass({
      includePaths: seedFloats
    }))
    .pipe(gulp.dest('./css'));
});

Once that is setup, simply @import seed-floats as needed in your .scss file:
// Packs
@import "pack/seed-floats";

Note: Because seed-floats has dependencies, it's includePaths output will be an array. If you're including other paths in addition to seed-floats, you will need to flatten the array. An easy way to do this is to use sass-pathfinder.
Example with sass-pathfinder:
var gulp = require('gulp');
var sass = require('gulp-sass');
var seedFloats = require('seed-floats');
var pathfinder = require('sass-pathfinder');

gulp.task('sass', function () {
  return gulp.src('./sass/**/*.scss')
    .pipe(sass({
      includePaths: pathfinder(
        './scss/vendor/example',
        './scss/plugins/super-awesome-plugin',
        seedFloats
      )
    }))
    .pipe(gulp.dest('./css'));
});

Options

The following variables can be found in _config.scss
$seed-floats-clearfix-namespace: "u-clearfix" !default;
$seed-floats-pull-namespace: "u-pull" !default;