-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpolymer-p2r.html
48 lines (42 loc) · 973 Bytes
/
polymer-p2r.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
<link rel="import" href="bower_components/polymer/polymer.html">
<polymer-element name="polymer-p2r">
<template>
<style>
:host {
display:block;
}
:host * {
margin:0;
padding:0;
}
/* Remove for document scrolling */
:host #scroller {
height:100%;
width:100%;
display:block;
overflow-y:scroll;
-webkit-overflow-scrolling: touch;
}
:host #scrollcontent {
position: relative;
width: 100%;
top: -800px;
margin-bottom:-800px;
}
:host #p2r {
position: relative;
z-index:-1;
}
</style>
<!-- Remove "scroller" for document scrolling -->
<div id="scroller">
<div id="p2r">
<content select=".p2rheader"></content>
</div>
<div id="scrollcontent">
<content select=".content"></content>
</div>
</div>
</template>
<script src="polymer-p2r.js"></script>
</polymer-element>