Skip to content

Instantly share code, notes, and snippets.

@kylecorry31
Created July 9, 2014 11:08
Show Gist options
  • Save kylecorry31/72e302e545340c431b30 to your computer and use it in GitHub Desktop.
Save kylecorry31/72e302e545340c431b30 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/iconsets/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.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;
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;
width: 100%;
background-color: rgb(221, 221, 221);
}
#core_toolbar {
right: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
background-color: rgb(217, 22, 22);
}
#paper_fab {
position: relative;
top: 32px;
background-color: rgb(236, 151, 22);
}
#core_card {
width: 40%;
height: 90%;
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;
margin: 8px;
background-color: rgb(255, 255, 255);
}
#core_card1 {
width: 40%;
height: 90%;
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;
margin: 8px;
background-color: rgb(255, 255, 255);
}
#core_card2 {
width: 40%;
height: 90%;
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;
margin: 8px;
background-color: rgb(255, 255, 255);
}
#core_card3 {
width: 40%;
height: 90%;
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;
margin: 8px;
background-color: rgb(255, 255, 255);
}
#div2 {
width: 100%;
height: 50%;
background-color: rgb(221, 221, 221);
}
#div3 {
width: 100%;
height: 50%;
background-color: rgb(221, 221, 221);
}
</style>
<core-drawer-panel selected="main" defaultselected="{{ $.core_icon_button.main }}" id="core_drawer_panel">
<section id="section" drawer></section>
<section id="section1" main>
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div" flex>Java Class</div>
<paper-fab icon="av:play-arrow" id="paper_fab"></paper-fab>
</core-toolbar>
<div id="div1" layout horizontal>
</div>
<div id="div2" horizontal layout center-justified>
<core-card id="core_card" layout vertical></core-card>
<core-card id="core_card1" layout vertical></core-card>
</div>
<div id="div3" horizontal layout center-justified>
<core-card id="core_card2" layout vertical></core-card>
<core-card id="core_card3" layout vertical></core-card>
</div>
</section>
</core-drawer-panel>
</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