Skip to content

Instantly share code, notes, and snippets.

@sbussard sbussard/designer.html

Last active Aug 29, 2015
Embed
What would you like to do?
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-pages/core-pages.html">
<link rel="import" href="../core-menu-button/core-menu-button.html">
<link rel="import" href="../core-icons/core-icons.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;
}
#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_menu {
font-size: 16px;
left: 42px;
top: 142px;
position: absolute;
}
#core_pages {
width: 400px;
height: 400px;
border: 1px solid silver;
left: 24px;
top: 20px;
position: absolute;
}
#core_menu1 {
font-size: 16px;
left: 466px;
top: 172px;
position: absolute;
}
#core_menu_button {
left: -256px;
top: 0px;
position: absolute;
}
</style>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section" drawer>
<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>
</section>
<section id="section1" main>
<core-pages selected="0" selectedindex="0" notap id="core_pages">
<section id="section2" active>Page One</section>
<section id="section3">Page Two</section>
</core-pages>
<core-menu selected="0" selectedindex="0" id="core_menu1">
<core-submenu opened active id="core_submenu2" icon="settings" label="Topics">
<core-item id="core_item5" label="Topic 1" horizontal center layout></core-item>
<core-item id="core_item6" label="Topic 2" horizontal center layout></core-item>
</core-submenu>
<core-submenu id="core_submenu3" icon="settings" label="Favorites">
<core-item id="core_item7" label="Favorite 1" horizontal center layout></core-item>
<core-item id="core_item8" label="Favorite 2" horizontal center layout></core-item>
<core-item id="core_item9" label="Favorite 3" horizontal center layout></core-item>
</core-submenu>
</core-menu>
<core-menu-button icon="more-vert" selected="0" selectedindex="0" id="core_menu_button">
<core-item id="core_item10" icon="content-cut" label="Cut" horizontal center layout active></core-item>
<core-item id="core_item11" icon="content-copy" label="Copy" horizontal center layout></core-item>
<core-item id="core_item12" icon="content-paste" label="Paste" horizontal center layout></core-item>
</core-menu-button>
</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
You can’t perform that action at this time.