Skip to content

Instantly share code, notes, and snippets.

@ressu
Created July 30, 2014 21:36
Show Gist options
  • Save ressu/c22799351b5363cc87b1 to your computer and use it in GitHub Desktop.
Save ressu/c22799351b5363cc87b1 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-toast/paper-toast.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
width: 43%;
height: 43%;
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;
padding: 1%;
margin: 1%;
background-color: rgb(255, 255, 255);
}
#div {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#paper_toast {
left: 690px;
top: 570px;
position: absolute;
}
</style>
<div id="div" center-justified wrap horizontal layout>
<core-card id="core_card" layout vertical></core-card>
<core-card id="core_card1" layout vertical></core-card>
<core-card id="core_card2" layout vertical></core-card>
<core-card id="core_card3" layout vertical></core-card>
</div>
<paper-toast id="paper_toast" text="Toast!" class="core-transition core-transition-bottom" opened="true">Boink</paper-toast>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment