Skip to content

Instantly share code, notes, and snippets.

@vjrj
Last active August 29, 2015 14:14
Show Gist options
  • Save vjrj/b5ed72d39e233599df8b to your computer and use it in GitHub Desktop.
Save vjrj/b5ed72d39e233599df8b 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-icon-button/core-icon-button.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.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: 0px;
height: 192px;
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: white;
}
#section1 {
box-sizing: border-box;
width: 100%;
background-color: red;
}
</style>
<core-drawer-panel responsivewidth="140px" selected="main" narrow rightdrawer forcenarrow id="core_drawer_panel" touch-action="pan-y">
<section id="section" drawer>
</section>
<section id="section1" main>
</section>
</core-drawer-panel>
<core-icon-button icon="more-vert" id="core_icon_button" theme="core-light-theme" core-drawer-toggle>12 members</core-icon-button>
<core-menu selected="0" selectedindex="0" id="core_menu">
<core-submenu opened active id="core_submenu1" icon="settings" label="Favorites">
<core-item id="core_item2" label="yo que se" icon="mail" horizontal center layout>
<div id="div" flex end-justified layout horizontal>  Ctrl-M</div>
</core-item>
<core-item id="core_item3" label="yo lo se" icon="polymer" horizontal center layout>
<div id="div1" flex end-justified layout horizontal>  Ctrl-N</div>
</core-item>
<core-item id="core_item3" label="yo lo se" icon="polymer" horizontal center layout>
<div id="div2" flex end-justified layout horizontal>  Ctrl-N</div>
</core-item>
<core-item id="core_item3" label="Lo otro" icon="close" horizontal center layout>
<div id="div3" flex end-justified layout horizontal>  Ctrl-C</div>
</core-item>
</core-submenu>
<core-submenu 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-menu>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment