Skip to content

Instantly share code, notes, and snippets.

@wendelicious
Created October 9, 2014 08:36
Show Gist options
  • Save wendelicious/9b088df776aeaae8437b to your computer and use it in GitHub Desktop.
Save wendelicious/9b088df776aeaae8437b to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(250, 250, 250);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_field {
left: -236px;
top: 160px;
position: absolute;
width: 380px;
height: 60px;
}
#core_input {
width: 130px;
height: 140px;
left: 10px;
top: 0px;
position: absolute;
}
#core_input_parcel_no {
width: 200px;
height: 40px;
left: 40px;
top: 50px;
position: absolute;
}
#paper_button {
left: 3px;
top: 0px;
position: absolute;
width: 90px;
height: 100px;
}
#paper_button_save {
left: 173px;
top: 90px;
position: absolute;
}
</style>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section" drawer>
<paper-button label="Save" id="paper_button_save"></paper-button>
<core-input willvalidate placeholder="Parcel Number" autofocus pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}" id="core_input_parcel_no" flex></core-input>
</section>
<section id="section1" main>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
</core-field>
</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