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 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../paper-styles/paper-styles.html"> |
| 11 |
| 12 <!-- |
| 13 |
| 14 @element paper-item-body |
| 15 --> |
| 16 |
| 17 </head><body><dom-module id="paper-item-body"> |
| 18 |
| 19 <style> |
| 20 |
| 21 :host { |
| 22 --mixin(--layout-vertical); |
| 23 --mixin(--layout-center-justified); |
| 24 --mixin(--layout-flex); |
| 25 } |
| 26 |
| 27 :host([two-line]) { |
| 28 min-height: 72px; |
| 29 } |
| 30 |
| 31 :host([three-line]) { |
| 32 min-height: 88px; |
| 33 } |
| 34 |
| 35 :host > ::content > * { |
| 36 white-space: nowrap; |
| 37 overflow: hidden; |
| 38 text-overflow: ellipsis; |
| 39 } |
| 40 |
| 41 :host > ::content [secondary] { |
| 42 color: var(--secondary-text-color); |
| 43 mixin(--paper-font-body1); |
| 44 |
| 45 mixin(--paper-item-body-secondary); |
| 46 } |
| 47 |
| 48 |
| 49 </style> |
| 50 |
| 51 <template> |
| 52 <content></content> |
| 53 </template> |
| 54 |
| 55 </dom-module> |
| 56 |
| 57 <script src="paper-item-body-extracted.js"></script></body></html> |
OLD | NEW |