Skip to content

Instantly share code, notes, and snippets.

@almirbi
Last active August 29, 2015 14:07
Show Gist options
  • Save almirbi/618962629f422798e4ce to your computer and use it in GitHub Desktop.
Save almirbi/618962629f422798e4ce to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/device-icons.html">
<link rel="import" href="../core-icon/core-icon.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="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-input/paper-input.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_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#left_panel {
box-shadow: rgba(0, 0, 0, 0.0980392) 4px 4px 6px, rgba(0, 0, 0, 0.0980392) 4px 3px 4px;
background-color: rgb(249, 178, 79);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_header_panel {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
height: 84px;
background-color: rgb(230, 24, 117);
}
#section2 {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#google_map {
width: 100%;
height: 100%;
display: block;
left: 0px;
top: 0px;
position: absolute;
}
#map_search {
position: relative;
display: inline-block;
color: white;
}
#map_search /deep/ .unfocused-underline {
border-bottom-color: white;
display: none;
background: white;
}
#map_search /deep/ .focused-underline {
border-bottom-color: white;
background: white;
}
#paper_icon_button {
display: inline-block;
}
#logo {
margin-top: 30px;
font-size: 30px;
}
#logo, #headline {
text-align: center;
color: white;
}
#headline {
margin-top: 80px;
}
#core_icon {
left: 20px;
top: 31px;
position: absolute;
}
</style>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="left_panel" drawer>
<h1 id="logo"><core-icon icon="explore" id="core_icon"></core-icon>HELIWING</h1>
<h2 id="headline">Velg oppdragstype:</h2>
</section>
<section id="section1" main>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<div id="search" on-click="{{ toggleSearch }}" show>
<paper-icon-button icon="search" id="paper_icon_button"></paper-icon-button>
<paper-input label="Søkeområde..." floatinglabel willvalidate id="map_search" layout vertical></paper-input>
</div>
</core-toolbar>
<section id="section2">
<google-map latitude="37.60757704357886" longitude="-121.84881758300781" id="google_map"></google-map>
</section>
</core-header-panel>
</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