Skip to content

predixdesignsystem/px-widths-tools-design

Repository files navigation

px-width-tools-design

The Predix UI Widths Tools allows you to generate a suite of utility classes for sizing pieces of UI.

Dependency

The px-width-tools-design module depends on one other Px module:

Installation

Install using bower:

bower install --save px-widths-tools-design

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

@import "px-widths-tools-design/_tools.widths.scss";

Usage

This flag is available and, if fractions are not desired, should be set to false prior to importing the module:

$inuit-use-fractions

Mixin provided

The following mixin is provided:

  • inuit-widths: Generates series of classes in the format .u-7/12 or .u-7-of-12 (dependent on how the $inuit-use-fractions flag is set) to be used for sizing.

View the full API here.