Skip to content

Instantly share code, notes, and snippets.

@koofah
Last active August 29, 2015 14:27
Show Gist options
  • Save koofah/b132710dd04de34de13c to your computer and use it in GitHub Desktop.
Save koofah/b132710dd04de34de13c 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">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#section {
width: 420px;
height: 630px;
border: 5px solid rgb(204, 204, 204);
left: 50px;
top: 10px;
position: absolute;
}
#paper_tabs {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#section2 {
width: 420px;
height: 630px;
border: 5px solid rgb(204, 204, 204);
left: 1650px;
top: 750px;
}
</style>
<section id="section" layout vertical>
<paper-tabs noink nobar selected="0" selectedindex="0" id="paper_tabs" horizontal center layout>
<paper-tab id="paper_tab1" inline flex center-center horizontal layout active>First</paper-tab>
<paper-tab id="paper_tab2" inline flex center-center horizontal layout>ITEM TWO</paper-tab>
<paper-tab id="paper_tab3" 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-tabs>
<section id="section1" flex relative>
Thi is for section 1
</section>
<section id="section2" flex relative>
This is for section 2
</section>
<section id="section3" flex relative>
This is for section 3
</section>
<section id="section4" flex relative>
This is for section 4
</section>
</section>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment