Skip to content

Instantly share code, notes, and snippets.

@negator
Last active August 29, 2015 14:16
Show Gist options
  • Save negator/c81d2bdb65f07402a417 to your computer and use it in GitHub Desktop.
Save negator/c81d2bdb65f07402a417 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.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: 410px;
top: 120px;
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);
}
#core_submenu {
left: 0px;
top: 0px;
position: absolute;
width: 100%;
height: 100%;
}
#core_ajax1 {
left: 1050px;
top: 550px;
position: absolute;
}
#core_icon_button {
left: -335px;
top: -143px;
position: absolute;
}
#core_card {
position: absolute;
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: -415px;
top: -173px;
background-color: rgb(255, 255, 255);
}
</style>
<core-ajax url="http://api.sweep.co/user.json/login" handleas="json" auto params='{"email":"naveen.gattu@gmail.com","password":"password1"}' loading method="POST" id="core_ajax1" hidden>Login</core-ajax>
<section id="section" layout vertical>
<paper-tabs noink nobar selected="0" selectedindex="0" id="paper_tabs" horizontal center layout>
<paper-tab id="paper_tab" inline flex center-center horizontal layout active>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1" inline flex center-center horizontal layout>ITEM TWO</paper-tab>
</paper-tabs>
<section id="section1" flex relative>
<core-submenu id="core_submenu" icon="settings" label="Topics">
<core-item id="core_item" label="Topic 1" horizontal center layout></core-item>
<core-item id="core_item1" label="Topic 2" horizontal center layout></core-item>
<core-icon-button active icon="menu" id="core_icon_button" theme="core-light-theme" class="selected">Login</core-icon-button>
<core-card id="core_card" layout vertical></core-card>
</core-submenu>
</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