Skip to content

Instantly share code, notes, and snippets.

@cognitom
Created December 30, 2014 10:34
Show Gist options
  • Save cognitom/4fa61ca2898002aec4f6 to your computer and use it in GitHub Desktop.
Save cognitom/4fa61ca2898002aec4f6 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-menu/core-submenu.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">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#input {
padding: 15px;
left: 20px;
top: 56px;
position: absolute;
}
#core_header_panel {
width: 300px;
height: 400px;
left: 30px;
top: 30px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section {
height: 100%;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_field {
left: 50px;
top: 136px;
position: absolute;
}
#core_menu {
font-size: 16px;
left: 450px;
top: 80px;
position: absolute;
}
#paper_toast {
left: 490px;
top: 500px;
position: absolute;
}
#paper_toast1 {
left: 510px;
top: 580px;
position: absolute;
}
</style>
<core-menu selected="0" id="core_menu">
</core-menu>
<core-header-panel mode="standard" id="core_header_panel">
<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="section">
<input id="input" placeholder="type something..." is="core-input">
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-input id="core_input" flex></core-input>
</core-field>
</section>
</core-header-panel>
<paper-toast text="Toast!" id="paper_toast" class="core-transition-bottom core-transition" touch-action="none"></paper-toast>
<paper-toast text="Toast!" id="paper_toast1" touch-action="none" class="core-transition-bottom core-transition"></paper-toast>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment