| OLD | NEW |
| (Empty) | |
| 1 <!-- |
| 2 @license |
| 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 |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS |
| 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 |
| 9 --> |
| 10 |
| 11 <link rel="import" href="../iron-flex-layout.html"> |
| 12 |
| 13 <dom-module id="x-app"> |
| 14 |
| 15 <style> |
| 16 |
| 17 :host { |
| 18 @apply(--layout-horizontal); |
| 19 @apply(--paper-font-body2); |
| 20 } |
| 21 |
| 22 [nav] { |
| 23 @apply(--layout-vertical); |
| 24 |
| 25 width: 200px; |
| 26 background-color: var(--paper-grey-300); |
| 27 } |
| 28 |
| 29 [item] { |
| 30 @apply(--layout-horizontal); |
| 31 @apply(--layout-center); |
| 32 |
| 33 height: 60px; |
| 34 padding-left: 16px; |
| 35 border-bottom: 1px solid var(--paper-grey-400); |
| 36 } |
| 37 |
| 38 [main] { |
| 39 @apply(--layout-flex); |
| 40 @apply(--layout-vertical); |
| 41 } |
| 42 |
| 43 [header] { |
| 44 @apply(--layout-horizontal); |
| 45 @apply(--layout-center); |
| 46 |
| 47 @apply(--paper-font-subhead); |
| 48 |
| 49 height: 60px; |
| 50 background-color: var(--google-blue-700); |
| 51 padding: 0 16px; |
| 52 color: white; |
| 53 } |
| 54 |
| 55 [tool] { |
| 56 @apply(--layout-inline); |
| 57 } |
| 58 |
| 59 [content] { |
| 60 @apply(--layout-flex); |
| 61 |
| 62 overflow: auto; |
| 63 padding: 0 10px; |
| 64 } |
| 65 |
| 66 [card] { |
| 67 @apply(--layout-vertical); |
| 68 @apply(--layout-center-center); |
| 69 |
| 70 @apply(--shadow-elevation-2dp); |
| 71 |
| 72 height: 300px; |
| 73 max-width: 800px; |
| 74 margin: 16px auto; |
| 75 font-weight: bold; |
| 76 background-color: var(--paper-grey-200); |
| 77 } |
| 78 |
| 79 </style> |
| 80 |
| 81 <template> |
| 82 |
| 83 <div nav> |
| 84 <div content> |
| 85 <div item>ITEM 1</div> |
| 86 <div item>ITEM 2</div> |
| 87 <div item>ITEM 3</div> |
| 88 <div item>ITEM 4</div> |
| 89 <div item>ITEM 5</div> |
| 90 </div> |
| 91 </div> |
| 92 |
| 93 <div main> |
| 94 <div header> |
| 95 <div tool>Foo</div> |
| 96 <div class="flex"></div> |
| 97 <div tool>Bar</div> |
| 98 </div> |
| 99 <div content> |
| 100 <div card>CARD 1</div> |
| 101 <div card>CARD 2</div> |
| 102 <div card>CARD 3</div> |
| 103 <div card>CARD 4</div> |
| 104 <div card>CARD 5</div> |
| 105 </div> |
| 106 </div> |
| 107 |
| 108 </template> |
| 109 |
| 110 </dom-module> |
| 111 <script> |
| 112 |
| 113 Polymer({ |
| 114 is: 'x-app' |
| 115 }); |
| 116 |
| 117 </script> |
| 118 |
| OLD | NEW |