Skip to content

Instantly share code, notes, and snippets.

@ntsh
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save ntsh/db533a5f59d727ec95c2 to your computer and use it in GitHub Desktop.

Select an option

Save ntsh/db533a5f59d727ec95c2 to your computer and use it in GitHub Desktop.
designer
<link href="../core-pages/core-pages.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-input/core-input.html" rel="import">
<link href="../paper-button/paper-button.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_pages {
width: 320px;
height: 480px;
border: 1px solid silver;
left: 190px;
top: 70px;
position: absolute;
}
#core_menu {
font-size: 16px;
left: 1030px;
top: 440px;
}
#core_toolbar {
right: 0px;
left: -1px;
background-color: rgb(144, 207, 253);
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
top: -1px;
position: absolute;
}
#input {
padding: 15px;
left: 9px;
top: 89px;
position: absolute;
}
#paper_button {
left: 19px;
top: 149px;
position: relative;
}
#core_card {
position: absolute;
width: 300px;
height: 100px;
background-color: rgb(255, 255, 255);
border-radius: 2px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.098), 0px 0px 3px rgba(0, 0, 0, 0.098);
left: 9px;
top: 179px;
}
</style>
<core-pages selected="0" selectedindex="0" notap id="core_pages">
<section id="section" active>
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div" flex>Grab-A-Cab</div>
</core-toolbar>
<input id="input" placeholder="type something..." is="core-input">
<paper-button id="paper_button">button</paper-button>
<core-card id="core_card" vertical layout></core-card>
</section>
<section id="section1">Page Two</section>
</core-pages>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment