Last active
August 29, 2015 14:11
-
-
Save thosmos/b516140136bc54038640 to your computer and use it in GitHub Desktop.
designer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="../core-scaffold/core-scaffold.html" rel="import"> | |
<link href="../core-header-panel/core-header-panel.html" rel="import"> | |
<link href="../core-menu/core-menu.html" rel="import"> | |
<link href="../core-item/core-item.html" rel="import"> | |
<link href="../core-icon-button/core-icon-button.html" rel="import"> | |
<link href="../core-toolbar/core-toolbar.html" rel="import"> | |
<link href="../core-menu/core-submenu.html" rel="import"> | |
<link href="../paper-button/paper-button.html" rel="import"> | |
<link href="../paper-checkbox/paper-checkbox.html" rel="import"> | |
<link href="../core-icons/core-icons.html" rel="import"> | |
<link href="../paper-icon-button/paper-icon-button.html" rel="import"> | |
<link href="../paper-input/paper-input.html" rel="import"> | |
<link href="../paper-tabs/paper-tabs.html" rel="import"> | |
<link href="../paper-tabs/paper-tab.html" rel="import"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#design_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%; | |
} | |
#core_header_panel { | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar { | |
background-color: rgb(79, 125, 201); | |
color: rgb(255, 255, 255); | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#paper_input { | |
left: 30px; | |
top: 550px; | |
position: absolute; | |
} | |
#paper_button { | |
left: 53px; | |
top: 170px; | |
position: absolute; | |
} | |
#paper_checkbox { | |
left: 60px; | |
top: 300px; | |
position: absolute; | |
} | |
#paper_icon_button { | |
left: 70px; | |
top: 430px; | |
position: absolute; | |
} | |
#section { | |
width: 100%; | |
height: 100%; | |
border: 5px solid rgb(204, 204, 204); | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#paper_tabs { | |
background-color: rgb(0, 188, 212); | |
color: rgb(255, 255, 255); | |
box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2); | |
} | |
#paper_input1 { | |
left: 589px; | |
top: 173px; | |
position: absolute; | |
} | |
</style> | |
<core-scaffold id="core_scaffold"> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar" horizontal layout> | |
</core-toolbar> | |
<core-menu selected="Item2" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme"> | |
<core-item id="core_item" horizontal center layout icon="settings" on-tap="{{ showRoad }}" label="Roadmap"></core-item> | |
<core-item id="core_item1" horizontal center layout icon="settings" on-tap="{{ showSat }}" label="Satellite" active></core-item> | |
</core-menu> | |
<paper-button id="paper_button">button</paper-button> | |
<paper-checkbox label="click me" id="paper_checkbox"></paper-checkbox> | |
<paper-icon-button icon="menu" id="paper_icon_button"></paper-icon-button> | |
<paper-input label="Type something..." id="paper_input"></paper-input> | |
</core-header-panel> | |
<div id="div" tool>Title</div> | |
<section id="section" vertical layout> | |
<paper-tabs noink nobar selected="1" selectedindex="1" id="paper_tabs" layout center horizontal> | |
<paper-tab id="paper_tab" layout horizontal center-center flex inline>ITEM ONE</paper-tab> | |
<paper-tab id="paper_tab1" layout horizontal center-center flex inline active>ITEM TWO</paper-tab> | |
</paper-tabs> | |
<section id="section1" relative flex> | |
<paper-input label="Type something..." id="paper_input1"></paper-input> | |
</section> | |
</section> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer({ | |
showRoad: function (){ | |
this.$.google_map.mapType = 'roadmap'; | |
}, | |
showSat: function (){ | |
this.$.google_map.mapType = 'satellite'; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment