-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaper.html
88 lines (84 loc) · 3.35 KB
/
paper.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Polymer: Material Design — Hongkiat</title>
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="bower_components/iron-icons/iron-icons.html">
<link rel="import" href="bower_components/iron-image/iron-image.html">
<link rel="import" href="bower_components/paper-styles/paper-styles.html">
<link rel="import" href="bower_components/paper-material/paper-material.html">
<link rel="import" href="bower_components/paper-fab/paper-fab.html">
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Lato:300,400,700'>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/monokai.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/pace.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script>
</head>
<body>
<style>
html {
background-color: #fafafa;
}
pre {
white-space: pre;
text-align: left;
font-size: 14px;
}
pre code {
padding: 15px !important;
}
.paper {
width: 320px;
height: 360px;
margin-left: 12px;
margin-right: 12px;
display: inline-block;
float: left;
background-color: #fff;
}
.image {
width: 320px;
height: 197px;
}
.button {
float: right;
right: 20px;
top: -30px;
}
.demo-code {
margin-top: 30px;
}
.demo-content {
padding-bottom: 80px;
}
</style>
<header class="demo-header cf">
<h1>Google Polymer: Paper</h1>
<a href="http://www.hongkiat.com/blog/">Go to the Article</a>
</header>
<div class="demo-content cf">
<div class="demo-paper cf">
<paper-material elevation="1" class="paper">
<iron-image sizing="cover" src="img/berries.jpg" class="image"></iron-image>
<paper-fab icon="favorite" title="heart" tabindex="0" class="button"></paper-fab>
</paper-material>
<paper-material elevation="1" class="paper">
<iron-image sizing="cover" src="img/model.jpg" class="image"></iron-image>
<paper-fab icon="reply" title="heart" tabindex="0" class="green button"></paper-fab>
</paper-material>
</div>
<div class="demo-code">
<pre>
<code><paper-material elevation="1" class="paper">
<iron-image sizing="cover" src="img/berries.jpg" class="image"></iron-image>
<paper-fab icon="favorite" title="heart" tabindex="0" class="button"></paper-fab>
</paper-material>
</code>
</pre>
</div>
</div>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>