Skip to content

Instantly share code, notes, and snippets.

@ericNeufeld
Last active August 29, 2015 14:12
Show Gist options
  • Save ericNeufeld/af400bf171a727135718 to your computer and use it in GitHub Desktop.
Save ericNeufeld/af400bf171a727135718 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
#core_card {
position: absolute;
width: 300px;
height: 300px;
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: 100px;
top: 120px;
display: block;
}
#core_card1 {
position: absolute;
width: 300px;
height: 300px;
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: 450px;
top: 110px;
}
#core_card2 {
width: 300px;
height: 300px;
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: 260px;
top: 380px;
position: absolute;
display: block;
}
#core_card3 {
position: absolute;
width: 300px;
height: 300px;
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: 900px;
top: 800px;
}
:host {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: rgb(255, 0, 255);
display: block;
}
#paper_shadow {
left: -10px;
top: 0px;
position: absolute;
display: inline;
}
#core_toolbar {
right: 0px;
left: 0px;
background-color: rgb(79, 125, 201);
color: rgb(255, 255, 255);
fill: #ffffff;
top: 0px;
position: absolute;
}
#core_toolbar1 {
right: 0px;
left: 670px;
background-color: rgb(79, 125, 201);
color: rgb(255, 255, 255);
fill: #ffffff;
top: 420px;
}
</style>
<style>
.span-shadow {
display: inline-block;
padding: 8px;
}
</style>
<core-card id="core_card2" layout vertical></core-card>
<paper-shadow id="paper_shadow" z="5">
</paper-shadow>
<core-card id="core_card1" layout vertical></core-card>
<core-card id="core_card" layout vertical>
<paper-shadow id="paper_shadow1" z="3" class="span-shadow">
<span id="span">I have a shadow!</span>
</paper-shadow>
</core-card>
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div" flex>Toolbar</div>
</core-toolbar>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment