Skip to content

Instantly share code, notes, and snippets.

@kingflurkel
Created August 22, 2014 08:03
Show Gist options
  • Save kingflurkel/510c336293952f35ed51 to your computer and use it in GitHub Desktop.
Save kingflurkel/510c336293952f35ed51 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_header_panel {
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_menu {
font-size: 16px;
}
#core_field {
left: 10px;
top: 10px;
position: absolute;
background-color: rgb(255, 255, 255);
}
#svg {
pointer-events: none;
display: block;
}
#google_map {
width: 400px;
height: 400px;
display: block;
left: 260px;
top: 70px;
position: absolute;
}
#google_map_search {
left: 560px;
top: 580px;
position: absolute;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar"></core-toolbar>
<core-menu id="core_menu" valueattr="label" theme="core-light-theme">
<core-item id="core_item" icon="settings" label="Item1" horizontal center layout></core-item>
<core-item id="core_item1" icon="settings" label="Item2" horizontal center layout active></core-item>
</core-menu>
</core-header-panel>
<div id="div" tool>Title</div>
</core-scaffold>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon id="core_icon" icon="search">
<svg id="svg" viewbox="0 0 24 24" height="100%" width="100%" preserveaspectratio="xMidYMid meet" fit>
<g id="g">
<path id="path" d="M15.5,14h-0.8l-0.3-0.3c1-1.1,1.6-2.6,1.6-4.2C16,5.9,13.1,3,9.5,3C5.9,3,3,5.9,3,9.5S5.9,16,9.5,16c1.6,0,3.1-0.6,4.2-1.6l0.3,0.3v0.8l5,5l1.5-1.5L15.5,14z M9.5,14C7,14,5,12,5,9.5S7,5,9.5,5C12,5,14,7,14,9.5S12,14,9.5,14z"></path>
</g>
</svg>
</core-icon>
<core-input placeholder="text input" id="core_input" flex></core-input>
</core-field>
<google-map-search id="google_map_search"></google-map-search>
<google-map id="google_map"></google-map>
</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