-
Notifications
You must be signed in to change notification settings - Fork 17
/
session-detail.html
87 lines (82 loc) · 2.12 KB
/
session-detail.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
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="bower_components/core-icon-button/core-icon-button.html">
<link rel="import" href="bower_components/core-overlay/core-overlay.html">
<polymer-element name="session-detail">
<template>
<style>
:host {
/*box-sizing: border-box;*/
/*-moz-box-sizing: border-box;*/
/*border-radius: 3px;*/
font-size: 13px;
overflow: hidden;
background: white;
width: 100%;
max-width: 500px;
/*padding:30px 42px;*/
/*outline: 1px solid rgba(0,0,0,0.2);*/
/*box-shadow: 0 4px 16px rgba(0,0,0,0.2);*/
}
polyfill-next-selector { content: 'img'; }
::content img {
width: 80px;
height: 80px;
border-radius: 50%;
}
polyfill-next-selector { content: '.title'; }
::content .title {
color : white;
}
polyfill-next-selector { content: '.speaker'; }
::content .speaker {
font-weight: 600;
font-size: 14px;
}
polyfill-next-selector { content: 'h2'; }
::content h2 {
margin: 0px;
padding: 40px 20px 20px 20px;
}
.detailcontent {
padding-left: 15px;
padding-right: 15px;
padding-bottom: 15px;
}
.sp_container {
padding-left: 15px;
}
core-icon-button {
position: absolute;
top: 3px;
right: 3px;
}
</style>
<core-icon-button icon="close" on-tap="{{close}}"></core-icon-button>
<content select="h2"></content>
<div class="detailcontent">
<content select="p"></content>
<hr>
<div horizontal layout center>
<div><content select="img"></content></div>
<div flex class="sp_container">
<div><content select=".speaker"></content></div>
<div><content select=".speakerdesc"></content></div>
</div>
</div>
</div>
<core-overlay id="overlay" backdrop layered></core-overlay>
</template>
<script>
Polymer('session-detail', {
ready: function() {
this.$.overlay.target = this;
},
toggle: function() {
this.$.overlay.toggle();
},
close: function() {
this.$.overlay.close();
}
});
</script>
</polymer-element>