Skip to content

Instantly share code, notes, and snippets.

@msell
Created July 1, 2014 21:48
Show Gist options
  • Save msell/dc1a65137684db27ba9e to your computer and use it in GitHub Desktop.
Save msell/dc1a65137684db27ba9e to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icon-button/core-icon-button.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="../paper-ripple/paper-ripple.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: -10px;
}
#section {
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);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_card {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#core_icon {
height: 24px;
width: 24px;
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
background-color: rgb(238, 238, 238);
}
#paper_ripple {
width: 300px;
height: 300px;
}
</style>
<core-drawer-panel id="core_drawer_panel">
<section id="section" drawer></section>
<section id="section1" main>
<core-card id="core_card" layout vertical>
<paper-slider immediatevalue="46" value="46" id="paper_slider"></paper-slider>
<paper-toggle-button id="paper_toggle_button" touch-action="pan-y"></paper-toggle-button>
<paper-toast text="Toast!" id="paper_toast2" class="core-transition core-transition-bottom"></paper-toast>
</core-card>
<core-icon icon="search" id="core_icon"></core-icon>
<core-icon-button icon="menu" id="core_icon_button" theme="core-light-theme"></core-icon-button>
<core-animated-pages selectedindex="0" notap id="core_animated_pages">
<section id="section2" layout horizontal center center-justified active>
<paper-ripple id="paper_ripple"></paper-ripple>
<paper-toast text="Toast!" id="paper_toast" class="core-transition core-transition-bottom"></paper-toast>
<paper-toast text="Toast!" id="paper_toast1" class="core-transition core-transition-bottom"></paper-toast>
</section>
<section id="section3">
</section>
<section id="section4">
</section>
</core-animated-pages>
</section>
</core-drawer-panel>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment