Basic principles

Like other Ink components, our navigation elements have an easy and intuitive implementation and their structure is a combination of simple and semantic markup with natural language class naming.

We have five types of navigation elements that are:

  • menu A simple menu bar for basic navigation, with horizontal and vertical layouts and sub menus.
  • breadcrumbs Breadcrumb type navigation, for when your interfaces require contextual navigation.
  • pagination Pagination type navigation, for when you need to split your content intro smaller chunks.
  • pills Pill type navigation. Pills are essentially the same as menu navigation but look like single "buttons".
  • dropdowns Dropdown menu type navigation. Very similar to what you'd find in your operative system.
CSS CLASSES
Class name Description
ink-navigation The navigation root class.
menu
breadcrumbs
pagination
pills dropdown
Defines the type of navigation.
white
grey
black
blue
green
orange
red
Defines the navigation theme color.
  • : These classes must be used to make any kind of navigation work.
  • : These classes are aware of their context and behave differently according to the type of navigation in which they are used.

All of the navigation elements have the same basic structure:

Structure

<nav class="ink-navigation">
    <ul>
        <li><a href="#">...</a></li>
        <li><a href="#">...</a></li>
        ...
    </ul>
</nav>

Pagination

  • Css classes:
  • ink-navigation
  • pagination
  • chevron
  • dotted
  • active
  • disabled
  • previous
  • next
  • white
  • grey
  • black
  • blue
  • green
  • orange
  • red

Pagination type navigation is created by using the pagination CSS class in the <ul> element, and by default has a button bar presentation:

Code

<nav class="ink-navigation">
    <ul class="pagination black">
        <li class="disabled"><a href="#">Previous</a></li>
        <li class="active"><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">Next</a></li>
    </ul>
</nav>

Demo

Dotted

To get a dotted style of pagination, add the dotted CSS class to the <ul> element:

Code

<nav class="ink-navigation">
    <ul class="pagination dotted">
        <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="#">6</a></li>
    </ul>
</nav>

Demo

Chevron

To get a chevron style of pagination, add the chevron CSS class to the <ul> element:

Code

<nav class="ink-navigation">
    <ul class="pagination chevron">
        <li class="previous"><a href="#"><span>Previous</span></a></li>
        <li class="next"><a href="#"><span>Next</span></a></li>
    </ul>
</nav>

Demo

Pills

  • Css classes:
  • ink-navigation
  • pills
  • active
  • disabled
  • white
  • grey
  • black
  • blue
  • green
  • orange
  • red

Pills type navigation is created by using the pills CSS class in the <ul> element, and by default has a button bar presentation:

Code

<nav class="ink-navigation">
    <ul class="pagination pills black">
        <li class="disabled"><a href="#">Pill disabled</a></li>
        <li class="active"><a href="#">Pill 1</a></li>
        <li><a href="#">Pill 2</a></li>
        <li><a href="#">Pill 3</a></li>
        <li><a href="#">Pill 4</a></li>
    </ul>
</nav>

Demo