Skip to content

Instantly share code, notes, and snippets.

@almirbi
Last active August 29, 2015 14:07
Show Gist options
  • Save almirbi/68f4bdd5e7c496e6f798 to your computer and use it in GitHub Desktop.
Save almirbi/68f4bdd5e7c496e6f798 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.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="../paper-button/paper-button.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: rgb(249, 178, 79);
}
#core_header_panel {
background-color: rgb(249, 178, 79);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(249, 178, 79);
}
core-scaffold::shadow core-toolbar {
color: white;
background: rgb(233, 30, 99);
}
#paper_input {
position: absolute;
left: 650px;
top: 0px;
background-color: rgb(249, 178, 79);
}
#core_icon {
left: 1202px;
top: 12px;
position: absolute;
color: black;
}
html /deep/ paper-input[focused] .floated-label {
color: white;
}
html /deep/ paper-input .focused-underline, html /deep/ paper-input .cursor {
background-color: rgb(236, 64, 122);
}
html /deep/ paper-input.invalid[focused] .floated-label, html /deep/ paper-input[focused] .error-text, html /deep/ paper-input[focused] .error-icon {
color: rgb(224, 0, 50);
}
html /deep/ paper-input.invalid .focused-underline, html /deep/ paper-input.invalid .cursor {
background-color: rgb(224, 0, 50);
}
#google_map {
width: 100%;
height: 100%;
display: block;
left: 0px;
top: 0px;
position: absolute;
}
#google_map_search {
left: 720px;
top: 320px;
position: absolute;
}
#core_selector {
width: 100%;
height: 50px;
left: 1430px;
top: 620px;
}
#paper_fab {
left: 1460px;
top: 590px;
}
#paper_ripple {
width: 300px;
height: 300px;
left: 1540px;
top: 600px;
}
#core_menu_button {
left: 1500px;
top: 540px;
}
#core_icon_button {
left: 1040px;
top: 430px;
}
paper-button {
position: relative;
width: 200px;
margin: 10px auto auto;
display: block;
color: white;
background-color: rgb(236, 64, 122);
}
#paper_button {
overflow: visible;
}
#headling {
margin: auto;
}
#heading {
margin: auto;
}
#heading-container {
position: relative;
top: 0px;
left: 0px;
width: 100%;
height: 40px;
margin: 20px 0px 0px;
}
#site-title {
color: rgb(255, 64, 129);
font-weight: bold;
font-size: 20px;
margin: 0 auto;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="waterfall" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar">
<div id="site-title" tool>H E L I W I N G</div>
</core-toolbar>
<div id="heading-container">
<p id="heading" center>Velge heli oppdragstype</p>
</div>
<paper-button label="Taxi" raised id="paper_button"></paper-button>
<paper-button label="Paper Button" raised id="paper_button1"></paper-button>
</core-header-panel>
<google-map-search id="google_map_search"></google-map-search>
<google-map latitude="66.93685426436033" longitude="7.439941406250008" zoom="5" id="google_map"></google-map>
<core-icon-button icon="search" id="core_icon"></core-icon-button>
<paper-input label="Søkeplassering..." floatinglabel willvalidate id="paper_input" layout vertical></paper-input>
</core-scaffold>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment