Skip to content

Instantly share code, notes, and snippets.

@eugene-dounar
Created October 29, 2014 15:39
Show Gist options
  • Save eugene-dounar/b61cb0a03dc18c478d78 to your computer and use it in GitHub Desktop.
Save eugene-dounar/b61cb0a03dc18c478d78 to your computer and use it in GitHub Desktop.
designer
<link href="../paper-button/paper-button.html" rel="import">
<link href="../paper-input/paper-input.html" rel="import">
<link href="../core-drawer-panel/core-drawer-panel.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#paper_button {
left: 510px;
top: 230px;
position: absolute;
}
#paper_input {
left: 0px;
top: 0px;
position: absolute;
width: 100%;
height: 100%;
}
#core_drawer_panel {
position: absolute;
top: 30px;
right: 0px;
bottom: 0px;
left: 90px;
}
#section {
background-color: rgb(250, 250, 250);
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.098), 0px 0px 3px rgba(0, 0, 0, 0.098);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
</style>
<paper-button label="Submit" id="paper_button"></paper-button>
<paper-input label="Login" willvalidate id="paper_input" vertical layout></paper-input>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section" drawer></section>
<section id="section1" main></section>
</core-drawer-panel>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment