Last active
August 29, 2015 14:16
-
-
Save dsvictor94/832bad6cc090bf0714b6 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="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.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"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
top: 0px; | |
left: 0px; | |
} | |
#core_header_panel { | |
width: 100%; | |
height: 100%; | |
position: absolute; | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_toolbar::shadow .toolbar-tools { | |
padding: 0px; | |
} | |
.section { | |
height: 1000px; | |
} | |
#paper_tabs { | |
color: rgb(255, 255, 255); | |
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px; | |
width: 100%; | |
height: 100%; | |
margin: 0px; | |
background-color: rgb(79, 125, 201); | |
} | |
paper-tabs paper-tab::shadow #ink { | |
color: rgb(220, 220, 220); | |
opacity: 0.3; | |
} | |
#div { | |
background: red; | |
} | |
#div1 { | |
background: green; | |
} | |
#div2 { | |
background: blue; | |
} | |
</style> | |
<core-header-panel mode="waterfall-tall" id="core_header_panel"> | |
<core-toolbar id="core_toolbar" class="tall"> | |
<paper-tabs selected="{{ page }}" selectedindex="2" id="paper_tabs" class="pink"> | |
<paper-tab>ITEM ONE</paper-tab> | |
<paper-tab>ITEM TWO</paper-tab> | |
<paper-tab>ITEM THREE</paper-tab> | |
</paper-tabs> | |
</core-toolbar> | |
<core-animated-pages transitions="slide-from-right" selected="{{ page }}"> | |
<div id="div" class="section">oi</div> | |
<div id="div1" class="section">c</div> | |
<div id="div2" class="section" active>bla</div> | |
</core-animated-pages> | |
</core-header-panel> | |
</template> | |
<script> | |
Polymer({ | |
page: 0 | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment