JSPM

  • Created
  • Published
  • Downloads 39706
  • Score
    100M100P100Q171244F
  • License BSD-3-Clause

Provide flexbox-based layouts

Package Exports

  • @polymer/iron-flex-layout/iron-flex-layout
  • @polymer/iron-flex-layout/iron-flex-layout-classes
  • @polymer/iron-flex-layout/iron-flex-layout-classes.js
  • @polymer/iron-flex-layout/iron-flex-layout.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@polymer/iron-flex-layout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build status Published on webcomponents.org

<iron-flex-layout>

The <iron-flex-layout> component provides simple ways to use CSS flexible box layout, also known as flexbox. This component provides two different ways to use flexbox:

  1. Layout classes. The layout class stylesheet provides a simple set of class-based flexbox rules, that let you specify layout properties directly in markup. You must include this file in every element that needs to use them.

Sample use:

<div class="layout horizontal layout-start" style="height: 154px">
  <div>cross axis start alignment</div>
</div>
  1. Custom CSS mixins. The mixin stylesheet includes custom CSS mixins that can be applied inside a CSS rule using the @apply function.

A complete guide to <iron-flex-layout> is available.

Changes in 2.0

  • removed the deprecated /deep/ classes -- files removed: classes/iron-flex-layout.html, classes/iron-shadow-flex-layout