Skip to content

Instantly share code, notes, and snippets.

@joewalker
Created December 17, 2014 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joewalker/a388e3f8e0d56f825fbe to your computer and use it in GitHub Desktop.
Save joewalker/a388e3f8e0d56f825fbe to your computer and use it in GitHub Desktop.
designer
<link href="../paper-input/paper-input.html" rel="import">
<link href="../paper-button/paper-button.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#paper_button {
left: 290px;
top: 30px;
position: absolute;
}
#paper_input {
left: 100px;
top: 0px;
position: absolute;
}
</style>
<form action="https://www.polymer-project.org/login" autocomplete="on" enctype="application/x-www-form-urlencoded" encoding="application/x-www-form-urlencoded" method="post" length="2">
<table>
<tbody>
<tr rowindex="0" sectionrowindex="0">
<td colspan="1" rowspan="1" cellindex="0">
<paper-input label="Username" id="username" autofocus></paper-input>
</td>
</tr>
<tr rowindex="1" sectionrowindex="1">
<td colspan="1" rowspan="1" cellindex="0">
<paper-input label="Password" id="password" type="password"></paper-input>
</td>
</tr>
<tr rowindex="2" sectionrowindex="2">
<td colspan="1" rowspan="1" cellindex="0">
<paper-button raised id="authSubmit">Login</paper-button>
</td>
</tr>
</tbody>
</table>
</form>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment