Skip to content

Instantly share code, notes, and snippets.

@MarsWilliams
Last active August 29, 2015 14:10
Show Gist options
  • Save MarsWilliams/7c70660e6c0e02ebf725 to your computer and use it in GitHub Desktop.
Save MarsWilliams/7c70660e6c0e02ebf725 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-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_toolbar {
right: 0px;
left: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
top: 0px;
position: static;
background-color: rgb(250, 209, 0);
}
#div {
left: 88px;
top: 150px;
position: absolute;
}
#core_drawer_panel {
position: absolute;
top: 190px;
right: 0px;
bottom: 0px;
left: 0px;
}
#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, 248, 243);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(250, 248, 243);
}
#section2 {
left: 554px;
top: 150px;
position: absolute;
}
#core_card {
position: absolute;
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 74px;
top: 130px;
background-color: rgb(255, 255, 255);
}
#core_card1 {
position: absolute;
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 444px;
top: 130px;
background-color: rgb(255, 255, 255);
}
#core_field {
left: 858px;
top: 140px;
position: absolute;
}
#core_field1 {
left: 858px;
top: 140px;
position: absolute;
width: 130px;
height: 30px;
}
#paper_fab {
background-color: rgb(255, 76, 0);
}
#paper_fab1 {
background-color: rgb(255, 76, 0);
}
#core_menu {
font-size: 16px;
left: 52px;
top: 32px;
position: absolute;
}
</style>
<core-toolbar id="core_toolbar" class="tall">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div" flex>Canary</div>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-input id="core_input" flex></core-input>
</core-field>
<core-field id="core_field1" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
<core-input id="core_input1" flex></core-input>
<topeka-datasource url="http://localhost:9200/recipes/_search?q=" id="topeka_datasource" hidden></topeka-datasource>
<core-ajax url="http://localhost:9200/recipes/_search?q=" handleas="json" params="{{ $.core_field1.searchTerm }}" method="GET" id="core_ajax" hidden></core-ajax>
</core-field>
</core-toolbar>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section" drawer>
<core-menu selected="1" selectedindex="1" id="core_menu">
<core-submenu id="core_submenu" icon="settings" label="Topics">
<core-item id="core_item" label="Topic 1" horizontal center layout></core-item>
<core-item id="core_item1" label="Topic 2" horizontal center layout></core-item>
</core-submenu>
<core-submenu opened active id="core_submenu1" icon="settings" label="Favorites">
<core-item id="core_item2" label="Favorite 1" horizontal center layout></core-item>
<core-item id="core_item3" label="Favorite 2" horizontal center layout></core-item>
<core-item id="core_item4" label="Favorite 3" horizontal center layout></core-item>
</core-submenu>
</core-menu>
</section>
<section id="section1" main>
<section id="section2"></section>
<core-card id="core_card" layout vertical>
<paper-fab icon="av:play-arrow" mini id="paper_fab1" end></paper-fab>
</core-card>
<core-card id="core_card1" layout vertical class="recipe">
<div id="div1" layout horizontal>
</div>
<paper-fab icon="check" mini id="paper_fab" end></paper-fab>
</core-card>
</section>
</core-drawer-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