Skip to content

Instantly share code, notes, and snippets.

@msuchecki
Last active August 29, 2015 14:12
Show Gist options
  • Save msuchecki/027e817ae7098a53f0a6 to your computer and use it in GitHub Desktop.
Save msuchecki/027e817ae7098a53f0a6 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-pages/core-pages.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#paper_tabs {
width: 480px;
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
left: 230px;
top: 180px;
position: absolute;
background-color: rgb(0, 188, 212);
}
#paper_tabs1 {
width: 480px;
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#core_pages {
width: 400px;
height: 400px;
border: 1px solid silver;
left: 310px;
top: 230px;
position: absolute;
}
</style>
<paper-tabs selected="{{selected}}" selectedindex="5" id="paper_tabs" horizontal center layout>
<paper-tab id="paper_tab" inline flex center-center horizontal layout>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1" inline flex center-center horizontal layout>ITEM TWO</paper-tab>
<paper-tab id="paper_tab2" inline flex center-center horizontal layout>ITEM THREE</paper-tab>
<paper-tab id="paper_tab3" inline flex center-center horizontal layout>ITEM FOUR</paper-tab>
<paper-tab id="paper_tab4" inline flex center-center horizontal layout>ITEM FIVE</paper-tab>
</paper-tabs>
<core-pages selected="{{selected}}" selectedindex="0" notap id="core_pages">
<section id="section" active>Page One</section>
<section id="section1"><paper-tabs selected="4" selectedindex="4" id="paper_tabs1" horizontal center layout active>
<paper-tab id="paper_tab5" inline flex center-center horizontal layout>ITEM ONE</paper-tab>
<paper-tab id="paper_tab6" inline flex center-center horizontal layout>ITEM TWO</paper-tab>
<paper-tab id="paper_tab7" inline flex center-center horizontal layout>ITEM THREE</paper-tab>
<paper-tab id="paper_tab8" inline flex center-center horizontal layout>ITEM FOUR</paper-tab>
<paper-tab id="paper_tab9" inline flex center-center horizontal layout active>ITEM FIVE</paper-tab>
</paper-tabs></section>
</core-pages>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment