Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
classes/ | 03-May-2024 | - | 620 | 490 | ||
demo/ | 03-May-2024 | - | 397 | 348 | ||
test/ | 03-May-2024 | - | 880 | 755 | ||
.bower.json | D | 03-May-2024 | 1.2 KiB | 41 | 41 | |
.gitignore | D | 03-May-2024 | 18 | 3 | 1 | |
.travis.yml | D | 03-May-2024 | 839 | 26 | 25 | |
CONTRIBUTING.md | D | 03-May-2024 | 3.4 KiB | 78 | 39 | |
README.md | D | 03-May-2024 | 2.3 KiB | 56 | 25 | |
bower.json | D | 03-May-2024 | 848 | 32 | 31 | |
index.html | D | 03-May-2024 | 802 | 25 | 11 | |
iron-flex-layout-classes.html | D | 03-May-2024 | 9.1 KiB | 432 | 339 | |
iron-flex-layout.html | D | 03-May-2024 | 9 KiB | 400 | 287 |
README.md
1 2<!--- 3 4This README is automatically generated from the comments in these files: 5iron-flex-layout.html 6 7Edit those files, and our readme bot will duplicate them over here! 8Edit this file, and the bot will squash your changes :) 9 10The bot does some handling of markdown. Please file a bug if it does the wrong 11thing! https://github.com/PolymerLabs/tedium/issues 12 13--> 14 15[](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 22The `<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), 24also known as flexbox. This component provides two different ways to use flexbox: 25 261. [Layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/iron-flex-layout-classes.html). 27The layout class stylesheet provides a simple set of class-based flexbox rules, that 28let you specify layout properties directly in markup. You must include this file 29in every element that needs to use them. 30 31Sample 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 411. [Custom CSS mixins](https://github.com/PolymerElements/iron-flex-layout/blob/master/iron-flex-layout.html). 42The mixin stylesheet includes custom CSS mixins that can be applied inside a CSS rule using the `@apply` function. 43 44 45 46Please note that the old [/deep/ layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master/classes) 47are deprecated, and should not be used. To continue using layout properties 48directly 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). 50Please note that the new version does not use `/deep/`, and therefore requires you 51to import the `dom-modules` in every element that needs to use them. 52 53A complete [guide](https://elements.polymer-project.org/guides/flex-layout) to `<iron-flex-layout>` is available. 54 55 56