Skip to content

Instantly share code, notes, and snippets.

@jvmonjo
Last active August 29, 2015 14:09
Show Gist options
  • Save jvmonjo/dcf18c73653ac6436e6f to your computer and use it in GitHub Desktop.
Save jvmonjo/dcf18c73653ac6436e6f to your computer and use it in GitHub Desktop.
designer
<link href="../core-drawer-panel/core-drawer-panel.html" rel="import">
<link href="../core-menu/core-submenu.html" rel="import">
<link href="../core-item/core-item.html" rel="import">
<link href="../topeka-elements/avatars.html" rel="import">
<link href="../core-icon/core-icon.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_header_panel {
width: 300px;
height: 400px;
left: 270px;
top: 30px;
position: absolute;
}
#core_toolbar {
background-color: rgb(79, 125, 201);
color: rgb(255, 255, 255);
left: 0px;
top: 10px;
position: absolute;
width: 390px;
height: 70px;
}
#section {
height: 100%;
background: linear-gradient(rgb(214, 227, 231), lightblue) repeat scroll 0% 0% transparent;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#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: 84px;
top: 180px;
}
#core_menu {
font-size: 16px;
left: 12px;
top: 102px;
position: absolute;
}
#core_icon {
height: 64px;
width: 64px;
left: 170px;
top: 40px;
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" label="Topics" icon="settings">
<core-item id="core_item" label="Topic 1" layout center horizontal></core-item>
<core-item id="core_item1" label="Topic 2" layout center horizontal></core-item>
</core-submenu>
<core-submenu id="core_submenu1" label="Favorites" icon="settings">
<core-item id="core_item2" label="Favorite 1" layout center horizontal></core-item>
<core-item id="core_item3" label="Favorite 2" layout center horizontal></core-item>
<core-item id="core_item4" label="Favorite 3" layout center horizontal></core-item>
</core-submenu>
</core-menu>
<core-icon icon="avatars:avatar-3" id="core_icon" designmeta="topeka-avatar"></core-icon>
</section>
<section id="section1" main>
<core-card id="core_card" vertical layout></core-card>
</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