-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-card.html
56 lines (50 loc) · 1.36 KB
/
post-card.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
<link rel="import" href="/components/polymer/polymer.html">
<link rel="import" href="/components/core-icon-button/core-icon-button.html">
<polymer-element name="post-card">
<template>
<style>
:host {
display: block;
position: relative;
background-color: white;
padding: 20px;
width: 100%;
font-size: 1.2rem;
font-weight: 300;
}
.card-header {
margin-bottom: 10px;
}
polyfill-next-selector { content: '.card-header h3'; }
.card-header ::content h3 {
font-size: 1.4rem;
font-weight: 500;
margin: 0px;
}
polyfill-next-selector { content: '.card-header h2'; }
.card-header ::content h2 {
font-size: 1.8rem;
font-weight: 300;
margin: 0px;
}
polyfill-next-selector { content: '.card-header img'; }
.card-header ::content img {
width: 70px;
border-radius: 50%;
margin: 10px;
}
</style>
<!-- CARD CONTENTS GO HERE -->
<div class="card-header" layout horizontal center>
<content select="img"></content>
<div vertical>
<div><content select="h2"></content></div>
<div><content select="h3"></content></div>
</div>
</div>
<content></content>
</template>
<script>
Polymer({});
</script>
</polymer-element>