Skip to content

Instantly share code, notes, and snippets.

@manolenso
Last active August 29, 2015 14:11
Show Gist options
  • Save manolenso/b92816ae3b545dd18a87 to your computer and use it in GitHub Desktop.
Save manolenso/b92816ae3b545dd18a87 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_menu {
font-size: 16px;
left: 400px;
top: 190px;
position: absolute;
width: 270px;
height: 270px;
}
#core_animated_pages {
width: 540px;
height: 710px;
overflow: hidden;
left: 950px;
top: 120px;
position: absolute;
background-color: rgb(238, 238, 238);
}
#core_drawer_panel {
position: absolute;
top: 350px;
right: 0px;
bottom: 0px;
left: 70px;
}
#section3 {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(250, 250, 250);
}
#section4 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
</style>
<core-menu selected="0" selectedindex="0" id="core_menu">
<core-submenu active id="core_submenu" icon="settings" label="Topics">
<core-item id="core_item" label="Topic 1" horizontal center layout></core-item>
<core-item id="core_item1" label="Topic 2" horizontal center layout></core-item>
</core-submenu>
<core-submenu id="core_submenu1" icon="settings" label="Favorites">
<core-item id="core_item2" label="Favorite 1" horizontal center layout></core-item>
<core-item id="core_item3" label="Favorite 2" horizontal center layout></core-item>
<core-item id="core_item4" label="Favorite 3" horizontal center layout></core-item>
</core-submenu>
</core-menu>
<core-animated-pages selectedindex="0" notap id="core_animated_pages">
<section id="section" layout horizontal center center-justified active>{{ }}</section>
<section id="section1">
</section>
<section id="section2">
</section>
</core-animated-pages>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section3" drawer></section>
<section id="section4" main></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