Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
.bower.json | 06-Dec-2016 | 1.2K | |
.gitignore | 06-Dec-2016 | 18 | |
.travis.yml | 06-Dec-2016 | 839 | |
bower.json | 06-Dec-2016 | 848 | |
classes/ | 06-Dec-2016 | ||
CONTRIBUTING.md | 06-Dec-2016 | 3.4K | |
demo/ | 06-Dec-2016 | ||
index.html | 06-Dec-2016 | 802 | |
iron-flex-layout-classes.html | 06-Dec-2016 | 9.1K | |
iron-flex-layout.html | 06-Dec-2016 | 9K | |
README.md | 06-Dec-2016 | 2.3K | |
test/ | 06-Dec-2016 |
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 ##<iron-flex-layout> 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