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

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

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 6 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 <style is="x-style"> 13 <style is="custom-style">
14 14
15 * { 15 :root {
16 16
17 --layout: { 17 --layout: {
18 display: -ms-flexbox; 18 display: -ms-flexbox;
19 display: -webkit-flex; 19 display: -webkit-flex;
20 display: flex; 20 display: flex;
21 } 21 };
22 22
23 --layout-inline: { 23 --layout-inline: {
24 display: -ms-inline-flexbox; 24 display: -ms-inline-flexbox;
25 display: -webkit-inline-flex; 25 display: -webkit-inline-flex;
26 display: inline-flex; 26 display: inline-flex;
27 } 27 };
28 28
29 --layout-horizontal: { 29 --layout-horizontal: {
30 /* mixin(--layout); */ 30 /* @apply(--layout); */
31 display: -ms-flexbox; 31 display: -ms-flexbox;
32 display: -webkit-flex; 32 display: -webkit-flex;
33 display: flex; 33 display: flex;
34 34
35 -ms-flex-direction: row; 35 -ms-flex-direction: row;
36 -webkit-flex-direction: row; 36 -webkit-flex-direction: row;
37 flex-direction: row; 37 flex-direction: row;
38 } 38 };
39 39
40 --layout-horizontal-reverse: { 40 --layout-horizontal-reverse: {
41 -ms-flex-direction: row-reverse; 41 -ms-flex-direction: row-reverse;
42 -webkit-flex-direction: row-reverse; 42 -webkit-flex-direction: row-reverse;
43 flex-direction: row-reverse; 43 flex-direction: row-reverse;
44 } 44 };
45 45
46 --layout-vertical: { 46 --layout-vertical: {
47 /* mixin(--layout); */ 47 /* @apply(--layout); */
48 display: -ms-flexbox; 48 display: -ms-flexbox;
49 display: -webkit-flex; 49 display: -webkit-flex;
50 display: flex; 50 display: flex;
51 51
52 -ms-flex-direction: column; 52 -ms-flex-direction: column;
53 -webkit-flex-direction: column; 53 -webkit-flex-direction: column;
54 flex-direction: column; 54 flex-direction: column;
55 } 55 };
56 56
57 --layout-vertical-reverse: { 57 --layout-vertical-reverse: {
58 -ms-flex-direction: column-reverse; 58 -ms-flex-direction: column-reverse;
59 -webkit-flex-direction: column-reverse; 59 -webkit-flex-direction: column-reverse;
60 flex-direction: column-reverse; 60 flex-direction: column-reverse;
61 } 61 };
62 62
63 --layout-wrap: { 63 --layout-wrap: {
64 -ms-flex-wrap: wrap; 64 -ms-flex-wrap: wrap;
65 -webkit-flex-wrap: wrap; 65 -webkit-flex-wrap: wrap;
66 flex-wrap: wrap; 66 flex-wrap: wrap;
67 } 67 };
68 68
69 --layout-wrap-reverse: { 69 --layout-wrap-reverse: {
70 -ms-flex-wrap: wrap-reverse; 70 -ms-flex-wrap: wrap-reverse;
71 -webkit-flex-wrap: wrap-reverse; 71 -webkit-flex-wrap: wrap-reverse;
72 flex-wrap: wrap-reverse; 72 flex-wrap: wrap-reverse;
73 } 73 };
74 74
75 --layout-flex-auto: { 75 --layout-flex-auto: {
76 -ms-flex: 1 1 auto; 76 -ms-flex: 1 1 auto;
77 -webkit-flex: 1 1 auto; 77 -webkit-flex: 1 1 auto;
78 flex: 1 1 auto; 78 flex: 1 1 auto;
79 } 79 };
80 80
81 --layout-flex-none: { 81 --layout-flex-none: {
82 -ms-flex: none; 82 -ms-flex: none;
83 -webkit-flex: none; 83 -webkit-flex: none;
84 flex: none; 84 flex: none;
85 } 85 };
86 86
87 --layout-flex: { 87 --layout-flex: {
88 -ms-flex: 1; 88 -ms-flex: 1 1 0.000000001px;
89 -webkit-flex: 1; 89 -webkit-flex: 1;
90 flex: 1; 90 flex: 1;
91 } 91 -webkit-flex-basis: 0.000000001px;
92 flex-basis: 0.000000001px;
93 };
92 94
93 --layout-flex-2: { 95 --layout-flex-2: {
94 -ms-flex: 2; 96 -ms-flex: 2;
95 -webkit-flex: 2; 97 -webkit-flex: 2;
96 flex: 2; 98 flex: 2;
97 } 99 };
98 100
99 --layout-flex-3: { 101 --layout-flex-3: {
100 -ms-flex: 3; 102 -ms-flex: 3;
101 -webkit-flex: 3; 103 -webkit-flex: 3;
102 flex: 3; 104 flex: 3;
103 } 105 };
104 106
105 --layout-flex-4: { 107 --layout-flex-4: {
106 -ms-flex: 4; 108 -ms-flex: 4;
107 -webkit-flex: 4; 109 -webkit-flex: 4;
108 flex: 4; 110 flex: 4;
109 } 111 };
110 112
111 --layout-flex-5: { 113 --layout-flex-5: {
112 -ms-flex: 5; 114 -ms-flex: 5;
113 -webkit-flex: 5; 115 -webkit-flex: 5;
114 flex: 5; 116 flex: 5;
115 } 117 };
116 118
117 --layout-flex-6: { 119 --layout-flex-6: {
118 -ms-flex: 6; 120 -ms-flex: 6;
119 -webkit-flex: 6; 121 -webkit-flex: 6;
120 flex: 6; 122 flex: 6;
121 } 123 };
122 124
123 --layout-flex-7: { 125 --layout-flex-7: {
124 -ms-flex: 7; 126 -ms-flex: 7;
125 -webkit-flex: 7; 127 -webkit-flex: 7;
126 flex: 7; 128 flex: 7;
127 } 129 };
128 130
129 --layout-flex-8: { 131 --layout-flex-8: {
130 -ms-flex: 8; 132 -ms-flex: 8;
131 -webkit-flex: 8; 133 -webkit-flex: 8;
132 flex: 8; 134 flex: 8;
133 } 135 };
134 136
135 --layout-flex-9: { 137 --layout-flex-9: {
136 -ms-flex: 9; 138 -ms-flex: 9;
137 -webkit-flex: 9; 139 -webkit-flex: 9;
138 flex: 9; 140 flex: 9;
139 } 141 };
140 142
141 --layout-flex-10: { 143 --layout-flex-10: {
142 -ms-flex: 10; 144 -ms-flex: 10;
143 -webkit-flex: 10; 145 -webkit-flex: 10;
144 flex: 10; 146 flex: 10;
145 } 147 };
146 148
147 --layout-flex-11: { 149 --layout-flex-11: {
148 -ms-flex: 11; 150 -ms-flex: 11;
149 -webkit-flex: 11; 151 -webkit-flex: 11;
150 flex: 11; 152 flex: 11;
151 } 153 };
152 154
153 --layout-flex-12: { 155 --layout-flex-12: {
154 -ms-flex: 12; 156 -ms-flex: 12;
155 -webkit-flex: 12; 157 -webkit-flex: 12;
156 flex: 12; 158 flex: 12;
157 } 159 };
158 160
159 /* alignment in cross axis */ 161 /* alignment in cross axis */
160 162
161 --layout-start: { 163 --layout-start: {
162 -ms-flex-align: start; 164 -ms-flex-align: start;
163 -webkit-align-items: flex-start; 165 -webkit-align-items: flex-start;
164 align-items: flex-start; 166 align-items: flex-start;
165 } 167 };
166 168
167 --layout-center: { 169 --layout-center: {
168 -ms-flex-align: center; 170 -ms-flex-align: center;
169 -webkit-align-items: center; 171 -webkit-align-items: center;
170 align-items: center; 172 align-items: center;
171 } 173 };
172 174
173 --layout-end: { 175 --layout-end: {
174 -ms-flex-align: end; 176 -ms-flex-align: end;
175 -webkit-align-items: flex-end; 177 -webkit-align-items: flex-end;
176 align-items: flex-end; 178 align-items: flex-end;
177 } 179 };
178 180
179 /* alignment in main axis */ 181 /* alignment in main axis */
180 182
181 --layout-start-justified: { 183 --layout-start-justified: {
182 -ms-flex-pack: start; 184 -ms-flex-pack: start;
183 -webkit-justify-content: flex-start; 185 -webkit-justify-content: flex-start;
184 justify-content: flex-start; 186 justify-content: flex-start;
185 } 187 };
186 188
187 --layout-center-justified: { 189 --layout-center-justified: {
188 -ms-flex-pack: center; 190 -ms-flex-pack: center;
189 -webkit-justify-content: center; 191 -webkit-justify-content: center;
190 justify-content: center; 192 justify-content: center;
191 } 193 };
192 194
193 --layout-end-justified: { 195 --layout-end-justified: {
194 -ms-flex-pack: end; 196 -ms-flex-pack: end;
195 -webkit-justify-content: flex-end; 197 -webkit-justify-content: flex-end;
196 justify-content: flex-end; 198 justify-content: flex-end;
197 } 199 };
198 200
199 --layout-around-justified: { 201 --layout-around-justified: {
200 -ms-flex-pack: around; 202 -ms-flex-pack: around;
201 -webkit-justify-content: space-around; 203 -webkit-justify-content: space-around;
202 justify-content: space-around; 204 justify-content: space-around;
203 } 205 };
204 206
205 --layout-justified: { 207 --layout-justified: {
206 -ms-flex-pack: justify; 208 -ms-flex-pack: justify;
207 -webkit-justify-content: space-between; 209 -webkit-justify-content: space-between;
208 justify-content: space-between; 210 justify-content: space-between;
209 } 211 };
210 212
211 --layout-center-center: { 213 --layout-center-center: {
212 /* mixin(--layout-center --layout-center-justified); */ 214 /* @apply(--layout-center --layout-center-justified); */
213 -ms-flex-align: center; 215 -ms-flex-align: center;
214 -webkit-align-items: center; 216 -webkit-align-items: center;
215 align-items: center; 217 align-items: center;
216 -ms-flex-pack: center; 218 -ms-flex-pack: center;
217 -webkit-justify-content: center; 219 -webkit-justify-content: center;
218 justify-content: center; 220 justify-content: center;
219 } 221 };
220 222
221 /* self alignment */ 223 /* self alignment */
222 224
223 --layout-self-start: { 225 --layout-self-start: {
224 -ms-align-self: flex-start; 226 -ms-align-self: flex-start;
225 -webkit-align-self: flex-start; 227 -webkit-align-self: flex-start;
226 align-self: flex-start; 228 align-self: flex-start;
227 } 229 };
228 230
229 --layout-self-center: { 231 --layout-self-center: {
230 -ms-align-self: center; 232 -ms-align-self: center;
231 -webkit-align-self: center; 233 -webkit-align-self: center;
232 align-self: center; 234 align-self: center;
233 } 235 };
234 236
235 --layout-self-end: { 237 --layout-self-end: {
236 -ms-align-self: flex-end; 238 -ms-align-self: flex-end;
237 -webkit-align-self: flex-end; 239 -webkit-align-self: flex-end;
238 align-self: flex-end; 240 align-self: flex-end;
239 } 241 };
240 242
241 --layout-self-stretch: { 243 --layout-self-stretch: {
242 -ms-align-self: stretch; 244 -ms-align-self: stretch;
243 -webkit-align-self: stretch; 245 -webkit-align-self: stretch;
244 align-self: stretch; 246 align-self: stretch;
245 } 247 };
246 248
247 /******************************* 249 /*******************************
248 Other Layout 250 Other Layout
249 *******************************/ 251 *******************************/
250 252
251 --layout-block: { 253 --layout-block: {
252 display: block; 254 display: block;
253 } 255 };
254 256
255 --layout-invisible: { 257 --layout-invisible: {
256 visibility: hidden !important; 258 visibility: hidden !important;
257 } 259 };
258 260
259 --layout-relative: { 261 --layout-relative: {
260 position: relative; 262 position: relative;
261 } 263 };
262 264
263 --layout-fit: { 265 --layout-fit: {
264 position: absolute; 266 position: absolute;
265 top: 0; 267 top: 0;
266 right: 0; 268 right: 0;
267 bottom: 0; 269 bottom: 0;
268 left: 0; 270 left: 0;
269 } 271 };
270 272
271 --layout-scroll: { 273 --layout-scroll: {
272 -webkit-overflow-scrolling: touch; 274 -webkit-overflow-scrolling: touch;
273 overflow: auto; 275 overflow: auto;
274 } 276 };
275 277
276 /* fixed position */ 278 /* fixed position */
277 279
278 --layout-fixed-bottom:, 280 --layout-fixed-bottom:,
279 --layout-fixed-left:, 281 --layout-fixed-left:,
280 --layout-fixed-right:, 282 --layout-fixed-right:,
281 --layout-fixed-top: { 283 --layout-fixed-top: {
282 position: fixed; 284 position: fixed;
283 } 285 };
284 286
285 --layout-fixed-top: { 287 --layout-fixed-top: {
286 top: 0; 288 top: 0;
287 left: 0; 289 left: 0;
288 right: 0; 290 right: 0;
289 } 291 };
290 292
291 --layout-fixed-right: { 293 --layout-fixed-right: {
292 top: 0; 294 top: 0;
293 right: 0; 295 right: 0;
294 bottom: 0; 296 bottom: 0;
295 } 297 };
296 298
297 --layout-fixed-bottom: { 299 --layout-fixed-bottom: {
298 right: 0; 300 right: 0;
299 bottom: 0; 301 bottom: 0;
300 left: 0; 302 left: 0;
301 } 303 };
302 304
303 --layout-fixed-left: { 305 --layout-fixed-left: {
304 top: 0; 306 top: 0;
305 bottom: 0; 307 bottom: 0;
306 left: 0; 308 left: 0;
307 } 309 };
308 310
309 } 311 }
310 312
311 </style> 313 </style>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698