Skip to content

Instantly share code, notes, and snippets.

@abhihebbar
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save abhihebbar/09f3a8f1b876fdec5fbc to your computer and use it in GitHub Desktop.

Select an option

Save abhihebbar/09f3a8f1b876fdec5fbc to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(250, 250, 250);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_pages {
width: 100%;
height: 100%;
border: 1px solid silver;
left: 0px;
top: 0px;
position: static;
}
#core_card {
position: static;
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
margin: 0px 10px 0px 0px;
background-color: rgb(255, 255, 255);
}
#core_card1 {
position: static;
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 504px;
top: 140px;
margin: 0px 10px 0px 0px;
background-color: rgb(255, 255, 255);
}
#core_card2 {
position: static;
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 404px;
top: 510px;
background-color: rgb(255, 255, 255);
}
</style>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section" drawer></section>
<section id="section1" main>
<section id="section2" active horizontal layout>
<core-card id="core_card"></core-card>
<core-card id="core_card1" flex></core-card>
<core-card id="core_card2"></core-card>
</section>
</section>
</core-drawer-panel>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment