| OLD | NEW |
| 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 <!-- | 11 <!-- |
| 12 A set of layout classes that let you specify layout properties directly in marku
p. | 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. | 13 You must include this file in every element that needs to use them. |
| 14 | 14 |
| 15 Sample use: | 15 Sample use: |
| 16 | 16 |
| 17 <link rel="import" href="../iron-flex-layout/iron-flex-layout-classes.html"> | 17 <link rel="import" href="../iron-flex-layout/iron-flex-layout-classes.html"> |
| 18 <style is="custom-style" include="iron-flex iron-flex-alignment"> | 18 <style is="custom-style" include="iron-flex iron-flex-alignment"></style> |
| 19 | 19 |
| 20 <div class="layout horizontal layout-start"> | 20 <div class="layout horizontal layout-start"> |
| 21 <div>cross axis start alignment</div> | 21 <div>cross axis start alignment</div> |
| 22 </div> | 22 </div> |
| 23 | 23 |
| 24 The following imports are available: | 24 The following imports are available: |
| 25 - iron-flex | 25 - iron-flex |
| 26 - iron-flex-reverse | 26 - iron-flex-reverse |
| 27 - iron-flex-alignment | 27 - iron-flex-alignment |
| 28 - iron-flex-factors | 28 - iron-flex-factors |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 -webkit-align-items: center; | 154 -webkit-align-items: center; |
| 155 align-items: center; | 155 align-items: center; |
| 156 } | 156 } |
| 157 | 157 |
| 158 .layout.end { | 158 .layout.end { |
| 159 -ms-flex-align: end; | 159 -ms-flex-align: end; |
| 160 -webkit-align-items: flex-end; | 160 -webkit-align-items: flex-end; |
| 161 align-items: flex-end; | 161 align-items: flex-end; |
| 162 } | 162 } |
| 163 | 163 |
| 164 .layout.baseline { |
| 165 -ms-flex-align: baseline; |
| 166 -webkit-align-items: baseline; |
| 167 align-items: baseline; |
| 168 } |
| 169 |
| 164 /** | 170 /** |
| 165 * Alignment in main axis. | 171 * Alignment in main axis. |
| 166 */ | 172 */ |
| 167 .layout.start-justified { | 173 .layout.start-justified { |
| 168 -ms-flex-pack: start; | 174 -ms-flex-pack: start; |
| 169 -webkit-justify-content: flex-start; | 175 -webkit-justify-content: flex-start; |
| 170 justify-content: flex-start; | 176 justify-content: flex-start; |
| 171 } | 177 } |
| 172 | 178 |
| 173 .layout.center-justified, | 179 .layout.center-justified, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 -ms-align-self: flex-end; | 220 -ms-align-self: flex-end; |
| 215 -webkit-align-self: flex-end; | 221 -webkit-align-self: flex-end; |
| 216 align-self: flex-end; | 222 align-self: flex-end; |
| 217 } | 223 } |
| 218 | 224 |
| 219 .self-stretch { | 225 .self-stretch { |
| 220 -ms-align-self: stretch; | 226 -ms-align-self: stretch; |
| 221 -webkit-align-self: stretch; | 227 -webkit-align-self: stretch; |
| 222 align-self: stretch; | 228 align-self: stretch; |
| 223 } | 229 } |
| 230 |
| 231 .self-baseline { |
| 232 -ms-align-self: baseline; |
| 233 -webkit-align-self: baseline; |
| 234 align-self: baseline; |
| 235 }; |
| 236 |
| 237 /** |
| 238 * multi-line alignment in main axis. |
| 239 */ |
| 240 .layout.start-aligned { |
| 241 -ms-flex-line-pack: start; /* IE10 */ |
| 242 -ms-align-content: flex-start; |
| 243 -webkit-align-content: flex-start; |
| 244 align-content: flex-start; |
| 245 } |
| 246 |
| 247 .layout.end-aligned { |
| 248 -ms-flex-line-pack: end; /* IE10 */ |
| 249 -ms-align-content: flex-end; |
| 250 -webkit-align-content: flex-end; |
| 251 align-content: flex-end; |
| 252 } |
| 253 |
| 254 .layout.center-aligned { |
| 255 -ms-flex-line-pack: center; /* IE10 */ |
| 256 -ms-align-content: center; |
| 257 -webkit-align-content: center; |
| 258 align-content: center; |
| 259 } |
| 260 |
| 261 .layout.between-aligned { |
| 262 -ms-flex-line-pack: justify; /* IE10 */ |
| 263 -ms-align-content: space-between; |
| 264 -webkit-align-content: space-between; |
| 265 align-content: space-between; |
| 266 } |
| 267 |
| 268 .layout.around-aligned { |
| 269 -ms-flex-line-pack: distribute; /* IE10 */ |
| 270 -ms-align-content: space-around; |
| 271 -webkit-align-content: space-around; |
| 272 align-content: space-around; |
| 273 } |
| 224 </style> | 274 </style> |
| 225 </template> | 275 </template> |
| 226 </dom-module> | 276 </dom-module> |
| 227 | 277 |
| 228 <dom-module id="iron-flex-factors"> | 278 <dom-module id="iron-flex-factors"> |
| 229 <template> | 279 <template> |
| 230 <style> | 280 <style> |
| 231 .flex, | 281 .flex, |
| 232 .flex-1 { | 282 .flex-1 { |
| 233 -ms-flex: 1 1 0.000000001px; | 283 -ms-flex: 1 1 0.000000001px; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 } | 422 } |
| 373 | 423 |
| 374 .fixed-left { | 424 .fixed-left { |
| 375 top: 0; | 425 top: 0; |
| 376 bottom: 0; | 426 bottom: 0; |
| 377 left: 0; | 427 left: 0; |
| 378 } | 428 } |
| 379 </style> | 429 </style> |
| 380 </template> | 430 </template> |
| 381 </dom-module> | 431 </dom-module> |
| OLD | NEW |