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