Skip to content

Instantly share code, notes, and snippets.

@asherp
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asherp/fcd18439564ecb87a9da to your computer and use it in GitHub Desktop.
Save asherp/fcd18439564ecb87a9da to your computer and use it in GitHub Desktop.
designer
<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="../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="../google-map/google-map-directions.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_header_panel {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#google_map {
width: 100%;
height: 100%;
display: block;
}
#core_card {
width: 100%;
height: 100%;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
position: absolute;
top: 0px;
left: 0px;
background-color: rgb(255, 255, 255);
}
#core_ajax {
left: 1060px;
top: 540px;
}
#core_card1 {
position: absolute;
width: 730px;
height: 50px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 90px;
top: 10px;
background-color: rgb(255, 255, 255);
}
#core_field {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_card2 {
position: absolute;
width: 730px;
height: 260px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 90px;
top: 70px;
background-color: rgb(255, 255, 255);
}
#core_scaffold {
position: absolute;
top: 650px;
right: 0px;
bottom: 0px;
left: 1140px;
}
</style>
<core-card id="core_card1" layout vertical start>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon1"></core-icon>
<core-input willvalidate placeholder="text input" id="core_input" flex></core-input>
</core-field>
</core-card>
<core-card id="core_card2" layout vertical>
<core-card id="core_card" layout vertical start>
<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">
<google-map-directions id="google_map_directions"></google-map-directions>
<google-map-search map="{{ $.google_map.map }}" query="{{ $.core_input.value }}" id="google_map_search"></google-map-search>
<google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ result.longitude }}" zoom="40" id="google_map"></google-map>
</section>
</core-header-panel>
</core-card>
</core-card>
</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