Nectar of the Programming Masses

    seed-reparent

    0.0.1 • Public • Published

    seed-reparent npm version

    Reparenting mixin pack for Seed

    This mixin allows you to target/modify the direct parent of the current selector.

    Install

    npm install seed-reparent --save-dev
    

    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-reparent');
     
    gulp.task('sass', function () {
      return gulp.src('./sass/**/*.scss')
        .pipe(sass({
          includePaths: pack
        }))
        .pipe(gulp.dest('./css'));
    });

    Once that is setup, simply @import seed-reparent as needed in your .scss file:

    // Packs 
    @import "pack/seed-reparent/_index";

    Thanks

    • Big thanks to Hugo Giraudel for his amazing Sass functions!
    • Shout outs to Alisdair for collaboration and for coming up with the name "reparent".

    ❤️

    Install

    npm i seed-reparent

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • itsjonq