Skip to content

Instantly share code, notes, and snippets.

@mckoss
Created August 8, 2014 20:54
Show Gist options
  • Save mckoss/984f35ffec611b15b4c4 to your computer and use it in GitHub Desktop.
Save mckoss/984f35ffec611b15b4c4 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-item/core-item.html">
<polymer-element name="my-element" attributes="foo bar">
<template>
<style>
:host {
box-sizing: border-box;
}
#core_header_panel {
width: 300px;
height: 400px;
left: 180px;
top: 30px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
left: 630px;
top: 330px;
position: absolute;
background-color: rgb(79, 125, 201);
}
#section {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<section id="section">
<core-item id="core_item" icon="settings" label="Item" horizontal center layout></core-item>
<core-item id="core_item1" icon="settings" label="Item" horizontal center layout></core-item>
</section>
</core-header-panel>
<core-toolbar id="core_toolbar">
<core-icon-button id="core_icon_button" icon="menu" foobar="7"></core-icon-button>
<div id="div">Header</div>
</core-toolbar>
</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