Skip to content

Instantly share code, notes, and snippets.

@iheart2code
Created June 28, 2014 23:10
Show Gist options
  • Save iheart2code/88b1e815d8eea3c37527 to your computer and use it in GitHub Desktop.
Save iheart2code/88b1e815d8eea3c37527 to your computer and use it in GitHub Desktop.
designer
<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 shim-shadowdom>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_scroll_header_panel {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
}
core-scroll-header-panel::shadow #headerBg {
background-image: url('http://i.imgur.com/0WGmN48.jpg');
}
core-scroll-header-panel::shadow #condensedHeaderBg {
background-color: rgb(244, 180, 0);
}
#core_toolbar {
color: rgb(241, 241, 241);
fill: rgb(241, 241, 241);
background-color: rgb(66, 133, 244);
}
#section {
height: 5000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
</style>
<core-scroll-header-panel condenses keepcondensedheader headerheight="192" condensedheaderheight="64" id="core_scroll_header_panel">
<core-toolbar id="core_toolbar" class="tall" keepcondensedheader>
<div id="div" flex></div>
<core-icon-button icon="search" id="core_icon_button1"></core-icon-button>
<core-icon-button icon="more-vert" id="core_icon_button2"></core-icon-button>
<div id="div1" class="bottom indent">Jeremy White</div>
</core-toolbar>
<section id="section" content></section>
</core-scroll-header-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