Skip to content

Instantly share code, notes, and snippets.

@sarf2k4
Last active August 29, 2015 14:09
Show Gist options
  • Save sarf2k4/f6799b25526db1d5717c to your computer and use it in GitHub Desktop.
Save sarf2k4/f6799b25526db1d5717c to your computer and use it in GitHub Desktop.
designer
<link href="../core-menu/core-submenu.html" rel="import">
<link href="../core-item/core-item.html" rel="import">
<link href="../core-menu-button/core-menu-button.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
width: 300px;
height: 300px;
background-color: rgb(255, 255, 255);
border-radius: 2px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.098), 0px 0px 3px rgba(0, 0, 0, 0.098);
left: 380px;
top: 90px;
}
#core_menu {
font-size: 16px;
}
</style>
<core-card id="core_card" layout vertical>
<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" horizontal center layout label="Topic 1"></core-item>
<core-item id="core_item1" horizontal center layout label="Topic 2"></core-item>
</core-submenu>
<core-submenu id="core_submenu1" icon="settings" label="Favorites">
<core-item id="core_item2" horizontal center layout label="Favorite 1"></core-item>
<core-item id="core_item3" horizontal center layout label="Favorite 2"></core-item>
<core-item id="core_item4" horizontal center layout label="Favorite 3"></core-item>
</core-submenu>
</core-menu>
<core-menu-button icon="more-vert" selected="0" selectedindex="0" id="core_menu_button">
<core-item id="core_item5" label="Cut" icon="content-cut" layout center horizontal active></core-item>
<core-item id="core_item6" label="Copy" icon="content-copy" layout center horizontal></core-item>
<core-item id="core_item7" label="Paste" icon="content-paste" layout center horizontal></core-item>
</core-menu-button>
</core-card>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment