Last active
August 29, 2015 14:18
-
-
Save rileycrane/8f4199738c21728e60f6 to your computer and use it in GitHub Desktop.
designer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
top: 0px; | |
left: 0px; | |
} | |
#section { | |
box-sizing: border-box; | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_animated_pages { | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
background-color: rgb(238, 238, 238); | |
} | |
#paper_item { | |
left: 0px; | |
top: -64px; | |
position: absolute; | |
display: block; | |
background-color: rgb(255, 132, 113); | |
} | |
</style> | |
<core-header-panel mode="standard" id="core_header_panel"> | |
<core-toolbar id="core_toolbar"> | |
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button> | |
<div id="div">Header</div> | |
</core-toolbar> | |
<section id="section"> | |
<core-animated-pages selectedindex="0" notap id="core_animated_pages"> | |
<template repeat="{{item in items}}"> | |
<paper-item style="background:{{item.color}}" id="paper_item" icon="settings" label="Item">xyz</paper-item> | |
</template> | |
</core-animated-pages> | |
</section> | |
</core-header-panel> | |
</template> | |
<script> | |
Polymer({ | |
items: [ | |
{ | |
"name": "a", "color":"green" | |
}, | |
{ | |
"name": "b", "color":"red" | |
} | |
] | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment