Skip to content

Instantly share code, notes, and snippets.

@hinogi
Created July 10, 2014 05:47
Show Gist options
  • Save hinogi/5144391bcdc38ffe20f8 to your computer and use it in GitHub Desktop.
Save hinogi/5144391bcdc38ffe20f8 to your computer and use it in GitHub Desktop.
designer
<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="../paper-input/paper-input.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#paper_tabs {
width: 100%;
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
left: 0px;
top: 0px;
position: absolute;
background-color: rgb(0, 188, 212);
}
#core_animated_pages {
width: 100%;
height: 100%;
overflow: hidden;
left: 0px;
top: 50px;
position: absolute;
background-color: rgb(238, 238, 238);
}
#core_card1 {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#core_card2 {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#core_card3 {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#core_card4 {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#section5 {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_card {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
</style>
<core-animated-pages transitions="cross-fade-all" selected="{{ page }}" selectedindex="{{ page }}" notap id="core_animated_pages" class="slide-up slide-down">
<section id="section1" layout horizontal center center-justified>
<core-card id="core_card1" layout vertical>
<h2 id="h21">Card1</h2>
<paper-input label="Type something..." id="paper_input"></paper-input>
</core-card>
</section>
<section id="section2" layout horizontal center center-justified>
<core-card id="core_card2" layout vertical>
<h2 id="h22">Card2</h2>
<paper-input label="Type something..." id="paper_input1"></paper-input>
</core-card>
</section>
<section id="section3" layout horizontal center center-justified active>
<core-card id="core_card3" layout vertical>
<h2 id="h23">Card3</h2>
<paper-input label="Type something..." id="paper_input2"></paper-input>
</core-card>
</section>
<section id="section4" layout horizontal center center-justified>
<core-card id="core_card4" layout vertical>
<h2 id="h24">Card4</h2>
<paper-input label="Type something..." id="paper_input3"></paper-input>
</core-card>
</section>
<section id="section5" layout horizontal center center-justified>
<core-card id="core_card" layout vertical>
<h2 id="h25">Card5</h2>
<paper-input label="Type something..." id="paper_input4"></paper-input>
</core-card>
</section>
</core-animated-pages>
<paper-tabs selected="{{ page }}" selectedindex="{{ page }}" id="paper_tabs" flex>
<paper-tab id="paper_tab1">ITEM ONE</paper-tab>
<paper-tab id="paper_tab2">ITEM TWO</paper-tab>
<paper-tab id="paper_tab3" active>ITEM THREE</paper-tab>
<paper-tab id="paper_tab4">ITEM FOUR</paper-tab>
<paper-tab id="paper_tab5">ITEM FIVE</paper-tab>
</paper-tabs>
</template>
<script>
Polymer('my-element', {
page: 2
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment