Skip to content

Instantly share code, notes, and snippets.

@dmonad
Last active August 29, 2015 14:07
Show Gist options
  • Save dmonad/7fa61108edfcbaf05b0c to your computer and use it in GitHub Desktop.
Save dmonad/7fa61108edfcbaf05b0c 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="../core-menu/core-submenu.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">
<polymer-element name="my-element">
<template>
<style>
#hero1 {
position: absolute;
top: 90px;
left: 190px;
width: 300px;
height: 300px;
background-color: orange;
}
#hero2 {
position: absolute;
top: 200px;
left: 300px;
width: 300px;
height: 300px;
background-color: orange;
}
#bottom1, #bottom2 {
position: absolute;
bottom: 0px;
top: 0px;
left: 0px;
height: 50px;
}
#bottom1 {
background-color: blue;
}
#bottom2 {
background-color: green;
}
#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 {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_menu {
font-size: 16px;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar"></core-toolbar>
<core-menu selected="Item2" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
<core-item id="core_item" icon="settings" label="Item1" horizontal center layout></core-item>
<core-item id="core_item1" icon="settings" label="Item2" horizontal center layout active></core-item>
</core-menu>
</core-header-panel>
<div id="div" tool>Title</div>
<core-animated-pages transitions="hero-transition cross-fade" selected="Item1" lastselected="Item2" selectedindex="{{ $.core_menu.selectedIndex }}" notap id="core_animated_pages">
<section id="page1" active>
<div id="bottom1" cross-fade></div>
tdrndtrndtrndrn
</section>
<section id="page2">
rrrrrrr
<div id="hero2" hero-id="hero" hero></div>
<div id="bottom2" cross-fade></div>
</section>
</core-animated-pages>
<div id="hero1" hero-id="hero" hero></div>
</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