| 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 11 matching lines...) Expand all Loading... |
| 22 ### Styling | 22 ### Styling |
| 23 | 23 |
| 24 The following custom properties and mixins are available for styling: | 24 The following custom properties and mixins are available for styling: |
| 25 | 25 |
| 26 Custom property | Description | Default | 26 Custom property | Description | Default |
| 27 ----------------|-------------|---------- | 27 ----------------|-------------|---------- |
| 28 `--paper-input-container-invalid-color` | The foreground color of the error | `-
-google-red-500` | 28 `--paper-input-container-invalid-color` | The foreground color of the error | `-
-google-red-500` |
| 29 `--paper-input-error` | Mixin applied to the error | `{
}` | 29 `--paper-input-error` | Mixin applied to the error | `{
}` |
| 30 --> | 30 --> |
| 31 </head><body><dom-module id="paper-input-error"> | 31 </head><body><dom-module id="paper-input-error"> |
| 32 <template> |
| 32 | 33 |
| 33 <style> | 34 <style> |
| 35 :host { |
| 36 display: inline-block; |
| 37 visibility: hidden; |
| 38 float: left; |
| 34 | 39 |
| 35 :host { | 40 color: var(--paper-input-container-invalid-color, --google-red-500); |
| 36 display: inline-block; | |
| 37 visibility: hidden; | |
| 38 float: left; | |
| 39 | 41 |
| 40 color: var(--paper-input-container-invalid-color, --google-red-500); | 42 @apply(--paper-font-caption); |
| 43 @apply(--paper-input-error); |
| 44 } |
| 41 | 45 |
| 42 @apply(--paper-font-caption); | 46 :host([invalid]) { |
| 43 @apply(--paper-input-error); | 47 visibility: visible; |
| 44 } | 48 }; |
| 45 | 49 </style> |
| 46 :host([invalid]) { | |
| 47 visibility: visible; | |
| 48 }; | |
| 49 | |
| 50 </style> | |
| 51 | |
| 52 <template> | |
| 53 | 50 |
| 54 <content></content> | 51 <content></content> |
| 55 | 52 |
| 56 </template> | 53 </template> |
| 57 | |
| 58 </dom-module> | 54 </dom-module> |
| 59 | 55 |
| 60 <script src="paper-input-error-extracted.js"></script></body></html> | 56 <script src="paper-input-error-extracted.js"></script></body></html> |
| OLD | NEW |