| 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 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../paper-styles/paper-styles.html"> | 10 <link rel="import" href="../paper-styles/paper-styles.html"> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 ### Styling | 22 ### Styling |
| 23 | 23 |
| 24 The following mixin is available for styling: | 24 The following mixin is available for styling: |
| 25 | 25 |
| 26 Custom property | Description | Default | 26 Custom property | Description | Default |
| 27 ----------------|-------------|---------- | 27 ----------------|-------------|---------- |
| 28 `--paper-input-char-counter` | Mixin applied to the element | `{}` | 28 `--paper-input-char-counter` | Mixin applied to the element | `{}` |
| 29 --> | 29 --> |
| 30 </head><body><dom-module id="paper-input-char-counter"> | 30 </head><body><dom-module id="paper-input-char-counter"> |
| 31 <template> |
| 31 | 32 |
| 32 <style> | 33 <style> |
| 34 :host { |
| 35 display: inline-block; |
| 36 float: right; |
| 33 | 37 |
| 34 :host { | 38 @apply(--paper-font-caption); |
| 35 display: inline-block; | 39 @apply(--paper-input-char-counter); |
| 36 float: right; | 40 } |
| 37 | 41 </style> |
| 38 @apply(--paper-font-caption); | |
| 39 @apply(--paper-input-char-counter); | |
| 40 } | |
| 41 | |
| 42 </style> | |
| 43 | |
| 44 <template> | |
| 45 | 42 |
| 46 <span>[[_charCounterStr]]</span> | 43 <span>[[_charCounterStr]]</span> |
| 47 | 44 |
| 48 </template> | 45 </template> |
| 49 | |
| 50 </dom-module> | 46 </dom-module> |
| 51 | 47 |
| 52 <script src="paper-input-char-counter-extracted.js"></script></body></html> | 48 <script src="paper-input-char-counter-extracted.js"></script></body></html> |
| OLD | NEW |