Skip to content

predixdesignsystem/px-list-inline-design

Repository files navigation

px-list-inline-design

The Predix UI List Inline module simply displays a list as one horizontal row. This module is a fork of the inuitcss list-inline module.

Dependencies

The px-list-inline-design module depends on one other Px module:

Upstream dependencies

The px-list-inline-design module is also an upstream dependency in this meta kit:

Installation

Install this module and its dependencies using bower:

bower install --save px-list-inline-design

Once installed, @import into your project's Sass file in its Objects layer:

@import "px-list-inline-design/_objects.list-inline.scss";

Usage

These flags are available and, if needed, should be set to true prior to importing the module:

$inuit-enable-list-inline--delimited

This variable can be customized:

$inuit-list-inline-delimit-character

Basic usage of the px-list-inline-design module uses one required class:

<ul class="list-inline">
    <li>Foo</li>
    <li>Bar</li>
    <li>Baz</li>
</ul>

The only valid children of the .list-inline node are <li>s.

Options

Another, optional, class can supplement the required base class:

  • .list-inline--delimited: add a character to delimit list items.

For example:

<ul class="list-inline list-inline--delimited">
    <li>Foo</li>
    <li>Bar</li>
    <li>Baz</li>
</ul>

View the full API here.