Skip to content

Instantly share code, notes, and snippets.

@pope
Last active August 29, 2015 14:06
Show Gist options
  • Save pope/32dddc125beaefa9e0e3 to your computer and use it in GitHub Desktop.
Save pope/32dddc125beaefa9e0e3 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">
<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%;
}
#drawer {
background-color: rgb(221, 221, 221);
}
#main {
height: 100%;
position: relative;
box-sizing: border-box;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
z-index: 1;
background-color: rgb(250, 250, 250);
}
#core_toolbar {
right: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
background-color: rgb(21, 136, 209);
}
#core_toolbar1 {
right: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
background-color: rgb(28, 168, 244);
}
</style>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="drawer" drawer>
<core-toolbar id="core_toolbar">
</core-toolbar>
</section>
<section id="main" main>
<core-toolbar id="core_toolbar1">
<core-icon-button icon="menu" id="core_icon_button" hidden></core-icon-button>
<div id="div" flex>Material Reddit</div>
</core-toolbar>
</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