• Home
Name Date Size #Lines LOC

..--

classes/03-May-2024-620490

demo/03-May-2024-397348

test/03-May-2024-880755

.bower.jsonD03-May-20241.2 KiB4141

.gitignoreD03-May-202418 31

.travis.ymlD03-May-2024839 2625

CONTRIBUTING.mdD03-May-20243.4 KiB7839

README.mdD03-May-20242.3 KiB5625

bower.jsonD03-May-2024848 3231

index.htmlD03-May-2024802 2511

iron-flex-layout-classes.htmlD03-May-20249.1 KiB432339

iron-flex-layout.htmlD03-May-20249 KiB400287

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[![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
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