Skip to content

Instantly share code, notes, and snippets.

@shillcock
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save shillcock/c2450639498f90c4673a to your computer and use it in GitHub Desktop.

Select an option

Save shillcock/c2450639498f90c4673a 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-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu-button/core-menu-button.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#section {
height: 5000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_header_panel {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_icon_button1 {
left: 558px;
top: 10px;
position: absolute;
}
#core_menu_button {
left: 8px;
top: 10px;
position: absolute;
}
</style>
<core-header-panel mode="scroll" id="core_header_panel" headermargin="42.66666666666667" headerheight="64">
<core-toolbar id="core_toolbar">
<core-menu-button id="core_menu_button" relative>
<core-icon-button icon="menu"></core-icon-button>
<core-dropdown class="dropdown" layered>
<core-menu selected="1" selectedindex="1">
<core-item horizontal center layout>Share</core-item>
<core-item id="core_item" horizontal center layout active>Settings</core-item>
<core-item horizontal center layout>Help</core-item>
</core-menu>
</core-dropdown>
</core-menu-button>
<div>Discovery</div>
<core-icon-button icon="more" on-tap="{{ moreAction }}"></core-icon-button>
</core-toolbar>
<section id="section"></section>
</core-header-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