Last active
August 29, 2015 14:09
-
-
Save simeonschaub/18425dbfb1a5dd645217 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-ripple/paper-ripple.html"> | |
<polymer-element name="name-card" attributes="first, name, color, href"> | |
<template> | |
<style> | |
#core_card { | |
position: absolute; | |
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: 0px; | |
top: 0px; | |
width: auto; | |
height: auto; | |
padding: 16px; | |
background-color: rgb(255, 255, 255); | |
} | |
#first { | |
font-size: 6em; | |
font-family: Roboto; | |
padding: 16px; | |
color: {{ color }}; | |
} | |
:host { | |
background-color: rgb(0, 0, 0); | |
} | |
#paper_ripple { | |
width: 100%; | |
height: 100%; | |
color: {{ color }}; | |
position: absolute; | |
left: 0px; | |
top: 0px; | |
} | |
#name { | |
text-align: center; | |
font-family: Roboto; | |
} | |
</style> | |
<core-card id="core_card" layout vertical onclick="window.open('{{ href }}')"> | |
<div id="first">{{ first }}</div> | |
<div id="name">{{ name }}</div> | |
<paper-ripple id="paper_ripple"> | |
</paper-ripple> | |
</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