Last active
August 29, 2015 14:09
-
-
Save ihsanberahim/3d3ce1d9b7fb40a98079 to your computer and use it in GitHub Desktop.
Simple Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../paper-toast/paper-toast.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#section { | |
left: 1100px; | |
top: 540px; | |
} | |
#core_card { | |
position: absolute; | |
width: 600px; | |
border-top-left-radius: 2px; | |
border-top-right-radius: 2px; | |
border-bottom-right-radius: 2px; | |
border-bottom-left-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
left: 250px; | |
top: 0px; | |
padding: 10px; | |
background-color: rgb(255, 255, 255); | |
} | |
core-field { | |
border: 1px solid rgb(221, 221, 221); | |
margin: 10px; | |
height: 40px; | |
} | |
div.icon { | |
display: inline-block; | |
width: 32px; | |
height: 32px; | |
background-repeat: no-repeat; | |
} | |
div.product_image_preview { | |
height: 600px; | |
width: 600px; | |
margin: 0px auto; | |
} | |
#core_icon_button { | |
left: 1050px; | |
top: 630px; | |
} | |
#ace_element { | |
width: 400px; | |
height: 300px; | |
left: 1020px; | |
top: 520px; | |
} | |
#paper_icon_button { | |
left: 1030px; | |
top: 510px; | |
} | |
.button { | |
color: rgb(255, 255, 255); | |
background-color: rgb(189, 195, 199); | |
} | |
.button.button-primary { | |
color: rgb(255, 255, 255); | |
background-color: rgb(34, 167, 240); | |
} | |
.button.button-secondary { | |
color: rgb(255, 255, 255); | |
background-color: rgb(249, 191, 59); | |
} | |
#paper_toast { | |
position: fixed; | |
outline: none; | |
} | |
</style> | |
<div id="div4" theme="core-light-theme"> | |
</div> | |
<core-card id="core_card" layout vertical> | |
<div id="div" class="product_image_preview"> | |
</div> | |
<core-field id="core_field" center horizontal layout> | |
<div id="div1" class="icon"></div> | |
<label id="label">Product Name</label> | |
<input id="input3" placeholder="Unique product name" flex> | |
</core-field> | |
<core-field id="core_field" center horizontal layout> | |
<div id="div2" class="icon"></div> | |
<label id="label">Description</label> | |
<input id="input3" placeholder="what about this product condition" flex> | |
</core-field> | |
<core-field id="core_field" center horizontal layout> | |
<div id="div3" class="icon"></div> | |
<label id="label">Price (RM)</label> | |
<input id="input3" placeholder="0" flex> | |
</core-field> | |
<div id="div5" center horizontal layout> | |
<paper-button id="save_button" class="button button-primary" six flex>Save</paper-button> | |
<paper-button id="capture_button" class="button button-secondary" six flex>Capture</paper-button> | |
</div> | |
<paper-toast text="Toast!" autoclosedisabled id="paper_toast" class="core-transition-bottom core-transition" touch-action="none"></paper-toast> | |
</core-card> | |
</template> | |
<script> | |
Polymer({ | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment