Skip to content

Instantly share code, notes, and snippets.

@yohodopo
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save yohodopo/e8c7af63676bac53df58 to your computer and use it in GitHub Desktop.

Select an option

Save yohodopo/e8c7af63676bac53df58 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="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#paper_input {
left: 360px;
top: 140px;
position: absolute;
width: 330px;
height: 100px;
}
#paper_tab {
width: 120px;
height: 40px;
left: 1160px;
top: 470px;
}
#paper_tabs {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#paper_tab1 {
width: 120px;
height: 40px;
}
#paper_tab2 {
width: 120px;
height: 40px;
}
#paper_tab3 {
width: 120px;
height: 40px;
}
</style>
<paper-tabs selected="1" selectedindex="1" id="paper_tabs" start horizontal layout justified wrap one flex center>
<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 start active>TAB</paper-tab>
<paper-tab id="paper_tab2" inline flex center-center horizontal layout>TAB</paper-tab>
<paper-tab id="paper_tab3" inline flex center-center horizontal layout>TAB</paper-tab>
</paper-tabs>
<paper-input label="Type something..." floatinglabel id="paper_input"></paper-input>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment