Skip to content

Instantly share code, notes, and snippets.

@ericNeufeld
Last active August 29, 2015 14:10
Show Gist options
  • Save ericNeufeld/f542b2ecfd3bebf22758 to your computer and use it in GitHub Desktop.
Save ericNeufeld/f542b2ecfd3bebf22758 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
#core_card {
position: absolute;
width: 300px;
height: 600px;
background-color: rgb(255, 255, 255);
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: 180px;
top: 70px;
}
#core_card1 {
width: 300px;
height: 600px;
background-color: rgb(255, 255, 255);
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: 230px;
top: 270px;
position: absolute;
}
#section {
width: 1180px;
height: 1110px;
border: 5px solid rgb(204, 204, 204);
left: 0px;
top: 0px;
background-color: rgb(255, 200, 200);
position: absolute;
}
#paper_tabs {
background-color: rgb(0, 188, 212);
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
}
#img {
position: absolute;
opacity: 1;
padding: 10px;
}
</style>
<section id="section" layout vertical>
<paper-tabs nobar selected="0" selectedindex="0" id="paper_tabs" ink horizontal center layout>
<paper-tab id="paper_tab" inline flex center-center horizontal layout active>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1" inline flex center-center horizontal layout>ITEM TWO</paper-tab>
</paper-tabs>
<section id="section1" flex relative center-justified>
</section>
</section>
<core-card id="core_card" layout vertical>
<core-card id="core_card1" layout vertical>
<figure>
</figure>
<img height="358" hspace="0" src="http://www.cs.usask.ca/faculty/eric/Site/Software_files/shapeimage_1.jpg" vspace="0" width="280" complete naturalheight="277" naturalwidth="396" x="410" y="364" id="img" center-justified></img>
</core-card>
</core-card>
<core-card id="core_card2" layout vertical></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