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 <link rel="import" href="../../polymer/polymer.html"> | 10 <link rel="import" href="../../polymer/polymer.html"> |
11 <link rel="import" href="../iron-fit-behavior.html"> | 11 <link rel="import" href="../iron-fit-behavior.html"> |
12 <link rel="import" href="../../paper-styles/color.html"> | 12 <link rel="import" href="../../paper-styles/color.html"> |
13 <link rel="import" href="../../iron-flex-layout/iron-flex-layout.html"> | |
14 | 13 |
15 <dom-module id="simple-fit"> | 14 <dom-module id="simple-fit"> |
16 | 15 |
17 <style> | 16 <style> |
18 :host { | 17 :host { |
19 @apply(--layout); | |
20 | |
21 background-color: var(--paper-light-blue-500); | 18 background-color: var(--paper-light-blue-500); |
22 color: white; | 19 color: white; |
23 text-align: center; | 20 text-align: center; |
24 | |
25 align-items:center; | |
26 -webkit-align-items: center; | |
27 | |
28 justify-content:center; | |
29 -webkit-justify-content:center; | |
30 } | 21 } |
31 </style> | 22 </style> |
32 | 23 |
33 <template> | 24 <template> |
34 <content></content> | 25 <content></content> |
35 </template> | 26 </template> |
36 | 27 |
37 </dom-module> | 28 </dom-module> |
38 | 29 |
39 <script> | 30 <script> |
40 | 31 |
41 Polymer({ | 32 Polymer({ |
42 | 33 |
43 is: 'simple-fit', | 34 is: 'simple-fit', |
44 | 35 |
45 behaviors: [ | 36 behaviors: [ |
46 Polymer.IronFitBehavior | 37 Polymer.IronFitBehavior |
47 ] | 38 ] |
48 | 39 |
49 }); | 40 }); |
50 | 41 |
51 </script> | 42 </script> |
OLD | NEW |