Skip to content

Instantly share code, notes, and snippets.

@khalidjaz
Last active August 29, 2015 14:06
Show Gist options
  • Save khalidjaz/b9fe07fd87eb5cdb0426 to your computer and use it in GitHub Desktop.
Save khalidjaz/b9fe07fd87eb5cdb0426 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="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.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-menu-button/core-menu-button.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: 30px;
right: 0px;
bottom: 0px;
left: 20px;
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(246, 199, 154);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_menu {
font-size: 16px;
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
background-color: rgb(238, 238, 238);
}
</style>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section" drawer></section>
<section id="section1" main>
<core-menu selected="0" selectedindex="0" id="core_menu">
<core-submenu opened 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-ajax handleas="json" method="GET" id="core_ajax" hidden></core-ajax>
<core-ajax handleas="json" method="GET" id="core_ajax1" hidden></core-ajax>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
<core-input willvalidate placeholder="text input" id="core_input" flex></core-input>
</core-field>
<core-animated-pages selectedindex="0" notap id="core_animated_pages">
<section id="section2" layout horizontal center center-justified active>
</section>
<section id="section3">
</section>
<section id="section4">
</section>
</core-animated-pages>
<core-menu-button icon="more-vert" selected="0" id="core_menu_button">
<core-item id="core_item5" icon="content-cut" label="Cut" horizontal center layout active></core-item>
<core-item id="core_item6" icon="content-copy" label="Copy" horizontal center layout></core-item>
<core-item id="core_item7" icon="content-paste" label="Paste" horizontal center layout></core-item>
</core-menu-button>
</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