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://polym
er.github.io/LICENSE.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/CO
NTRIBUTORS.txt |
| 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/P
ATENTS.txt |
| 9 --> |
| 10 |
| 11 <link rel="import" href="../polymer/polymer.html"> |
| 12 <link rel="import" href="../paper-styles/paper-styles.html"> |
| 13 |
| 14 <!-- |
| 15 |
| 16 @element paper-item-body |
| 17 --> |
| 18 |
| 19 <dom-module id="paper-item-body"> |
| 20 |
| 21 <style> |
| 22 |
| 23 :host { |
| 24 --mixin(--layout-vertical); |
| 25 --mixin(--layout-center-justified); |
| 26 --mixin(--layout-flex); |
| 27 } |
| 28 |
| 29 :host([two-line]) { |
| 30 min-height: 72px; |
| 31 } |
| 32 |
| 33 :host([three-line]) { |
| 34 min-height: 88px; |
| 35 } |
| 36 |
| 37 :host > ::content > * { |
| 38 white-space: nowrap; |
| 39 overflow: hidden; |
| 40 text-overflow: ellipsis; |
| 41 } |
| 42 |
| 43 :host > ::content [secondary] { |
| 44 color: var(--secondary-text-color); |
| 45 mixin(--paper-font-body1); |
| 46 |
| 47 mixin(--paper-item-body-secondary); |
| 48 } |
| 49 |
| 50 |
| 51 </style> |
| 52 |
| 53 <template> |
| 54 <content></content> |
| 55 </template> |
| 56 |
| 57 </dom-module> |
| 58 |
| 59 <script> |
| 60 |
| 61 (function() { |
| 62 |
| 63 Polymer({ |
| 64 |
| 65 is: 'paper-item-body', |
| 66 |
| 67 enableCustomStyleProperties: true |
| 68 |
| 69 }); |
| 70 |
| 71 })(); |
| 72 |
| 73 </script> |
OLD | NEW |