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

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

Issue 1766433002: Roll Polymer to 1.3.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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
(Empty)
1 <!--
2 @license
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
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
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
9 -->
10
11 <!--
12 A set of layout classes that let you specify layout properties directly in marku p.
13 You must include this file in every element that needs to use them.
14
15 Sample use:
16
17 <link rel="import" href="../iron-flex-layout/iron-flex-layout-classes.html">
18 <style is="custom-style" include="iron-flex iron-flex-alignment">
19
20 <div class="layout horizontal layout-start">
21 <div>cross axis start alignment</div>
22 </div>
23
24 The following imports are available:
25 - iron-flex
26 - iron-flex-reverse
27 - iron-flex-alignment
28 - iron-flex-factors
29 - iron-positioning
30 -->
31
32 <link rel="import" href="../polymer/polymer.html">
33
34 <!-- Most common used flex styles-->
35 <dom-module id="iron-flex">
36 <template>
37 <style>
38 .layout.horizontal,
39 .layout.vertical {
40 display: -ms-flexbox;
41 display: -webkit-flex;
42 display: flex;
43 }
44
45 .layout.inline {
46 display: -ms-inline-flexbox;
47 display: -webkit-inline-flex;
48 display: inline-flex;
49 }
50
51 .layout.horizontal {
52 -ms-flex-direction: row;
53 -webkit-flex-direction: row;
54 flex-direction: row;
55 }
56
57 .layout.vertical {
58 -ms-flex-direction: column;
59 -webkit-flex-direction: column;
60 flex-direction: column;
61 }
62
63 .layout.wrap {
64 -ms-flex-wrap: wrap;
65 -webkit-flex-wrap: wrap;
66 flex-wrap: wrap;
67 }
68
69 .layout.center,
70 .layout.center-center {
71 -ms-flex-align: center;
72 -webkit-align-items: center;
73 align-items: center;
74 }
75
76 .layout.center-justified,
77 .layout.center-center {
78 -ms-flex-pack: center;
79 -webkit-justify-content: center;
80 justify-content: center;
81 }
82
83 .flex {
84 -ms-flex: 1 1 0.000000001px;
85 -webkit-flex: 1;
86 flex: 1;
87 -webkit-flex-basis: 0.000000001px;
88 flex-basis: 0.000000001px;
89 }
90
91 .flex-auto {
92 -ms-flex: 1 1 auto;
93 -webkit-flex: 1 1 auto;
94 flex: 1 1 auto;
95 }
96
97 .flex-none {
98 -ms-flex: none;
99 -webkit-flex: none;
100 flex: none;
101 }
102 </style>
103 </template>
104 </dom-module>
105
106 <!-- Basic flexbox reverse styles -->
107 <dom-module id="iron-flex-reverse">
108 <template>
109 <style>
110 .layout.horizontal-reverse,
111 .layout.vertical-reverse {
112 display: -ms-flexbox;
113 display: -webkit-flex;
114 display: flex;
115 }
116
117 .layout.horizontal-reverse {
118 -ms-flex-direction: row-reverse;
119 -webkit-flex-direction: row-reverse;
120 flex-direction: row-reverse;
121 }
122
123 .layout.vertical-reverse {
124 -ms-flex-direction: column-reverse;
125 -webkit-flex-direction: column-reverse;
126 flex-direction: column-reverse;
127 }
128
129 .layout.wrap-reverse {
130 -ms-flex-wrap: wrap-reverse;
131 -webkit-flex-wrap: wrap-reverse;
132 flex-wrap: wrap-reverse;
133 }
134 </style>
135 </template>
136 </dom-module>
137
138 <!-- Flexbox alignment -->
139 <dom-module id="iron-flex-alignment">
140 <template>
141 <style>
142 /**
143 * Alignment in cross axis.
144 */
145 .layout.start {
146 -ms-flex-align: start;
147 -webkit-align-items: flex-start;
148 align-items: flex-start;
149 }
150
151 .layout.center,
152 .layout.center-center {
153 -ms-flex-align: center;
154 -webkit-align-items: center;
155 align-items: center;
156 }
157
158 .layout.end {
159 -ms-flex-align: end;
160 -webkit-align-items: flex-end;
161 align-items: flex-end;
162 }
163
164 /**
165 * Alignment in main axis.
166 */
167 .layout.start-justified {
168 -ms-flex-pack: start;
169 -webkit-justify-content: flex-start;
170 justify-content: flex-start;
171 }
172
173 .layout.center-justified,
174 .layout.center-center {
175 -ms-flex-pack: center;
176 -webkit-justify-content: center;
177 justify-content: center;
178 }
179
180 .layout.end-justified {
181 -ms-flex-pack: end;
182 -webkit-justify-content: flex-end;
183 justify-content: flex-end;
184 }
185
186 .layout.around-justified {
187 -ms-flex-pack: distribute;
188 -webkit-justify-content: space-around;
189 justify-content: space-around;
190 }
191
192 .layout.justified {
193 -ms-flex-pack: justify;
194 -webkit-justify-content: space-between;
195 justify-content: space-between;
196 }
197
198 /**
199 * Self alignment.
200 */
201 .self-start {
202 -ms-align-self: flex-start;
203 -webkit-align-self: flex-start;
204 align-self: flex-start;
205 }
206
207 .self-center {
208 -ms-align-self: center;
209 -webkit-align-self: center;
210 align-self: center;
211 }
212
213 .self-end {
214 -ms-align-self: flex-end;
215 -webkit-align-self: flex-end;
216 align-self: flex-end;
217 }
218
219 .self-stretch {
220 -ms-align-self: stretch;
221 -webkit-align-self: stretch;
222 align-self: stretch;
223 }
224 </style>
225 </template>
226 </dom-module>
227
228 <dom-module id="iron-flex-factors">
229 <template>
230 <style>
231 .flex,
232 .flex-1 {
233 -ms-flex: 1 1 0.000000001px;
234 -webkit-flex: 1;
235 flex: 1;
236 -webkit-flex-basis: 0.000000001px;
237 flex-basis: 0.000000001px;
238 }
239
240 .flex-2 {
241 -ms-flex: 2;
242 -webkit-flex: 2;
243 flex: 2;
244 }
245
246 .flex-3 {
247 -ms-flex: 3;
248 -webkit-flex: 3;
249 flex: 3;
250 }
251
252 .flex-4 {
253 -ms-flex: 4;
254 -webkit-flex: 4;
255 flex: 4;
256 }
257
258 .flex-5 {
259 -ms-flex: 5;
260 -webkit-flex: 5;
261 flex: 5;
262 }
263
264 .flex-6 {
265 -ms-flex: 6;
266 -webkit-flex: 6;
267 flex: 6;
268 }
269
270 .flex-7 {
271 -ms-flex: 7;
272 -webkit-flex: 7;
273 flex: 7;
274 }
275
276 .flex-8 {
277 -ms-flex: 8;
278 -webkit-flex: 8;
279 flex: 8;
280 }
281
282 .flex-9 {
283 -ms-flex: 9;
284 -webkit-flex: 9;
285 flex: 9;
286 }
287
288 .flex-10 {
289 -ms-flex: 10;
290 -webkit-flex: 10;
291 flex: 10;
292 }
293
294 .flex-11 {
295 -ms-flex: 11;
296 -webkit-flex: 11;
297 flex: 11;
298 }
299
300 .flex-12 {
301 -ms-flex: 12;
302 -webkit-flex: 12;
303 flex: 12;
304 }
305 </style>
306 </template>
307 </dom-module>
308
309 <!-- Non-flexbox positioning helper styles -->
310 <dom-module id="iron-positioning">
311 <template>
312 <style>
313 .block {
314 display: block;
315 }
316
317 /* IE 10 support for HTML5 hidden attr */
318 [hidden] {
319 display: none !important;
320 }
321
322 .invisible {
323 visibility: hidden !important;
324 }
325
326 .relative {
327 position: relative;
328 }
329
330 .fit {
331 position: absolute;
332 top: 0;
333 right: 0;
334 bottom: 0;
335 left: 0;
336 }
337
338 body.fullbleed {
339 margin: 0;
340 height: 100vh;
341 }
342
343 .scroll {
344 -webkit-overflow-scrolling: touch;
345 overflow: auto;
346 }
347
348 /* fixed position */
349 .fixed-bottom,
350 .fixed-left,
351 .fixed-right,
352 .fixed-top {
353 position: fixed;
354 }
355
356 .fixed-top {
357 top: 0;
358 left: 0;
359 right: 0;
360 }
361
362 .fixed-right {
363 top: 0;
364 right: 0;
365 bottom: 0;
366 }
367
368 .fixed-bottom {
369 right: 0;
370 bottom: 0;
371 left: 0;
372 }
373
374 .fixed-left {
375 top: 0;
376 bottom: 0;
377 left: 0;
378 }
379 </style>
380 </template>
381 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698