1<!-- 2@license 3Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 4This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 5The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 6The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 7Code distributed by Google as part of the polymer project is also 8subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 9--> 10 11<link rel="import" href="iron-shadow-flex-layout.html"> 12 13<script> 14 console.warn('This file is deprecated. Please use `iron-flex-layout/iron-flex-layout-classes.html`, and one of the specific dom-modules instead'); 15</script> 16 17<style> 18 19 /******************************* 20 Flex Layout 21 *******************************/ 22 23 .layout.horizontal, 24 .layout.horizontal-reverse, 25 .layout.vertical, 26 .layout.vertical-reverse { 27 display: -ms-flexbox; 28 display: -webkit-flex; 29 display: flex; 30 } 31 32 .layout.inline { 33 display: -ms-inline-flexbox; 34 display: -webkit-inline-flex; 35 display: inline-flex; 36 } 37 38 .layout.horizontal { 39 -ms-flex-direction: row; 40 -webkit-flex-direction: row; 41 flex-direction: row; 42 } 43 44 .layout.horizontal-reverse { 45 -ms-flex-direction: row-reverse; 46 -webkit-flex-direction: row-reverse; 47 flex-direction: row-reverse; 48 } 49 50 .layout.vertical { 51 -ms-flex-direction: column; 52 -webkit-flex-direction: column; 53 flex-direction: column; 54 } 55 56 .layout.vertical-reverse { 57 -ms-flex-direction: column-reverse; 58 -webkit-flex-direction: column-reverse; 59 flex-direction: column-reverse; 60 } 61 62 .layout.wrap { 63 -ms-flex-wrap: wrap; 64 -webkit-flex-wrap: wrap; 65 flex-wrap: wrap; 66 } 67 68 .layout.no-wrap { 69 -ms-flex-wrap: nowrap; 70 -webkit-flex-wrap: nowrap; 71 flex-wrap: nowrap; 72 } 73 74 .layout.wrap-reverse { 75 -ms-flex-wrap: wrap-reverse; 76 -webkit-flex-wrap: wrap-reverse; 77 flex-wrap: wrap-reverse; 78 } 79 80 .flex-auto { 81 -ms-flex: 1 1 auto; 82 -webkit-flex: 1 1 auto; 83 flex: 1 1 auto; 84 } 85 86 .flex-none { 87 -ms-flex: none; 88 -webkit-flex: none; 89 flex: none; 90 } 91 92 .flex, 93 .flex-1 { 94 -ms-flex: 1; 95 -webkit-flex: 1; 96 flex: 1; 97 } 98 99 .flex-2 { 100 -ms-flex: 2; 101 -webkit-flex: 2; 102 flex: 2; 103 } 104 105 .flex-3 { 106 -ms-flex: 3; 107 -webkit-flex: 3; 108 flex: 3; 109 } 110 111 .flex-4 { 112 -ms-flex: 4; 113 -webkit-flex: 4; 114 flex: 4; 115 } 116 117 .flex-5 { 118 -ms-flex: 5; 119 -webkit-flex: 5; 120 flex: 5; 121 } 122 123 .flex-6 { 124 -ms-flex: 6; 125 -webkit-flex: 6; 126 flex: 6; 127 } 128 129 .flex-7 { 130 -ms-flex: 7; 131 -webkit-flex: 7; 132 flex: 7; 133 } 134 135 .flex-8 { 136 -ms-flex: 8; 137 -webkit-flex: 8; 138 flex: 8; 139 } 140 141 .flex-9 { 142 -ms-flex: 9; 143 -webkit-flex: 9; 144 flex: 9; 145 } 146 147 .flex-10 { 148 -ms-flex: 10; 149 -webkit-flex: 10; 150 flex: 10; 151 } 152 153 .flex-11 { 154 -ms-flex: 11; 155 -webkit-flex: 11; 156 flex: 11; 157 } 158 159 .flex-12 { 160 -ms-flex: 12; 161 -webkit-flex: 12; 162 flex: 12; 163 } 164 165 /* alignment in cross axis */ 166 167 .layout.start { 168 -ms-flex-align: start; 169 -webkit-align-items: flex-start; 170 align-items: flex-start; 171 } 172 173 .layout.center, 174 .layout.center-center { 175 -ms-flex-align: center; 176 -webkit-align-items: center; 177 align-items: center; 178 } 179 180 .layout.end { 181 -ms-flex-align: end; 182 -webkit-align-items: flex-end; 183 align-items: flex-end; 184 } 185 186 /* alignment in main axis */ 187 188 .layout.start-justified { 189 -ms-flex-pack: start; 190 -webkit-justify-content: flex-start; 191 justify-content: flex-start; 192 } 193 194 .layout.center-justified, 195 .layout.center-center { 196 -ms-flex-pack: center; 197 -webkit-justify-content: center; 198 justify-content: center; 199 } 200 201 .layout.end-justified { 202 -ms-flex-pack: end; 203 -webkit-justify-content: flex-end; 204 justify-content: flex-end; 205 } 206 207 .layout.around-justified { 208 -ms-flex-pack: around; 209 -webkit-justify-content: space-around; 210 justify-content: space-around; 211 } 212 213 .layout.justified { 214 -ms-flex-pack: justify; 215 -webkit-justify-content: space-between; 216 justify-content: space-between; 217 } 218 219 /* self alignment */ 220 221 .self-start { 222 -ms-align-self: flex-start; 223 -webkit-align-self: flex-start; 224 align-self: flex-start; 225 } 226 227 .self-center { 228 -ms-align-self: center; 229 -webkit-align-self: center; 230 align-self: center; 231 } 232 233 .self-end { 234 -ms-align-self: flex-end; 235 -webkit-align-self: flex-end; 236 align-self: flex-end; 237 } 238 239 .self-stretch { 240 -ms-align-self: stretch; 241 -webkit-align-self: stretch; 242 align-self: stretch; 243 } 244 245 /******************************* 246 Other Layout 247 *******************************/ 248 249 .block { 250 display: block; 251 } 252 253 /* IE 10 support for HTML5 hidden attr */ 254 [hidden] { 255 display: none !important; 256 } 257 258 .invisible { 259 visibility: hidden !important; 260 } 261 262 .relative { 263 position: relative; 264 } 265 266 .fit { 267 position: absolute; 268 top: 0; 269 right: 0; 270 bottom: 0; 271 left: 0; 272 } 273 274 body.fullbleed { 275 margin: 0; 276 height: 100vh; 277 } 278 279 .scroll { 280 -webkit-overflow-scrolling: touch; 281 overflow: auto; 282 } 283 284 /* fixed position */ 285 286 .fixed-bottom, 287 .fixed-left, 288 .fixed-right, 289 .fixed-top { 290 position: fixed; 291 } 292 293 .fixed-top { 294 top: 0; 295 left: 0; 296 right: 0; 297 } 298 299 .fixed-right { 300 top: 0; 301 right: 0; 302 bottom: 0; 303 } 304 305 .fixed-bottom { 306 right: 0; 307 bottom: 0; 308 left: 0; 309 } 310 311 .fixed-left { 312 top: 0; 313 bottom: 0; 314 left: 0; 315 } 316 317</style> 318