0.2.5 • Published 7 years ago

seed-floats v0.2.5

Weekly downloads
95
License
MIT
Repository
github
Last release
7 years ago

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;
0.2.5

7 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago