| 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 --><html><head><link rel="import" href="iron-shadow-flex-layout.html"> | 9 --><html><head><link rel="import" href="iron-shadow-flex-layout.html"> |
| 10 | 10 |
| 11 <style> | 11 <style> |
| 12 | 12 |
| 13 /******************************* | 13 /******************************* |
| 14 Flex Layout | 14 Flex Layout |
| 15 *******************************/ | 15 *******************************/ |
| 16 | 16 |
| 17 .layout.horizontal, | 17 .layout.horizontal, |
| 18 .layout.horizontal-reverse, | 18 .layout.horizontal-reverse, |
| 19 .layout.vertical, | 19 .layout.vertical, |
| 20 .layout.vertical-reverse { | 20 .layout.vertical-reverse { |
| 21 display: -ms-flexbox; | |
| 22 display: -webkit-flex; | |
| 23 display: flex; | 21 display: flex; |
| 24 } | 22 } |
| 25 | 23 |
| 26 .layout.inline { | 24 .layout.inline { |
| 27 display: -ms-inline-flexbox; | |
| 28 display: -webkit-inline-flex; | |
| 29 display: inline-flex; | 25 display: inline-flex; |
| 30 } | 26 } |
| 31 | 27 |
| 32 .layout.horizontal { | 28 .layout.horizontal { |
| 33 -ms-flex-direction: row; | |
| 34 -webkit-flex-direction: row; | |
| 35 flex-direction: row; | 29 flex-direction: row; |
| 36 } | 30 } |
| 37 | 31 |
| 38 .layout.horizontal-reverse { | 32 .layout.horizontal-reverse { |
| 39 -ms-flex-direction: row-reverse; | |
| 40 -webkit-flex-direction: row-reverse; | |
| 41 flex-direction: row-reverse; | 33 flex-direction: row-reverse; |
| 42 } | 34 } |
| 43 | 35 |
| 44 .layout.vertical { | 36 .layout.vertical { |
| 45 -ms-flex-direction: column; | |
| 46 -webkit-flex-direction: column; | |
| 47 flex-direction: column; | 37 flex-direction: column; |
| 48 } | 38 } |
| 49 | 39 |
| 50 .layout.vertical-reverse { | 40 .layout.vertical-reverse { |
| 51 -ms-flex-direction: column-reverse; | |
| 52 -webkit-flex-direction: column-reverse; | |
| 53 flex-direction: column-reverse; | 41 flex-direction: column-reverse; |
| 54 } | 42 } |
| 55 | 43 |
| 56 .layout.wrap { | 44 .layout.wrap { |
| 57 -ms-flex-wrap: wrap; | |
| 58 -webkit-flex-wrap: wrap; | |
| 59 flex-wrap: wrap; | 45 flex-wrap: wrap; |
| 60 } | 46 } |
| 61 | 47 |
| 62 .layout.wrap-reverse { | 48 .layout.wrap-reverse { |
| 63 -ms-flex-wrap: wrap-reverse; | |
| 64 -webkit-flex-wrap: wrap-reverse; | |
| 65 flex-wrap: wrap-reverse; | 49 flex-wrap: wrap-reverse; |
| 66 } | 50 } |
| 67 | 51 |
| 68 .flex-auto { | 52 .flex-auto { |
| 69 -ms-flex: 1 1 auto; | |
| 70 -webkit-flex: 1 1 auto; | |
| 71 flex: 1 1 auto; | 53 flex: 1 1 auto; |
| 72 } | 54 } |
| 73 | 55 |
| 74 .flex-none { | 56 .flex-none { |
| 75 -ms-flex: none; | |
| 76 -webkit-flex: none; | |
| 77 flex: none; | 57 flex: none; |
| 78 } | 58 } |
| 79 | 59 |
| 80 .flex, | 60 .flex, |
| 81 .flex-1 { | 61 .flex-1 { |
| 82 -ms-flex: 1; | |
| 83 -webkit-flex: 1; | |
| 84 flex: 1; | 62 flex: 1; |
| 85 } | 63 } |
| 86 | 64 |
| 87 .flex-2 { | 65 .flex-2 { |
| 88 -ms-flex: 2; | |
| 89 -webkit-flex: 2; | |
| 90 flex: 2; | 66 flex: 2; |
| 91 } | 67 } |
| 92 | 68 |
| 93 .flex-3 { | 69 .flex-3 { |
| 94 -ms-flex: 3; | |
| 95 -webkit-flex: 3; | |
| 96 flex: 3; | 70 flex: 3; |
| 97 } | 71 } |
| 98 | 72 |
| 99 .flex-4 { | 73 .flex-4 { |
| 100 -ms-flex: 4; | |
| 101 -webkit-flex: 4; | |
| 102 flex: 4; | 74 flex: 4; |
| 103 } | 75 } |
| 104 | 76 |
| 105 .flex-5 { | 77 .flex-5 { |
| 106 -ms-flex: 5; | |
| 107 -webkit-flex: 5; | |
| 108 flex: 5; | 78 flex: 5; |
| 109 } | 79 } |
| 110 | 80 |
| 111 .flex-6 { | 81 .flex-6 { |
| 112 -ms-flex: 6; | |
| 113 -webkit-flex: 6; | |
| 114 flex: 6; | 82 flex: 6; |
| 115 } | 83 } |
| 116 | 84 |
| 117 .flex-7 { | 85 .flex-7 { |
| 118 -ms-flex: 7; | |
| 119 -webkit-flex: 7; | |
| 120 flex: 7; | 86 flex: 7; |
| 121 } | 87 } |
| 122 | 88 |
| 123 .flex-8 { | 89 .flex-8 { |
| 124 -ms-flex: 8; | |
| 125 -webkit-flex: 8; | |
| 126 flex: 8; | 90 flex: 8; |
| 127 } | 91 } |
| 128 | 92 |
| 129 .flex-9 { | 93 .flex-9 { |
| 130 -ms-flex: 9; | |
| 131 -webkit-flex: 9; | |
| 132 flex: 9; | 94 flex: 9; |
| 133 } | 95 } |
| 134 | 96 |
| 135 .flex-10 { | 97 .flex-10 { |
| 136 -ms-flex: 10; | |
| 137 -webkit-flex: 10; | |
| 138 flex: 10; | 98 flex: 10; |
| 139 } | 99 } |
| 140 | 100 |
| 141 .flex-11 { | 101 .flex-11 { |
| 142 -ms-flex: 11; | |
| 143 -webkit-flex: 11; | |
| 144 flex: 11; | 102 flex: 11; |
| 145 } | 103 } |
| 146 | 104 |
| 147 .flex-12 { | 105 .flex-12 { |
| 148 -ms-flex: 12; | |
| 149 -webkit-flex: 12; | |
| 150 flex: 12; | 106 flex: 12; |
| 151 } | 107 } |
| 152 | 108 |
| 153 /* alignment in cross axis */ | 109 /* alignment in cross axis */ |
| 154 | 110 |
| 155 .layout.start { | 111 .layout.start { |
| 156 -ms-flex-align: start; | |
| 157 -webkit-align-items: flex-start; | |
| 158 align-items: flex-start; | 112 align-items: flex-start; |
| 159 } | 113 } |
| 160 | 114 |
| 161 .layout.center, | 115 .layout.center, |
| 162 .layout.center-center { | 116 .layout.center-center { |
| 163 -ms-flex-align: center; | |
| 164 -webkit-align-items: center; | |
| 165 align-items: center; | 117 align-items: center; |
| 166 } | 118 } |
| 167 | 119 |
| 168 .layout.end { | 120 .layout.end { |
| 169 -ms-flex-align: end; | |
| 170 -webkit-align-items: flex-end; | |
| 171 align-items: flex-end; | 121 align-items: flex-end; |
| 172 } | 122 } |
| 173 | 123 |
| 174 /* alignment in main axis */ | 124 /* alignment in main axis */ |
| 175 | 125 |
| 176 .layout.start-justified { | 126 .layout.start-justified { |
| 177 -ms-flex-pack: start; | |
| 178 -webkit-justify-content: flex-start; | |
| 179 justify-content: flex-start; | 127 justify-content: flex-start; |
| 180 } | 128 } |
| 181 | 129 |
| 182 .layout.center-justified, | 130 .layout.center-justified, |
| 183 .layout.center-center { | 131 .layout.center-center { |
| 184 -ms-flex-pack: center; | |
| 185 -webkit-justify-content: center; | |
| 186 justify-content: center; | 132 justify-content: center; |
| 187 } | 133 } |
| 188 | 134 |
| 189 .layout.end-justified { | 135 .layout.end-justified { |
| 190 -ms-flex-pack: end; | |
| 191 -webkit-justify-content: flex-end; | |
| 192 justify-content: flex-end; | 136 justify-content: flex-end; |
| 193 } | 137 } |
| 194 | 138 |
| 195 .layout.around-justified { | 139 .layout.around-justified { |
| 196 -ms-flex-pack: around; | |
| 197 -webkit-justify-content: space-around; | |
| 198 justify-content: space-around; | 140 justify-content: space-around; |
| 199 } | 141 } |
| 200 | 142 |
| 201 .layout.justified { | 143 .layout.justified { |
| 202 -ms-flex-pack: justify; | |
| 203 -webkit-justify-content: space-between; | |
| 204 justify-content: space-between; | 144 justify-content: space-between; |
| 205 } | 145 } |
| 206 | 146 |
| 207 /* self alignment */ | 147 /* self alignment */ |
| 208 | 148 |
| 209 .self-start { | 149 .self-start { |
| 210 -ms-align-self: flex-start; | |
| 211 -webkit-align-self: flex-start; | |
| 212 align-self: flex-start; | 150 align-self: flex-start; |
| 213 } | 151 } |
| 214 | 152 |
| 215 .self-center { | 153 .self-center { |
| 216 -ms-align-self: center; | |
| 217 -webkit-align-self: center; | |
| 218 align-self: center; | 154 align-self: center; |
| 219 } | 155 } |
| 220 | 156 |
| 221 .self-end { | 157 .self-end { |
| 222 -ms-align-self: flex-end; | |
| 223 -webkit-align-self: flex-end; | |
| 224 align-self: flex-end; | 158 align-self: flex-end; |
| 225 } | 159 } |
| 226 | 160 |
| 227 .self-stretch { | 161 .self-stretch { |
| 228 -ms-align-self: stretch; | |
| 229 -webkit-align-self: stretch; | |
| 230 align-self: stretch; | 162 align-self: stretch; |
| 231 } | 163 } |
| 232 | 164 |
| 233 /******************************* | 165 /******************************* |
| 234 Other Layout | 166 Other Layout |
| 235 *******************************/ | 167 *******************************/ |
| 236 | 168 |
| 237 .block { | 169 .block { |
| 238 display: block; | 170 display: block; |
| 239 } | 171 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 } | 229 } |
| 298 | 230 |
| 299 .fixed-left { | 231 .fixed-left { |
| 300 top: 0; | 232 top: 0; |
| 301 bottom: 0; | 233 bottom: 0; |
| 302 left: 0; | 234 left: 0; |
| 303 } | 235 } |
| 304 | 236 |
| 305 </style> | 237 </style> |
| 306 </head><body><script src="iron-flex-layout-extracted.js"></script></body></html> | 238 </head><body><script src="iron-flex-layout-extracted.js"></script></body></html> |
| OLD | NEW |