Skip to content

Instantly share code, notes, and snippets.

@ljanzik
Created August 27, 2014 09:01
Show Gist options
  • Save ljanzik/aa4e3093df5a883eb16e to your computer and use it in GitHub Desktop.
Save ljanzik/aa4e3093df5a883eb16e 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-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_drawer_panel {
position: relative;
right: 0px;
bottom: 0px;
width: 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_scroll_header_panel {
width: 100%;
height: 100%;
}
#core_toolbar {
color: rgb(241, 241, 241);
fill: rgb(241, 241, 241);
background-color: rgb(66, 133, 244);
}
#section2 {
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_card {
height: 300px;
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: 15px;
background-color: rgb(255, 255, 255);
}
</style>
<core-drawer-panel id="core_drawer_panel" touch-action>
<section id="section" drawer></section>
<section id="section1" main>
<core-scroll-header-panel condenses headerheight="192" id="core_scroll_header_panel">
<core-toolbar id="core_toolbar" class="tall" keepcondensedheader condenses>
<div id="div" flex></div>
<core-icon-button id="core_icon_button1" icon="search"></core-icon-button>
<core-icon-button id="core_icon_button2" icon="more-vert"></core-icon-button>
<div id="div1" class="bottom indent">Title</div>
</core-toolbar>
<section id="section2" content>
<core-card id="core_card" layout vertical></core-card>
</section>
</core-scroll-header-panel>
</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