Skip to content

Instantly share code, notes, and snippets.

@tomplayford
Last active August 29, 2015 14:08
Show Gist options
  • Save tomplayford/e27bb294370c17d3e0b0 to your computer and use it in GitHub Desktop.
Save tomplayford/e27bb294370c17d3e0b0 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
width: 300px;
height: 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: 20px;
top: 30px;
background-color: rgb(255, 255, 255);
}
#core_selector {
padding: 0.5em;
}
#core_icon {
height: 64px;
width: 64px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
#core_icon1 {
height: 64px;
width: 64px;
margin: 0px 8px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
#core_icon2 {
height: 64px;
width: 64px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
</style>
<core-card id="core_card" layout vertical>
<core-selector selected="0" selectedindex="0" id="core_selector" layout horizontal center-justified center>
<core-icon icon="avatars:avatar-1" id="core_icon" designmeta="topeka-avatar" active></core-icon>
<core-icon icon="avatars:avatar-2" id="core_icon1" designmeta="topeka-avatar"></core-icon>
<core-icon icon="avatars:avatar-3" id="core_icon2" designmeta="topeka-avatar"></core-icon>
</core-selector>
</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