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="../iron-behaviors/iron-control-state.html"> | 10 <link rel="import" href="../iron-behaviors/iron-control-state.html"> |
(...skipping 13 matching lines...) Expand all Loading... |
24 </paper-icon-item> | 24 </paper-icon-item> |
25 <paper-icon-item> | 25 <paper-icon-item> |
26 <div class="avatar" item-icon></div> | 26 <div class="avatar" item-icon></div> |
27 Avatar | 27 Avatar |
28 </paper-icon-item> | 28 </paper-icon-item> |
29 | 29 |
30 ### Styling | 30 ### Styling |
31 | 31 |
32 The following custom properties and mixins are available for styling: | 32 The following custom properties and mixins are available for styling: |
33 | 33 |
34 Custom property | Description | Default | 34 Custom property | Description |
Default |
35 ----------------|-------------|---------- | 35 ------------------------------|------------------------------------------------|
---------- |
36 `--paper-item-icon-width` | Width of the icon area | `56px` | 36 `--paper-item-icon-width` | Width of the icon area |
`56px` |
37 `--paper-icon-item` | Mixin applied to the item | `{}` | 37 `--paper-icon-item` | Mixin applied to the item |
`{}` |
| 38 `--paper-item-selected-weight`| The font weight of a selected item |
`bold` |
| 39 `--paper-item-selected` | Mixin applied to selected paper-items
| `{}` |
| 40 `--paper-item-disabled-color` | The color for disabled paper-items |
`--disabled-text-color` |
| 41 `--paper-item-disabled` | Mixin applied to disabled paper-items | `
{}` |
| 42 `--paper-item-focused` | Mixin applied to focused paper-items | `
{}` |
| 43 `--paper-item-focused-before` | Mixin applied to :before focused paper-items | `
{}` |
38 | 44 |
39 --> | 45 --> |
40 | 46 |
41 </head><body><dom-module id="paper-icon-item"> | 47 </head><body><dom-module id="paper-icon-item"> |
42 <template> | 48 <template> |
43 <style include="paper-item-shared-styles"></style> | 49 <style include="paper-item-shared-styles"></style> |
44 <style> | 50 <style> |
45 :host { | 51 :host { |
46 @apply(--layout-horizontal); | 52 @apply(--layout-horizontal); |
47 @apply(--layout-center); | 53 @apply(--layout-center); |
48 @apply(--paper-font-subhead); | 54 @apply(--paper-font-subhead); |
49 | 55 |
50 @apply(--paper-item); | 56 @apply(--paper-item); |
51 @apply(--paper-icon-item); | 57 @apply(--paper-icon-item); |
52 } | 58 } |
53 | 59 |
54 .content-icon { | 60 .content-icon { |
55 width: var(--paper-item-icon-width, 56px); | 61 width: var(--paper-item-icon-width, 56px); |
56 } | 62 } |
57 </style> | 63 </style> |
58 | 64 |
59 <div id="contentIcon" class="content-icon layout horizontal center"> | 65 <div id="contentIcon" class="content-icon layout horizontal center"> |
60 <content select="[item-icon]"></content> | 66 <content select="[item-icon]"></content> |
61 </div> | 67 </div> |
62 <content></content> | 68 <content></content> |
63 </template> | 69 </template> |
64 | 70 |
65 </dom-module> | 71 </dom-module> |
66 <script src="paper-icon-item-extracted.js"></script></body></html> | 72 <script src="paper-icon-item-extracted.js"></script></body></html> |
OLD | NEW |