Created
July 10, 2014 12:21
-
-
Save iamteem/62afce8cc936a0bd6d94 to your computer and use it in GitHub Desktop.
designer
This file contains 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="../paper-input/paper-input.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="ducking-wookie-signin"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_card { | |
position: absolute; | |
width: 300px; | |
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: 240px; | |
top: 70px; | |
height: auto; | |
background-color: rgb(255, 255, 255); | |
} | |
#paper_input { | |
width: 100%; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
height: 100%; | |
} | |
#paper_input1 { | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#paper_button { | |
opacity: 0.8; | |
padding: 10px; | |
width: 80%; | |
margin: 0px auto 30px; | |
background-color: rgb(170, 181, 176); | |
} | |
#email { | |
margin: 20px auto; | |
} | |
#password { | |
margin: 0px auto 10px; | |
} | |
</style> | |
<core-card id="core_card" layout vertical> | |
<paper-input label="Email" floatinglabel id="email" validate="{{validateEmail}}" vertical layout></paper-input> | |
<paper-input label="Password" | |
floatinglabel | |
type="password" | |
id="password" | |
validate="{{validatePassword}}" | |
required=true></paper-input> | |
<div id="div" layout horizontal> | |
</div> | |
<paper-button label="Sign In" raisedbutton id="paper_button" on-up="{{submit}}"></paper-button> | |
</core-card> | |
</template> | |
<script> | |
Polymer('ducking-wookie-signin', { | |
submit: function () { | |
}, | |
validateEmail: function () { | |
return this.indexOf('@') !== -1; | |
}, | |
validatePassword: function () { | |
return ((this.length > 4) && (this.length <= 32)); | |
}, | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment