px-widths-responsive-design

WebJar for px-widths-responsive-design

License

License

BSD 3-Clause
GroupId

GroupId

org.webjars.bowergithub.predixdesignsystem
ArtifactId

ArtifactId

px-widths-responsive-design
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

px-widths-responsive-design
WebJar for px-widths-responsive-design
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/predixdesignsystem/px-widths-responsive-design

Download px-widths-responsive-design

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.predixdesignsystem/px-widths-responsive-design/ -->
<dependency>
    <groupId>org.webjars.bowergithub.predixdesignsystem</groupId>
    <artifactId>px-widths-responsive-design</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.predixdesignsystem/px-widths-responsive-design/
implementation 'org.webjars.bowergithub.predixdesignsystem:px-widths-responsive-design:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.predixdesignsystem/px-widths-responsive-design/
implementation ("org.webjars.bowergithub.predixdesignsystem:px-widths-responsive-design:1.0.0")
'org.webjars.bowergithub.predixdesignsystem:px-widths-responsive-design:jar:1.0.0'
<dependency org="org.webjars.bowergithub.predixdesignsystem" name="px-widths-responsive-design" rev="1.0.0">
  <artifact name="px-widths-responsive-design" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.predixdesignsystem', module='px-widths-responsive-design', version='1.0.0')
)
libraryDependencies += "org.webjars.bowergithub.predixdesignsystem" % "px-widths-responsive-design" % "1.0.0"
[org.webjars.bowergithub.predixdesignsystem/px-widths-responsive-design "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bowergithub.predixdesignsystem : px-helpers-design jar [1.0.0,2)
org.webjars.bowergithub.predixdesignsystem : px-widths-design jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

px-widths-responsive-design

The Predix UI Widths Responsive module is an extension of the default px-widths-design module and provides breakpoint-based classes for widths on elements. This module is a fork of inuitcss' widths-responsive module.

The px-widths-responsive-design module loops through the breakpoints defined in inuitcss' settings.responsive to generate prefixed breakpoint-based classes. If you are using inuitcss’ default breakpoints, you will be given classes like u-1/4-lap-and-up, or u-1-of-2-desk, etc.

Px-widths-responsive-design will inherit the same settings used for the px-widths-design module (i.e. namespaces and fraction vs. spoken-word format).

Based on the breakpoints defined in the $breakpoints Sass list, then widths determined by classes in your markup will be triggered.

For example, a $breakpoint named desk which defines a media-query for viewports wider than 1024 pixels, the class .u-1/2-desk would apply a width of 50% on an element with a viewport above 1024 pixels. At narrower viewports .u-1/2-desk has no effect.

Dependencies

The px-widths-responsive-design module depends on one other Px module and one other inuitcss module:

Upstream dependencies

The px-widths-responsive-design module is also an upstream dependency in this meta kit:

Installation

Install this module and its dependencies using bower:

bower install --save px-widths-responsive-design

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

@import "px-widths-responsive-design/_trumps.widths-responsive.scss";

Options

For each "breakpoint" set in inuitcss' settings.responsive $breakpoint Sass list, the classes below will be appended i.e. [breakpoint-name]-classname. Width dimensions are set in Px's Widths module.

Whole:

  • u-1/1-* or u-1-of-1-*

Halves:

  • u-1/2-* or u-1-of-1-*

Thirds:

  • u-1/3-* or u-1-of-3-*
  • u-2/3-* or u-2-of-3-*

Quarters:

  • u-1/4-* or u-1-of-4-*
  • u-2/4-* or u-2-of-4-*
  • u-3/4-* or u-3-of-4-*

Sixths:

  • u-1/6-* or u-1-of-6-*
  • u-2/6-* or u-2-of-6-*
  • u-3/6-* or u-3-of-6-*
  • u-4/6-* or u-4-of-6-*
  • u-5/6-* or u-5-of-6-*

View the full API here.

org.webjars.bowergithub.predixdesignsystem

Predix Design System

Versions

Version
1.0.0