73bcce88
luigser
COMPONENTS
|
1
2
3
4
5
6
7
8
9
10
11
|
<!--
@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
-->
<!doctype html>
|
a53fbbed
Renato De Donato
select-dataset ne...
|
12
|
<html id="html">
|
73bcce88
luigser
COMPONENTS
|
13
14
|
<head>
|
a53fbbed
Renato De Donato
select-dataset ne...
|
15
|
<title>iron-list demo</title>
|
73bcce88
luigser
COMPONENTS
|
16
17
|
<meta charset="utf-8">
|
a53fbbed
Renato De Donato
select-dataset ne...
|
18
|
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=no">
|
73bcce88
luigser
COMPONENTS
|
19
20
21
22
23
24
|
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../polymer/polymer.html">
|
73bcce88
luigser
COMPONENTS
|
25
|
<link rel="import" href="../../iron-flex-layout/iron-flex-layout.html">
|
a53fbbed
Renato De Donato
select-dataset ne...
|
26
27
28
|
<link rel="import" href="../../app-layout/app-header/app-header.html">
<link rel="import" href="../../app-layout/app-toolbar/app-toolbar.html">
<link rel="import" href="../../app-layout/app-scroll-effects/app-scroll-effects.html">
|
73bcce88
luigser
COMPONENTS
|
29
30
31
|
<link rel="import" href="../../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../../iron-ajax/iron-ajax.html">
<link rel="import" href="../../iron-icons/iron-icons.html">
|
a53fbbed
Renato De Donato
select-dataset ne...
|
32
|
<link rel="import" href="../../iron-image/iron-image.html">
|
73bcce88
luigser
COMPONENTS
|
33
34
35
|
<link rel="import" href="../iron-list.html">
<style is="custom-style">
|
a53fbbed
Renato De Donato
select-dataset ne...
|
36
37
38
39
40
|
body {
@apply(--layout-fullbleed);
font-family: 'Roboto', 'Noto', sans-serif;
background-color: #eee;
}
|
73bcce88
luigser
COMPONENTS
|
41
|
|
a53fbbed
Renato De Donato
select-dataset ne...
|
42
43
44
45
46
47
48
49
50
51
52
|
app-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1;
background-color: #0b8043;
color: white;
--app-header-background-front-layer: {
background-color: #4285f4;
};
|
73bcce88
luigser
COMPONENTS
|
53
54
|
}
|
a53fbbed
Renato De Donato
select-dataset ne...
|
55
56
57
|
app-header paper-icon-button {
--paper-icon-button-ink-color: white;
}
|
73bcce88
luigser
COMPONENTS
|
58
|
|
a53fbbed
Renato De Donato
select-dataset ne...
|
59
60
61
|
[title] {
font-weight: 400;
margin: 0 0 0 50px;
|
73bcce88
luigser
COMPONENTS
|
62
63
|
}
|
a53fbbed
Renato De Donato
select-dataset ne...
|
64
65
66
67
68
69
70
71
72
73
74
75
|
[condensed-title] {
font-weight: 400;
margin-left: 30px;
}
[condensed-title] i {
font-style: normal;
font-weight: 100;
}
app-toolbar.tall {
height: 148px;
|
e619a3b0
Luigi Serra
Controllet cross ...
|
76
77
|
}
|
73bcce88
luigser
COMPONENTS
|
78
|
iron-list {
|
a53fbbed
Renato De Donato
select-dataset ne...
|
79
80
|
padding-top: 148px;
margin-top: 64px;
|
73bcce88
luigser
COMPONENTS
|
81
82
83
84
85
|
padding-bottom: 16px;
}
.item {
@apply(--layout-horizontal);
|
73bcce88
luigser
COMPONENTS
|
86
|
padding: 20px;
|
73bcce88
luigser
COMPONENTS
|
87
88
89
|
border-radius: 8px;
background-color: white;
border: 1px solid #ddd;
|
a53fbbed
Renato De Donato
select-dataset ne...
|
90
91
|
max-width: 800px;
margin: 16px auto 0 auto;
|
73bcce88
luigser
COMPONENTS
|
92
93
|
}
|
e619a3b0
Luigi Serra
Controllet cross ...
|
94
95
|
.item:focus {
outline: 0;
|
a53fbbed
Renato De Donato
select-dataset ne...
|
96
|
border-color: #333;
|
e619a3b0
Luigi Serra
Controllet cross ...
|
97
98
|
}
|
73bcce88
luigser
COMPONENTS
|
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
.avatar {
height: 40px;
width: 40px;
border-radius: 20px;
box-sizing: border-box;
background-color: #DDD;
}
.pad {
padding: 0 16px;
@apply(--layout-flex);
@apply(--layout-vertical);
}
.primary {
font-size: 16px;
font-weight: bold;
}
.secondary {
font-size: 14px;
}
.dim {
color: gray;
}
|
a53fbbed
Renato De Donato
select-dataset ne...
|
126
127
128
129
|
.spacer {
@apply(--layout-flex);
}
|
73bcce88
luigser
COMPONENTS
|
130
131
132
133
134
135
136
137
|
</style>
</head>
<body unresolved>
<template is="dom-bind">
<iron-ajax url="data/contacts.json" last-response="{{data}}" auto></iron-ajax>
|
a53fbbed
Renato De Donato
select-dataset ne...
|
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
<app-header condenses fixed effects="resize-title blend-background waterfall">
<app-toolbar>
<paper-icon-button icon="menu" drawer-toggle></paper-icon-button>
<h4 condensed-title>iron-list <i>— Demo</i></h4>
<paper-icon-button icon="search"></paper-icon-button>
<paper-icon-button icon="more-vert"></paper-icon-button>
</app-toolbar>
<app-toolbar class="tall">
<h1 title>iron-list</h1>
</app-toolbar>
</app-header>
<!-- iron-list using the document scroll -->
<iron-list items="[[data]]" as="item" scroll-target="html">
|
73bcce88
luigser
COMPONENTS
|
152
153
|
<template>
<div>
|
a53fbbed
Renato De Donato
select-dataset ne...
|
154
155
|
<div class="item" tabindex$="[[tabIndex]]">
<iron-image class="avatar" sizing="contain" src="[[item.image]]"></iron-image>
|
73bcce88
luigser
COMPONENTS
|
156
|
<div class="pad">
|
a53fbbed
Renato De Donato
select-dataset ne...
|
157
|
<div class="primary">[[item.name]] [[index]]</div>
|
73bcce88
luigser
COMPONENTS
|
158
159
160
|
<div class="secondary">[[item.shortText]]</div>
<div class="secondary dim">[[item.longText]]</div>
</div>
|
73bcce88
luigser
COMPONENTS
|
161
162
163
164
|
</div>
</div>
</template>
</iron-list>
|
73bcce88
luigser
COMPONENTS
|
165
|
|
a53fbbed
Renato De Donato
select-dataset ne...
|
166
|
</template>
|
73bcce88
luigser
COMPONENTS
|
167
|
|
73bcce88
luigser
COMPONENTS
|
168
169
|
</body>
</html>
|