Home | History | Annotate | only in /external/chromium-trace/catapult/third_party/polymer/components/iron-flex-layout
Up to higher level directory
NameDateSize
.bower.json06-Dec-20161.2K
.gitignore06-Dec-201618
.travis.yml06-Dec-2016839
bower.json06-Dec-2016848
classes/06-Dec-2016
CONTRIBUTING.md06-Dec-20163.4K
demo/06-Dec-2016
index.html06-Dec-2016802
iron-flex-layout-classes.html06-Dec-20169.1K
iron-flex-layout.html06-Dec-20169K
README.md06-Dec-20162.3K
test/06-Dec-2016

README.md

      1 
      2 <!---
      3 
      4 This README is automatically generated from the comments in these files:
      5 iron-flex-layout.html
      6 
      7 Edit those files, and our readme bot will duplicate them over here!
      8 Edit this file, and the bot will squash your changes :)
      9 
     10 The bot does some handling of markdown. Please file a bug if it does the wrong
     11 thing! https://github.com/PolymerLabs/tedium/issues
     12 
     13 -->
     14 
     15 [![Build status](https://travis-ci.org/PolymerElements/iron-flex-layout.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-flex-layout)
     16 
     17 _[Demo and API docs](https://elements.polymer-project.org/elements/iron-flex-layout)_
     18 
     19 
     20 ##&lt;iron-flex-layout&gt;
     21 
     22 The `<iron-flex-layout>` component provides simple ways to use
     23 [CSS flexible box layout](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes),
     24 also known as flexbox. This component provides two different ways to use flexbox:
     25 
     26 1. [Layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/iron-flex-layout-classes.html).
     27 The layout class stylesheet provides a simple set of class-based flexbox rules, that
     28 let you specify layout properties directly in markup. You must include this file
     29 in every element that needs to use them.
     30 
     31 Sample use:
     32 
     33    <link rel="import" href="../iron-flex-layout/iron-flex-layout-classes.html">
     34 
     35    <style is="custom-style" include="iron-flex iron-flex-alignment"></style>
     36 
     37    <div class="layout horizontal layout-start">
     38      <div>cross axis start alignment</div>
     39    </div>
     40 
     41 1. [Custom CSS mixins](https://github.com/PolymerElements/iron-flex-layout/blob/master/iron-flex-layout.html).
     42 The mixin stylesheet includes custom CSS mixins that can be applied inside a CSS rule using the `@apply` function.
     43 
     44 
     45 
     46 Please note that the old [/deep/ layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/classes)
     47 are deprecated, and should not be used. To continue using layout properties
     48 directly in markup, please switch to using the new `dom-module`-based
     49 [layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/iron-flex-layout-classes.html).
     50 Please note that the new version does not use `/deep/`, and therefore requires you
     51 to import the `dom-modules` in every element that needs to use them.
     52 
     53 A complete [guide](https://elements.polymer-project.org/guides/flex-layout) to `<iron-flex-layout>` is available.
     54 
     55 
     56