Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: polymer_1.2.3/bower_components/paper-item/paper-icon-item.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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://polymer.g ithub.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/CONTRI BUTORS.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/PATEN TS.txt
9 -->
10
11 <link rel="import" href="../polymer/polymer.html">
12 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
13 <link rel="import" href="../paper-styles/typography.html">
14 <link rel="import" href="paper-item-behavior.html">
15 <link rel="import" href="paper-item-shared-styles.html">
16
17 <!--
18 `<paper-icon-item>` is a convenience element to make an item with icon. It is an interactive list
19 item with a fixed-width icon area, according to Material Design. This is useful if the icons are of
20 varying widths, but you want the item bodies to line up. Use this like a `<paper -item>`. The child
21 node with the attribute `item-icon` is placed in the icon area.
22
23 <paper-icon-item>
24 <iron-icon icon="favorite" item-icon></iron-icon>
25 Favorite
26 </paper-icon-item>
27 <paper-icon-item>
28 <div class="avatar" item-icon></div>
29 Avatar
30 </paper-icon-item>
31
32 ### Styling
33
34 The following custom properties and mixins are available for styling:
35
36 Custom property | Description | Default
37 ------------------------------|------------------------------------------------| ----------
38 `--paper-item-icon-width` | Width of the icon area | `56px`
39 `--paper-icon-item` | Mixin applied to the item | `{}`
40 `--paper-item-selected-weight`| The font weight of a selected item | `bold`
41 `--paper-item-selected` | Mixin applied to selected paper-items | `{}`
42 `--paper-item-disabled-color` | The color for disabled paper-items | `--disabled-text-color`
43 `--paper-item-disabled` | Mixin applied to disabled paper-items | ` {}`
44 `--paper-item-focused` | Mixin applied to focused paper-items | ` {}`
45 `--paper-item-focused-before` | Mixin applied to :before focused paper-items | ` {}`
46 -->
47
48 <dom-module id="paper-icon-item">
49 <template>
50 <style include="paper-item-shared-styles"></style>
51 <style>
52 :host {
53 @apply(--layout-horizontal);
54 @apply(--layout-center);
55 @apply(--paper-font-subhead);
56
57 @apply(--paper-item);
58 @apply(--paper-icon-item);
59 }
60
61 .content-icon {
62 @apply(--layout-horizontal);
63 @apply(--layout-center);
64
65 width: var(--paper-item-icon-width, 56px);
66 }
67 </style>
68
69 <div id="contentIcon" class="content-icon">
70 <content select="[item-icon]"></content>
71 </div>
72 <content></content>
73 </template>
74
75 <script>
76 Polymer({
77 is: 'paper-icon-item',
78
79 behaviors: [
80 Polymer.PaperItemBehavior
81 ]
82 });
83 </script>
84 </dom-module>
OLDNEW
« no previous file with comments | « polymer_1.2.3/bower_components/paper-item/index.html ('k') | polymer_1.2.3/bower_components/paper-item/paper-item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698