forked from dreammmr/paper-fab-menu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
191 lines (166 loc) · 7.55 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html>
<head>
<title><paper-fab-menu> demo page</title>
<script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<script src="https://use.fontawesome.com/dab99c2cd9.js"></script>
<link rel="import" href="../bower_components/paper-styles/typography.html">
<link rel="import" href="../bower_components/paper-material/paper-material.html">
<link rel="import" href="paper-fab-menu.html">
</head>
<body>
<style is="custom-style">
.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;
}
paper-fab-menu[position="vertical"] {
position: absolute;
right: 20px;
bottom: 20px;
}
paper-fab-menu[position="vertical reversed"] {
position: absolute;
right: 20px;
top: 20px;
}
paper-fab-menu[position="horizontal"] {
position: absolute;
right: 185px;
bottom: 20px;
}
paper-fab-menu[position="horizontal reversed"] {
position: absolute;
left: 20px;
bottom: 20px;
}
.code-area pre {
margin: 30px -230px;
}
pre
{
width: 100%;
}
</style>
<div class="paper-font-display1"><paper-fab-menu></div>
<paper-material elevation="2">
<div class="paper-font-button">Vertical mode</div>
<div class="code-area">
<pre>
<paper-fab-menu icon="add" position="vertical">
	<paper-fab-menu-item label="Polymer" icon="polymer" ></paper-fab-menu-item>
	<paper-fab-menu-item label="Favorites" icon="star" ></paper-fab-menu-item>
	<paper-fab-menu-item label="Refresh" icon="refresh" ></paper-fab-menu-item>
</paper-fab-menu>
</pre>
<span class="fa fa-file-excel-o"> </span>
</div>
<paper-fab-menu icon="add" position="vertical">
<paper-fab-menu-item label="Polymer" icon="fa-file-excel-o" color='red'></paper-fab-menu-item>
<paper-fab-menu-item label="Favorites" icon="fa-file-excel-o" ></paper-fab-menu-item>
<paper-fab-menu-item label="Refresh" icon="fa-file-excel-o" ></paper-fab-menu-item>
</paper-fab-menu>
</paper-material>
<paper-material elevation="2">
<div class="paper-font-button">Vertical Reversed mode aSDSAD</div>
<div class="code-area">
<pre>
<paper-fab-menu icon="add" position="vertical reversed">
	<paper-fab-menu-item label="Polymer" icon="polymer" ></paper-fab-menu-item>
	<paper-fab-menu-item label="Favorites" icon="star" ></paper-fab-menu-item>
	<paper-fab-menu-item label="Refresh" icon="refresh" ></paper-fab-menu-item>
</paper-fab-menu>
</pre>
</div>
<paper-fab-menu icon="add" position="vertical reversed">
<paper-fab-menu-item label="Polymer" icon="polymer" ></paper-fab-menu-item>
<paper-fab-menu-item label="Favorites" icon="star" ></paper-fab-menu-item>
<paper-fab-menu-item label="Refresh" icon="refresh" ></paper-fab-menu-item>
</paper-fab-menu>
</paper-material>
<paper-material elevation="2">
<div class="paper-font-button">Horizontal mode</div>
<div class="code-area">
<pre>
<paper-fab-menu color="#2196F3" icon="add" position="horizontal">
	<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Polymer" icon="polymer" ></paper-fab-menu-item>
	<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Favorites" icon="star" ></paper-fab-menu-item>
	<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Refresh" icon="refresh" ></paper-fab-menu-item>
</paper-fab-menu>
</pre>
</div>
<paper-fab-menu color="#2196F3" icon="add" position="horizontal">
<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Polymer" icon="polymer" ></paper-fab-menu-item>
<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Favorites" icon="star" ></paper-fab-menu-item>
<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Refresh" icon="refresh" ></paper-fab-menu-item>
</paper-fab-menu>
</paper-material>
<paper-material elevation="2">
<div class="paper-font-button">Horizontal Reversed mode</div>
<div class="code-area">
<pre>
<paper-fab-menu color="#2196F3" icon="add" position="horizontal reversed">
	<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Polymer" icon="polymer" ></paper-fab-menu-item>
	<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Favorites" icon="star" ></paper-fab-menu-item>
	<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Refresh" icon="refresh" ></paper-fab-menu-item>
</paper-fab-menu>
</pre>
</div>
<paper-fab-menu color="#2196F3" icon="add" position="horizontal reversed">
<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Polymer" icon="polymer" ></paper-fab-menu-item>
<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Favorites" icon="star" ></paper-fab-menu-item>
<paper-fab-menu-item tooltip-position="top" color="#2196F3" label="Refresh" icon="refresh" ></paper-fab-menu-item>
</paper-fab-menu>
</paper-material>
<paper-material elevation="2">
<div class="paper-font-button">With links</div>
<div class="code-area">
<pre>
<paper-fab-menu icon="add" position="vertical">
	<a target="_blank" href="http://spacee.xyz">
		<paper-fab-menu-item label="Polymer" icon="polymer" ></paper-fab-menu-item>
	</a>
	<a target="_blank" href="http://spacee.xyz">
		<paper-fab-menu-item label="Favorites" icon="star" ></paper-fab-menu-item>
	</a>
	<a target="_blank" href="http://spacee.xyz">	
		<paper-fab-menu-item label="Refresh" icon="refresh" ></paper-fab-menu-item>
	</a>
</paper-fab-menu>
</pre>
</div>
<paper-fab-menu icon="add" position="vertical">
<a target="_blank" href="http://spacee.xyz">
<paper-fab-menu-item label="Polymer" icon="polymer" ></paper-fab-menu-item>
</a>
<a target="_blank" href="http://spacee.xyz">
<paper-fab-menu-item label="Favorites" icon="star" ></paper-fab-menu-item>
</a>
<a target="_blank" href="http://spacee.xyz">
<paper-fab-menu-item label="Refresh" icon="refresh" ></paper-fab-menu-item>
</a>
</paper-fab-menu>
</paper-material>
</body>
</html>