seed-dot-nav

0.0.5 • Public • Published

seed-dot-nav Build Status npm version dependencies Status

Dot navigation component pack for Seed!

Install

npm install seed-dot-nav --save

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

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

// Packs 
@import "pack/seed-dot-nav/_index";

Options

The following variables can be found in _config.scss

// Namespace 
$seed-dot-nav-namespace: c-dot-nav !default;
$seed-dot-nav-item-namespace: #{$seed-dot-nav-namespace}__item !default;
$seed-dot-nav-link-namespace: #{$seed-dot-nav-namespace}__link !default;
 
// Configs 
$seed-dot-nav-item-spacing-multiplier: 3 !default;
$seed-dot-nav-link-focus-outline: none !default;
$seed-dot-nav-dot-transition: background-color 0.2s ease !default;
$seed-dot-nav-dot-size: 10px !default;
$seed-dot-nav-dot-color: rgba(black, 0.2) !default;
$seed-dot-nav-dot-color-hover: rgba(black, 0.4) !default;
$seed-dot-nav-dot-active-color: #3197D6 !default;
$seed-dot-nav-dot-active-size-increase: 1px !default;
$seed-dot-nav-dot-transform: translate(-50%, -50%) !default;
 
$seed-dot-nav-alignment: (
  left: flex-start,
  centercenter,
  right: flex-end,
!default;
 
$seed-dot-nav-dot-sizes: (
  lg: 16px,
  md: $seed-dot-nav-dot-size,
  sm: 8px,
!default;

Package Sidebar

Install

npm i seed-dot-nav

Weekly Downloads

333

Version

0.0.5

License

MIT

Last publish

Collaborators

  • itsjonq