Skip to content

Instantly share code, notes, and snippets.

@jarrodek
Last active August 29, 2015 14:15
Show Gist options
  • Save jarrodek/8c79c168afea48f4758d to your computer and use it in GitHub Desktop.
Save jarrodek/8c79c168afea48f4758d 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-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
#core_header_panel {
height: 100%;
}
#core_toolbar {
height: 180px;
color: rgb(255, 255, 255);
transition: height 0.2s;
-webkit-transition: height 0.2s;
background-color: rgb(79, 125, 201);
}
#section2 {
height: 2000px;
width: 50%;
margin: 80px auto;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
</style>
<core-drawer-panel transition selected="main" narrow forcenarrow id="core_drawer_panel" touch-action="pan-y">
<section id="section" drawer>
<p id="p">test</p>
</section>
<section id="section1" main>
<core-header-panel mode="cover" id="core_header_panel" flex>
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div">Header</div>
</core-toolbar>
<section id="section2" class="content" fit>
asdfsdfsdffsdf
</section>
</core-header-panel>
</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