diff options
Diffstat (limited to 'third_party/polymer/v0_8/components/paper-item/paper-item-body.html')
-rw-r--r-- | third_party/polymer/v0_8/components/paper-item/paper-item-body.html | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/third_party/polymer/v0_8/components/paper-item/paper-item-body.html b/third_party/polymer/v0_8/components/paper-item/paper-item-body.html new file mode 100644 index 0000000..a49e4d0 --- /dev/null +++ b/third_party/polymer/v0_8/components/paper-item/paper-item-body.html @@ -0,0 +1,73 @@ +<!-- + @license + Copyright (c) 2015 The Polymer Project Authors. All rights reserved. + This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt + The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt + The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt + Code distributed by Google as part of the polymer project is also + subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +--> + +<link rel="import" href="../polymer/polymer.html"> +<link rel="import" href="../paper-styles/paper-styles.html"> + +<!-- + +@element paper-item-body +--> + +<dom-module id="paper-item-body"> + + <style> + + :host { + --mixin(--layout-vertical); + --mixin(--layout-center-justified); + --mixin(--layout-flex); + } + + :host([two-line]) { + min-height: 72px; + } + + :host([three-line]) { + min-height: 88px; + } + + :host > ::content > * { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + :host > ::content [secondary] { + color: var(--secondary-text-color); + mixin(--paper-font-body1); + + mixin(--paper-item-body-secondary); + } + + + </style> + + <template> + <content></content> + </template> + +</dom-module> + +<script> + +(function() { + + Polymer({ + + is: 'paper-item-body', + + enableCustomStyleProperties: true + + }); + +})(); + +</script> |