-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
116 lines (101 loc) · 3.7 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<title><paper-accordion> demo page</title>
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../font-roboto/roboto.html">
<link rel="import" href="../paper-styles/typography.html">
<link rel="import" href="../paper-material/paper-material.html">
<link rel="import" href="paper-accordion.html">
</head>
<body>
<style is="custom-style">
body {
font-family: Roboto;
}
.paper-font-display1 {
font-weight: 300 !important;
color: teal;
margin: 20px;
@apply(--paper-font-display1);
}
.paper-font-headline {
@apply(--paper-font-headline);
}
.paper-font-title {
@apply(--paper-font-title);
}
.paper-font-subhead {
@apply(--paper-font-subhead);
}
.paper-font-button {
@apply(--paper-font-button);
color: teal;
}
paper-material {
min-height: 300px;
position: relative;
padding: 10px;
margin: 10px 0;
}
.code-area pre {
margin: 30px -230px;
}
pre {
width: 100%;
}
</style>
<div class="paper-font-display1"><paper-accordion></div>
<paper-material elevation="2">
<div class="paper-font-button">Close others, Icons right, with SubTitles</div>
<paper-accordion close-others="true">
<paper-accordion-item title="Armenian" icon-position="right" sub-title="Republic of Armenia">
No ... not the Kim Kardashians.
</paper-accordion-item>
<paper-accordion-item title="American" icon-position="right" sub-title="USA">
Yeah ... the Kardashians.
</paper-accordion-item>
<paper-accordion-item title="British" icon-position="right" sub-title="UK">
Do you know Mr. Bean?
</paper-accordion-item>
<paper-accordion-item title="German" icon-position="right" sub-title="Deutschland">
And no ... not the Hitler.
</paper-accordion-item>
</paper-accordion>
</paper-material>
<paper-material elevation="2">
<div class="paper-font-button">Icons left, with SubTitles</div>
<paper-accordion>
<paper-accordion-item title="Addy Osmani" icon="add" icon-position="left" sub-title="@polymer">
The first.
</paper-accordion-item>
<paper-accordion-item title="Rob Dodson" icon="add" icon-position="left" sub-title="@polymer">
The second.
</paper-accordion-item>
<paper-accordion-item title="Paul Irish" icon="add" icon-position="left" sub-title="@chrome">
The third.
</paper-accordion-item>
<paper-accordion-item title="Rouben Meschian" icon="add" icon-position="left" sub-title="@cambridesemantics">
The fourth.
</paper-accordion-item>
</paper-accordion>
</paper-material>
<paper-material elevation="2">
<div class="paper-font-button">Icons right, without SubTitles</div>
<paper-accordion>
<paper-accordion-item title="Addy Osmani" icon="add" icon-position="right">
@polymer
</paper-accordion-item>
<paper-accordion-item title="Rob Dodson" icon="add" icon-position="right">
@polymer
</paper-accordion-item>
<paper-accordion-item title="Paul Irish" icon="add" icon-position="right">
@chrome
</paper-accordion-item>
<paper-accordion-item title="Rouben Meschian" icon="add" icon-position="right">
@cambridgesemantics
</paper-accordion-item>
</paper-accordion>
</paper-material>
</body>
</html>