npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

assemble-navs

v1.0.5

Published

Navs for the Assemble CSS Framework.

Downloads

83

Readme

Assemble Navs

Assemble Navs is a component of the Assemble CSS Framework. It will give you a solid base for using media players in your project. It has some default styles that can easily be overridden so you can add your own look.

Requirements

Assemble Navs requires Assemble Base.

Installation

npm install assemble-navs --save-dev

Usage

Import the _assemble-navs.css file from your css file.

@import '../node_modules/assemble-base/base';

/*
Override variables here before the Assemble Components are loaded.
*/

@import '../node_modules/assemble-navs/assemble-navs';

HTML

<ul class="nav">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>

Options

Options are set with variables. These variables are already set with their default values so they will just work out of the box. If you wish to change them just define the variable you want to change before you load the _assemble-navs.css file. You may wish you see Assemble Base for more examples and directions for setting up a Assemble project.

Design Variables

$pagination-li-padding
  • Set pagination padding.
  • Default: 12px;
  • Type: Number
$pagination-li-padding: 5px;
$pagination-a-spacing
  • Set pagination link spacing.
  • Default: 12px;
  • Type: Number
$pagination-a-spacing: 5px;
$breadcrumb-a-right
  • Set breadcrumb right margin.
  • Default: 10px;
  • Type: Number
$breadcrumb-a-right: 5px;
$breadcrumb-a-left
  • Set breadcrumb left margin.
  • Default: 13px;
  • Type: Number
$breadcrumb-a-left: 5px;

Modifier Variables

$nav--fit
  • Turn on/off fit navigations in your application. If set to true you can use the class .nav--fit. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--fit: true;

Usage

<ul class="nav  nav--fit">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>
$nav--stacked
  • Turn on/off stacked navigations in your application. If set to true you can use the class .nav--stacked. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--stacked: true;

Usage

<ul class="nav  nav--stacked">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>
$nav--center
  • Turn on/off center navigations in your application. If set to true you can use the class .nav--center. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--center: true;

Usage

<ul class="nav  nav--center">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>
$nav--right
  • Turn on/off right navigations in your application. If set to true you can use the class .nav--right. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--right: true;

Usage

<ul class="nav  nav--right">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>
$nav--left
  • Turn on/off left navigations in your application. If set to true you can use the class .nav--left. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--left: true;

Usage

<ul class="nav  nav--left">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>
$nav--space-between
  • Turn on/off space between navigations in your application. If set to true you can use the class .nav--space-between. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--space-between: true;

Usage

<ul class="nav  nav--space-between">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>
$nav--space-around
  • Turn on/off space around navigations in your application. If set to true you can use the class .nav--space-around. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--space-around: true;

Usage

<ul class="nav  nav--space-around">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>
$nav--keywords
  • Turn on/off keyword navigations in your application. If set to true you can use the class .nav--keywords. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--keywords: true;

Usage

<ul class="nav  nav--keywords">
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Search</a></li>
</ul>
$nav--pagination
  • Turn on/off pagination navigations in your application. If set to true you can use the class .nav--pagination. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--pagination: true;

Usage

<ul class="nav  nav--pagination">
    <li><a href="#">Prev</a></li>
    <li><a href="#">7</a></li>
    <li><a href="#">8</a></li>
    <li><a href="#">9</a></li>
    <li><a href="#">10</a></li>
    <li><a href="#">Next</a></li>
</ul>
$nav--breadcrumb
  • Turn on/off breadcrumb navigations in your application. If set to true you can use the class .nav--breadcrumb. It requires .nav.
  • Default: false;
  • Type: Boolean
$nav--breadcrumb: true;

Usage

<ul class="nav  nav--breadcrumb">
    <li><a href="#">Prodcut Page</a></li>
    <li><a href="#">Prodcut Sub Page</a></li>
    <li><a href="#">Checkout Page</a></li>
</ul>
$nav--breadcrumb--path
  • Turn on/off breadcrumb path navigations in your application. If set to true you can use the class .nav--breadcrumb--path. It requires .nav & .nav--breadcrumb.
  • Default: false;
  • Type: Boolean
$nav--breadcrumb--path: true;

Usage

<ul class="nav  nav--breadcrumb  nav--breadcrumb--path">
    <li><a href="#">Prodcut Page</a></li>
    <li><a href="#">Prodcut Sub Page</a></li>
    <li><a href="#">Checkout Page</a></li>
</ul>
$nav--breadcrumb--custom
  • Turn on/off custom breadcrumb navigations in your application. If set to true you can use the class .nav--breadcrumb--custom. It requires .nav & .nav--breadcrumb.
  • Default: false;
  • Type: Boolean
$nav--breadcrumb--custom: true;

Usage

<ul class="nav  nav--breadcrumb  nav--breadcrumb--custom">
    <li><a href="#">Prodcut Page</a></li>
    <li data-breadcrumb="_"><a href="#">Prodcut Sub Page</a></li>
    <li data-breadcrumb="--"><a href="#">Checkout Page</a></li>
</ul>