Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: third_party/polymer/components/iron-flex-layout/iron-flex-layout.html

Issue 3010683002: Update Polymer components. (Closed)
Patch Set: Rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
11 <link rel="import" href="../polymer/polymer.html"> 11 <link rel="import" href="../polymer/polymer.html">
12 12
13 <!-- 13 <!--
14 The `<iron-flex-layout>` component provides simple ways to use 14 The `<iron-flex-layout>` component provides simple ways to use
15 [CSS flexible box layout](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS /Flexible_boxes), 15 [CSS flexible box layout](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS /Flexible_boxes),
16 also known as flexbox. This component provides two different ways to use flexbox : 16 also known as flexbox. This component provides two different ways to use flexbox :
17 17
18 1. [Layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/mas ter/iron-flex-layout-classes.html). 18 1. [Layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/mas ter/iron-flex-layout-classes.html).
19 The layout class stylesheet provides a simple set of class-based flexbox rules, that 19 The layout class stylesheet provides a simple set of class-based flexbox rules, that
20 let you specify layout properties directly in markup. You must include this file 20 let you specify layout properties directly in markup. You must include this file
21 in every element that needs to use them. 21 in every element that needs to use them.
22 22
23 Sample use: 23 Sample use:
24 24
25 <link rel="import" href="../iron-flex-layout/iron-flex-layout-classes.html "> 25 ```
26 <style is="custom-style" include="iron-flex iron-flex-alignment"></style> 26 <custom-element-demo>
27 <template>
28 <script src="../webcomponentsjs/webcomponents-lite.js"></script>
29 <next-code-block></next-code-block>
30 </template>
31 </custom-element-demo>
32 ```
27 33
28 <div class="layout horizontal layout-start"> 34 ```html
29 <div>cross axis start alignment</div> 35 <link rel="import" href="iron-flex-layout-classes.html">
30 </div> 36 <style is="custom-style" include="iron-flex iron-flex-alignment"></style>
37 <style>
38 .test { width: 100px; }
39 </style>
40 <div class="layout horizontal center-center">
41 <div class="test">horizontal layout center alignment</div>
42 </div>
43 ```
31 44
32 2. [Custom CSS mixins](https://github.com/PolymerElements/iron-flex-layout/blob/ master/iron-flex-layout.html). 45 2. [Custom CSS mixins](https://github.com/PolymerElements/iron-flex-layout/blob/ master/iron-flex-layout.html).
33 The mixin stylesheet includes custom CSS mixins that can be applied inside a CSS rule using the `@apply` function. 46 The mixin stylesheet includes custom CSS mixins that can be applied inside a CSS rule using the `@apply` function.
34 47
35 Please note that the old [/deep/ layout classes](https://github.com/PolymerEleme nts/iron-flex-layout/tree/master/classes) 48 Please note that the old [/deep/ layout classes](https://github.com/PolymerEleme nts/iron-flex-layout/tree/master/classes)
36 are deprecated, and should not be used. To continue using layout properties 49 are deprecated, and should not be used. To continue using layout properties
37 directly in markup, please switch to using the new `dom-module`-based 50 directly in markup, please switch to using the new `dom-module`-based
38 [layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master /iron-flex-layout-classes.html). 51 [layout classes](https://github.com/PolymerElements/iron-flex-layout/tree/master /iron-flex-layout-classes.html).
39 Please note that the new version does not use `/deep/`, and therefore requires y ou 52 Please note that the new version does not use `/deep/`, and therefore requires y ou
40 to import the `dom-modules` in every element that needs to use them. 53 to import the `dom-modules` in every element that needs to use them.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 -ms-flex-direction: column-reverse; 111 -ms-flex-direction: column-reverse;
99 -webkit-flex-direction: column-reverse; 112 -webkit-flex-direction: column-reverse;
100 flex-direction: column-reverse; 113 flex-direction: column-reverse;
101 }; 114 };
102 115
103 --layout-wrap: { 116 --layout-wrap: {
104 -ms-flex-wrap: wrap; 117 -ms-flex-wrap: wrap;
105 -webkit-flex-wrap: wrap; 118 -webkit-flex-wrap: wrap;
106 flex-wrap: wrap; 119 flex-wrap: wrap;
107 }; 120 };
108 121
109 --layout-no-wrap: { 122 --layout-no-wrap: {
110 -ms-flex-wrap: nowrap; 123 -ms-flex-wrap: nowrap;
111 -webkit-flex-wrap: nowrap; 124 -webkit-flex-wrap: nowrap;
112 flex-wrap: nowrap; 125 flex-wrap: nowrap;
113 }; 126 };
114 127
115 --layout-wrap-reverse: { 128 --layout-wrap-reverse: {
116 -ms-flex-wrap: wrap-reverse; 129 -ms-flex-wrap: wrap-reverse;
117 -webkit-flex-wrap: wrap-reverse; 130 -webkit-flex-wrap: wrap-reverse;
118 flex-wrap: wrap-reverse; 131 flex-wrap: wrap-reverse;
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 --layout-fixed-left: { 409 --layout-fixed-left: {
397 position: fixed; 410 position: fixed;
398 top: 0; 411 top: 0;
399 bottom: 0; 412 bottom: 0;
400 left: 0; 413 left: 0;
401 }; 414 };
402 415
403 } 416 }
404 417
405 </style> 418 </style>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698